[Nut-upsuser] "UPS myups@localhost is unavailable" from upsmon
Jonathan Kamens
jik@kamens.brookline.ma.us
Thu, 2 Jun 2005 15:06:05 -0400
Greetings,
I imagine this question must have been answered previously on the
list, but I can't search for the answer because the archives are gone.
Executive summary: I am trying to install and configure nut 2.0.1 on
Fedora Core. I have a SmartUPS Pro plugged into a USB port. Upsmon
is logging "UPS myups@localhost is unavailable" to syslog and via wall
when it starts up and periodically afterwards. I don't understand
why, since upsd says that upsmon is successfully connecting to upsd.
Here's what I see when I run "service ups start":
Starting hidups: Network UPS Tools: HID UPS driver 0.13 (2.0.1)
Warning: This is an experimental driver.
Some features may not function correctly.
Detected American Power Conversion Back-UPS Pro 500 FW:16.5.D USB FW:a7
on port /dev/hiddev0
Ignoring x86 page event 0xff860060 (8)
Ignoring x86 page event 0xff860060 (8)
[ OK ]
Starting upsd: Network UPS Tools upsd 2.0.1
Connected to UPS [myups]: hidups-hiddev0
Synchronizing...done
[ OK ]
Starting UPS monitor (master): Network UPS Tools upsmon 2.0.1
UPS: myups@localhost (master) (power value 1)
Using power down flag file /etc/killpower
[ OK ]
Here's what I see in my syslog:
Jun 2 14:57:36 jik2 hidups[27787]: Startup successful
Jun 2 14:57:36 jik2 upsd[27788]: Connected to UPS [myups]: hidups-hiddev0
Jun 2 14:57:36 jik2 hidups[27787]: Ignoring x86 page event 0xff860060 (8)
Jun 2 14:57:36 jik2 hidups[27787]: Ignoring x86 page event 0xff860060 (8)
Jun 2 14:57:36 jik2 upsd[27789]: Startup successful
Jun 2 14:57:36 jik2 upsmon[27791]: Startup successful
Jun 2 14:57:36 jik2 upsd[27789]: Connection from 127.0.0.1
Jun 2 14:57:36 jik2 upsd[27789]: Client monuser@127.0.0.1 logged into UPS [myups]
Jun 2 14:57:36 jik2 upsmon[27792]: Communications with UPS myups@localhost lost
Jun 2 14:57:36 jik2 hidups[27787]: Ignoring x86 page event 0xff860060 (8)
Jun 2 14:57:41 jik2 upsmon[27792]: UPS myups@localhost is unavailable
Here's what's in /etc/sysconfig/ups:
SERVER=yes
MODEL=hidups
DEVICE=/dev/hiddev0
Here's what's in /etc/ups/ups.conf:
[myups]
driver = hidups
port = /dev/hiddev0
Her's what's in /etc/ups/upsd.conf:
ACL all 0.0.0.0/0
ACL localhost 127.0.0.1/32
ACCEPT localhost
REJECT all
Here's what's in /etc/ups/upsd.users:
[monuser]
password = <elided>
allowfrom = localhost
upsmon master
here's what's in /etc/ups/upsmon.conf:
MONITOR myups@localhost 1 monuser oberther 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
Any suggestions?
Thanks,
Jonathan Kamens