On Fri, Aug 16, 2013 at 01:15:51PM +0930, Ash Narayanan wrote: > I am looking to set up nut (version 2.6.4-2.3) to monitor my ups in > Wheezy but can't seem to find any relevant guides/tutorials. I've > searched through several guides online (including the one pointed to > by http://www.networkupstools.org/documentation.html). For example, > whatever I read seems to suggest existence of these files: > /etc/default/nut > /etc/init.d/nut > > My installation does not contain either of those files. On the other > hand, I have: > /etc/init.d/nut-client > /etc/init.d/nut-sever > > Also, everything I read seems to require changes to /etc/nut/upsd.conf > with something along the lines of: > ACL all 0.0.0.0/0 > ACL localhost 127.0.0.1/32 > > My /etc/nut/upsd.conf file only seems to contain LISTEN statements and > reading through some forums, it seems that ACL statements are obsolete > in versions after 2.2. > > I can't seem to find any up to date guides. Are there any? Or is one > allowed to upload a package to Debian without any instructions on how > to use it?
I have found that the config files for NUT are well commented and just editing every file in /etc/nut should get you most of the way there. However, if you want to do some reading first, there's the "nut-doc" package which will put a whole load of files into /usr/share/doc/nut-doc. If you find that THAT is out of date, then file a bug report. > > A bit of information regarding the setup I'm after: > One Wheezy server connected to UPS via usb (master) > One Wheezy server connected to the first server via ethernet (slave) > Both servers being supplied power by the UPS That's a common situation. On the master you'd want something like: nut.conf: MODE=netmaster [your-ups] driver = foo port = auto (probably, see the driver documentation for more options) upsd.conf: LISTEN = 127.0.0.1 LISTEN = ::1 LISTEN = A.LAN.IP upsmon.conf: MONITOR your-ups@your-host 1 ... (set up a user in upsd.users) And on the slave: nut.conf: MODE=netclient upsmon.conf: MONITOR your-ups@your-host 1 ... (IOW, the same as on master)
signature.asc
Description: Digital signature