[Nut-upsuser] troubleshooting UPS ups at localhost is unavailable
raf
nut at raf.org
Mon Nov 30 05:05:54 UTC 2009
hi,
i've just set up two new computers each with a Powerware 3105 ups.
they have identical nut configurations and identical upss which
are both plugged in via usb but only one is being detected by nut.
the other keeps saying:
Broadcast Message from nut at server-1
(somewhere) at 14:52 ...
UPS ups at localhost is unavailable
i tried plugging the ups into several different usb sockets but
it made no difference.
any suggestions? the only time i'd ever seen this before (on another
host with another Powerware 3105) was when the usb cable had gotten
itself unplugged but that's not the case here.
cheers,
raf
hw: core2duo (does work) and core i7 quadcore (doesn't work)
os: debian 5
kernel: Linux server-1 2.6.30-bpo.2-amd64 #1 SMP
nut: 2.2.2-6.4 (debian package)
output of lsusb:
$ lsusb
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 009 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 006: ID 0592:0002 Powerware Corp. UPS (X-Slot)
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
the lsusb output on the other host (that does work) is similar:
$ lsusb
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0592:0002 Powerware Corp. UPS (X-Slot)
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
the contents of configuration files are:
$ grep '^[^#]' /etc/default/nut
START_UPSD=yes
UPSD_OPTIONS=""
START_UPSMON=yes
UPSMON_OPTIONS=""
$ grep '^[^#]' /etc/nut/ups.conf
[ups]
driver = bcmxcp_usb
port = auto
desc = Eaton Powerware 3105
$ grep '^[^#]' /etc/nut/upsd.conf
ACL all 0.0.0.0/0
ACL localhost 127.0.0.1/32
ACCEPT localhost
REJECT all
$ grep '^[^#]' /etc/nut/upsd.users
[root]
password=PASSWORD
allowfrom = localhost
actions = SET
instcmds = ALL
upsmon master
$ grep '^[^#]' upsmon.conf
RUN_AS_USER nut
MONITOR ups at localhost 1 root PASSWORD master
MINSUPPLIES 1
SHUTDOWNCMD "/sbin/shutdown -h +0"
NOTIFYCMD /usr/local/bin/upsmon.notifycmd
POLLFREQ 5
POLLFREQALERT 5
HOSTSYNC 15
DEADTIME 15
POWERDOWNFLAG /etc/killpower
NOTIFYFLAG ONLINE SYSLOG+WALL+EXEC
NOTIFYFLAG ONBATT SYSLOG+WALL+EXEC
NOTIFYFLAG LOWBATT SYSLOG+WALL+EXEC
NOTIFYFLAG FSD SYSLOG+WALL+EXEC
NOTIFYFLAG COMMOK SYSLOG+WALL+EXEC
NOTIFYFLAG COMMBAD SYSLOG+WALL+EXEC
NOTIFYFLAG SHUTDOWN SYSLOG+WALL+EXEC
NOTIFYFLAG REPLBATT SYSLOG+WALL+EXEC
NOTIFYFLAG NOCOMM SYSLOG+WALL+EXEC
RBWARNTIME 43200
NOCOMMWARNTIME 300
FINALDELAY 5
i haven't altered any udev configuration on either host
and so they have identical /etc/udev/rules.d/52_nut-usbups.rules
files (part of the debian package presumably).
it looks like the relevant section is:
# Powerware - bcmxcp_usb
SYSFS{idVendor}=="0592", SYSFS{idProduct}=="0002", MODE="664", GROUP="nut"
SYSFS{idVendor}=="06da", SYSFS{idProduct}=="0002", MODE="664", GROUP="nut"
the relevant parts of /dev/bus/usb are:
on the host that works:
$ ls -lasp /dev/bus/usb/001
total 0
0 drwxr-xr-x 2 root root 80 2009-11-30 14:18 ./
0 drwxr-xr-x 10 root root 200 2009-11-30 14:18 ../
0 crw-rw-r-- 1 root root 189, 0 2009-11-30 14:18 001
0 crw-rw-r-- 1 root nut 189, 1 2009-11-30 15:18 002
on the host that doesn't work:
# ls -aslp /dev/bus/usb/002
total 0
0 drwxr-xr-x 2 root root 80 2009-11-30 14:29 ./
0 drwxr-xr-x 11 root root 220 2009-11-26 14:24 ../
0 crw-rw-r-- 1 root root 189, 128 2009-11-26 14:24 001
0 crw-rw-r-- 1 root nut 189, 133 2009-11-30 15:19 006
which looks ok to me. the minor decive numbers are
different. is that important?
More information about the Nut-upsuser
mailing list