I have a Dell 500w UPS and it works great with Ubuntu 12.04 LTS and Network UPS 
tools 2.6.3 via usb. This powers a standalone server for the purposes of clean 
shutdowns. This was installed using "sudo apt-get install nut" and there are no 
issues with the Server > nut > ups chain. I am using the usbhid-ups driver and 
haven't had any issues.

I am trying to also add an NAS to the system as a slave, so that as soon as the 
server shuts down, the NAS will also shut down, but I can't get NUT to listen 
to anything. As far as I understand, the method I should be using is to:


1.       Set MODE=netserver in /etc/nut/nut.conf

2.       Add the server's IP address to LISTEN = [server ip] in 
/etc/nut/upsd.conf

3.       Then restart nut (sudo service nut restart).

This does not work. If I use the command sudo upsd I get the following output:
"Network UPS Tools upsd 2.6.3
Not listening on [server ip]
No listening interface available"

If I use sudo service nut status I get the following output:
"Checking status of Network UPS Tools

*         Upsd is not running

*         Upsmon is running"

If I check the output of the default port for the service sudo netstat 
-altp|grep :3493 I then get the following:
Tcp 0  0 [server address]:3493 0.0.0.0:* LISTEN 26648/upsd
Tcp 0  0 127.0.0.1:3493 0.0.0.0:* LISTEN 23679/upsd
Tcp 0  0 127.0.0.1:41385 127.0.0.1:3493 ESTABLISHED 27947/upsmon
Tcp 0  0 127.0.0.1:3493 127.0.0.1:41385 ESTABLISHED 23679/upsd
Tcp6 0  0 ::1:3493 :::* LISTEN 23679/upsd

Which seems to show that upsd is running and it is listening or already 
connected, presumably via the usb cable.

So is this working as intended? Is it impossible to set up a server + UPS via 
usb and then have another device (in this case an NAS) listen as a slave to the 
server? From the documentation it seems like this should be possible.

Any help would be great. Thanks.






_______________________________________________
Nut-upsuser mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser

Reply via email to