nut.list@jumpstation.co.uk
2005-Aug-25 20:55 UTC
[Nut-upsuser] Problems getting reading from UPS with nut 2.0.2
Problems getting reading from UPS with nut 2.0.2 Debian Sid I know that the server starts running and accepts incoming connections, it can verify the username and password but refutes that the UPS lives at localhost, what am I doing wrong ? I have read and reread both the official documentation and various guides around the net I am unsure where to go now. If the UPS itself is at fault (not supported model) then I would have expected something else. There now follows hopefully more information a than you could ever need. (any notes that are not part of the original output have been prefixed with a double hash ## starting the services rock:/home/rednuht# upsdrvctl -v start Network UPS Tools - UPS driver controller 2.0.2 exec: /lib/nut/liebert -a liebert450XT Network UPS Tools - Liebert MultiLink UPS driver 1.0 (2.0.2) Warning: This is an experimental driver. Some features may not function correctly. rock:/home/rednuht# upsd Network UPS Tools upsd 2.0.2 /etc/nut/upsd.conf is world readable Connected to UPS [liebert450XT]: liebert-ttyS0 /etc/nut/upsd.users is world readable Synchronizing...done rock:/home/rednuht# upsmon Network UPS Tools upsmon 2.0.2 UPS: liebert450XP@localhost (master) (power value 1) Using power down flag file /etc/killpower Broadcast Message from nut@rock (somewhere) at 15:52 ... Communications with UPS liebert450XP@localhost lost Broadcast Message from nut@rock (somewhere) at 15:52 ... UPS liebert450XP@localhost is unavailable ## Files(uncommented lines only) ## /etc/nut/ups.conf (I later added the "user" directive to no effect) user = nut [liebert450XT] driver = liebert port = /dev/ttyS0 desc = "rock UPS" ## /etc/nut/upsd.conf ACL all 0.0.0.0/0 ACL localhost 127.0.0.1/32 ACCEPT localhost REJECT all ##/etc/nut/upsd.users [monuser] password = monuser allowfrom = localhost 127.0.0.1 upsmon master ##/etc/nut/upsmon.conf MONITOR liebert450XP@localhost 1 monuser monuser master MINSUPPLIES 1 SHUTDOWNCMD "/sbin/shutdown -h +0" POLLFREQ 5 POLLFREQALERT 5 HOSTSYNC 15 DEADTIME 15 POWERDOWNFLAG /etc/killpower RBWARNTIME 43200 NOCOMMWARNTIME 300 FINALDELAY 5 ## Folder permissions (were previously all root) rock:/# ls -la /etc/nut total 40 drwxr-xr-x 2 nut nut 4096 Aug 21 15:57 . drwxr-xr-x 119 root root 8192 Aug 20 22:30 .. -rw-r--r-- 1 nut nut 3784 Aug 21 15:46 ups.conf -rw-r--r-- 1 nut nut 1364 Aug 21 15:45 upsd.conf -rw-r--r-- 1 nut nut 2314 Aug 21 15:44 upsd.users -rw-r--r-- 1 nut nut 11188 Aug 21 15:47 upsmon.conf -rw-r--r-- 1 nut nut 3893 Jul 25 20:16 upssched.conf ## /var/log/syslog Aug 21 15:17:50 rock liebert[17946]: Startup successful Aug 21 15:17:53 rock upsd[17947]: /etc/nut/upsd.conf is world readable Aug 21 15:17:53 rock upsd[17947]: Connected to UPS [liebert450XT]: liebert-ttyS0 Aug 21 15:17:53 rock upsd[17947]: /etc/nut/upsd.users is world readable Aug 21 15:17:53 rock upsd[17948]: Startup successful Aug 21 15:17:56 rock upsmon[17951]: Startup successful Aug 21 15:17:56 rock upsd[17948]: Connection from 127.0.0.1 Aug 21 15:17:56 rock upsmon[17952]: Can't login to UPS [liebert450XP@localhost]: Unknown UPS Aug 21 15:18:01 rock upsmon[17952]: Poll UPS [liebert450XP@localhost] failed - [liebert450XP] does not exist on server localhost Aug 21 15:18:01 rock upsmon[17952]: Communications with UPS liebert450XP@localhost lost Aug 21 15:18:05 rock upsd[17948]: Signal 15: exiting Aug 21 15:18:06 rock upsmon[17952]: Poll UPS [liebert450XP@localhost] failed - Server disconnected Aug 21 15:18:06 rock upsmon[17952]: UPS liebert450XP@localhost is unavailable Aug 21 15:18:11 rock upsmon[17952]: Signal 15: exiting Aug 21 15:18:16 rock liebert[17946]: Signal 15: exiting ## ethereal captured the following going to and from 127.0.0.1 with a source/destination port of 1406 and nut (/etc/services has port 3493 for nut) USERNAME monuser OK PASSWORD monuser OK LOGIN liebert450XP ERR UNKNOWN-UPS GET VAR liebert450XP ups.status ERR UNKNOWN-UPS ## the error message relates the following piece of code which is in a number of nut files ups = get_ups_ptr(upsname); if (!ups) { send_err(client, NUT_ERR_UNKNOWN_UPS); return; } ## an attempt to get any more information rock:/home/rednuht# upsmon -D -D -D Network UPS Tools upsmon 2.0.2 UPS: liebert450XP@localhost (master) (power value 1) Using power down flag file /etc/killpower Trying to connect to UPS [liebert450XP@localhost] ACL [localhost] matches, action=1 Connection from 127.0.0.1 ACL [localhost] matches, action=1 ACL [localhost] matches, action=1 ACL [localhost] matches, action=1 Can't login to UPS [liebert450XP@localhost]: Unknown UPS polling ups: liebert450XP@localhost get_var: liebert450XP@localhost / status ACL [localhost] matches, action=1 Poll UPS [liebert450XP@localhost] failed - [liebert450XP] does not exist on server localhost do_notify: ntype 0x0005 (COMMBAD) Communications with UPS liebert450XP@localhost lost Broadcast Message from nut@rock (/dev/pts/1) at 21:45 ... Communications with UPS liebert450XP@localhost lost Signal 2: exiting ACL [localhost] matches, action=1 Client monuser@127.0.0.1 logged out thanks for any help you can give. Rob
Charles Lepple
2005-Aug-25 22:40 UTC
[Nut-upsuser] Problems getting reading from UPS with nut 2.0.2
On 8/25/05, nut.list@jumpstation.co.uk <nut.list@jumpstation.co.uk> wrote: [...]> exec: /lib/nut/liebert -a liebert450XT[...]> UPS: liebert450XP@localhost (master) (power value 1)"XP" vs "XT"? -- - Charles Lepple
nut.list@jumpstation.co.uk
2005-Aug-26 07:43 UTC
[Nut-upsuser] Problems getting reading from UPS with nut 2.0.2
doh doh doh doh doh doh doh, I can not believe I could be sooooo stupid. many thanks for your sharp eyes ! On Thursday 25 August 2005 23:40, Charles Lepple wrote:> On 8/25/05, nut.list@jumpstation.co.uk <nut.list@jumpstation.co.uk> wrote: > [...] > > > exec: /lib/nut/liebert -a liebert450XT > > [...] > > > UPS: liebert450XP@localhost (master) (power value 1) > > "XP" vs "XT"?