installing ups monitor

Bob ubuntu-qygzanxc at listemail.net
Mon Jan 11 22:29:06 UTC 2021


** Reply to message from Gene Heskett <gheskett at shentel.net> on Mon, 11 Jan
2021 15:39:39 -0500

> On Monday 11 January 2021 14:13:08 Bob wrote:
> 
> > ** Reply to message from Bo Berglund <bo.berglund at gmail.com> on Mon,
> > 11 Jan 2021 10:16:51 +0100
> >
> > > On Sun, 10 Jan 2021 12:24:00 +0100, Bo Berglund 
> <bo.berglund at gmail.com> wrote:
> > > >On Sun, 10 Jan 2021 20:19:14 +1100, Karl Auer <kauer at biplane.com.au> 
> wrote:
> > > >>The above reminds me what I did and how I did it. Because I run a
> > > >>Synology NAS, it is important me that it is shutdown in an orderly
> > > >>fashion if the power fails. Synology NASes understand APC UPSes
> > > >> out of the box, so I used it as a networked UPS monitor and told
> > > >> NUT to check the NAS, rather than check the UPS directly. monuser
> > > >> and XXXXXXX are the creds it uses to talk to the NAS via SNMP.
> > > >>
> > > >>If the power failed, the UPS would tell the NAS; the NAS would
> > > >> tell anyone who asked, which was what my laptop did via NUT.
> > > >>
> > > >>So I'm not sure that my configuration is that useful to you.
> > > >
> > > >Really interesting because I have a Synology NAS as one device on
> > > > my network too!
> > > >
> > > >I will study how it will be done and see if I can get it going via
> > > > the NAS.
> > >
> > > Karl,
> > > thanks again for your suggestion to use the Synology NAS as the UPS
> > > monitor!
> > >
> > > It turns out that once I hooked up the RJ45/USB cable that came with
> > > the APC ES700 to the USB connector on my Synology Diskstation 212j
> > > NAS I was able to enable UPS monitoring and also the network UPS
> > > server on Synology. The service itself was present out of the box!
> > > :)
> > >
> > > So now the Synology NAS is checking the UPS state and it will shut
> > > down when "battery is low".
> > >
> > > I also enabled the network UPS server and configured it with the IP
> > > address of my Ubuntu 18 server, so I assume that now the "only"
> > > thing I need to do is figuring out how the Ubuntu server can use the
> > > UPS service on my NAS...
> > >
> > > I installed package nut yesterday using apt on my Ubuntu server.
> > > It entered a non-working state.
> > >
> > > So now I "just" have to edit some config files, right?
> >
> > That is correct but I found that most how tos for NUT were lacking
> > some of the details.  I found the NUT manual at
> > https://networkupstools.org/docs/user-manual.chunked/index.html.  I
> > found I needed to go through the entire chapter 6 of that manual to
> > get things set up correctly.  The end of chapter 6 describes how to
> > set up multiple UPS configurations.
> breaking into the thread:
> I followed the above tut, but cannot get past this in the syslog:
> Jan 11 15:33:59 coyote upsmon[1456]: Login on UPS [myups at localhost] 
> failed - got [ERR ACCESS-DENIED]
> And this in a root shell restarting upsmon:
> root at coyote:nut$ killall upsmon
> root at coyote:nut$ /sbin/upsmon start
> Network UPS Tools upsmon 2.7.4
> kill: No such process
> /etc/nut/upsmon.conf line 75: invalid directive [gene]
> /etc/nut/upsmon.conf line 76: invalid directive password = xxxxxxxxxxxx
> /etc/nut/upsmon.conf line 77: invalid directive upsmon master
> UPS: myups at localhost (master) (power value 1)
> Using power down flag file /etc/killpower
> 
> And I, gene, am a member of group nut
> Advice?

I am not a member of the nut group (it is empty on my system) and everything is
working for me except the UPS does not turn off, still trying to figure this
out.  Because of the way Ubuntu handles the USB to serial interface I did have
to put the nut user in the dialout group.

I did put my userid and password in two of the .conf files.

Look at chapter 6 of the "Network UPS Tools User Manual", url is in my reply
above.  That is what I had to do to get all the .conf entries correct.


> > > With regard to another post in this thread:
> > > I have set up my UPS system such that all of these items (and a few
> > > more) are on UPS power:
> > > - Incoming fiber interface to the Internet
> > > - Main ASUS RT-AC86U router
> > > - My two Netgear network switches
> > > - Synology NAS
> > > - Ubuntu Server (the target of my concerns)
> > > - IP phone interface box
> > >
> > > This seems to cover "everything" in case of a power outage so that
> > > my internal network will continue operating with internal and
> > > Internet connection (assuming the fiber provider's system is still
> > > on power).
> >
> > --
> > Robert Blair
> >
> >
> > Giving money and power to government is like giving whiskey and car
> > keys to teenage boys.  -- P.J. O'Rourke, Civil Libertarian
> 
> 
> Cheers, Gene Heskett
> -- 
> "There are four boxes to be used in defense of liberty:
>  soap, ballot, jury, and ammo. Please use in that order."
> -Ed Howdershelt (Author)
> If we desire respect for the law, we must first make the law respectable.
>  - Louis D. Brandeis
> Genes Web page <http://geneslinuxbox.net:6309/gene>

-- 
Robert Blair


Government is the great fiction, through which everybody endeavors to live at the expense of everybody else.  -- Frederic Bastiat, French economist (1801-1850)




More information about the ubuntu-users mailing list