Dear nut users,
I am fighting to configure a smooth server shutdown with an ubuntu
server and a dell usb ups using nut.
It seems that the drivers connect properly (upsc gives very coherent
outputs).
However I can't get anything to happen when the ups goes on battery.
How can I be sure the the UPS status is really monitored ?
Is there a particular log file where I upsmon reports problems ?
This is how it looks right now :
root at srv# ps -elf | grep -e upsd -e upsmon -e usbhid-ups
1 S nut 1152 1 0 80 0 - 4202 poll_s 14:27 ?
00:00:03 /lib/nut/usbhid-ups -a dell
1 S nut 1154 1 0 80 0 - 3641 poll_s 14:27 ?
00:00:00 /sbin/upsd
1 S root 1156 1 0 80 0 - 3632 pipe_w 14:27 ?
00:00:00 /sbin/upsmon
5 S nut 1158 1156 0 80 0 - 3632 hrtime 14:27 ?
00:00:00 /sbin/upsmon
1 S root 1381 1 0 80 0 - 3632 pipe_w 14:34 ?
00:00:00 upsmon
5 S nut 1383 1381 0 80 0 - 3632 hrtime 14:34 ?
00:00:00 upsmon
-----
My nut configuration is :
/etc/nut/nut.conf :
MODE=standalone
/etc/nut/ups.conf :
[dell]
driver = usbhid-ups
port = auto
/etc/nut/upsd.conf :
LISTEN 127.0.0.1 3493
/etc/nut/upsd.users :
[admin]
password = ****
actions = SET
instcmds = ALL
[upsmon]
password = ****
upsmon master
/etc/nut/upsmon.conf :
RUN_AS_USER nut
MINSUPPLIES 1
SHUTDOWNCMD "/sbin/shutdown -h +0"
POLLFREQ 5
POLLFREQALERT 5
HOSTSYNC 15
DEADTIME 15
POWERDOWNFLAG /etc/killpower
RBWARNTIME 43200
FINALDELAY 5
MONITOR dell at localhost 1 upsmon **** master
/etc/nut/upssched.conf :
CMDSCRIPT /etc/nut/sched/upssched.sh (this script exists but seems never
to be executed...)
PIPEFN /etc/nut/sched/upssched.pipe
LOCKFN /etc/nut/sched/upssched.lock
# the timers, here 30 sec after the ONBATT (ups on battery) event
AT ONBATT * START-TIMER onbatt 30
# cancel the countdown if power is back
AT ONLINE * CANCEL-TIMER onbatt
# shuttdown on low battery
AT LOWBATT * EXECUTE lowbatt 60
# cancel the countdown if power is back
AT ONLINE * CANCEL-TIMER lowbatt
-----
I'm quite new to nut so don't hesitate to tell me if these settings
don't make sens !
Thanks in advance,
R?mi.