Hi all,
I have an APC UPS that is configured via NUT on Pfsense. I have two other servers (TrueNAS and a Windows box) connected as NUT clients and they successfully shutdown with a loss of power.
I have Proxmox successfully seeing the UPS (checking via "upsc"), but no matter what I put in the config files, it won't shutdown on a loss of power.
If I turn off the power as a test, I see the following on the Proxmox server:
So the server can see that the UPS goes on battery, and I've attempted to set the shutdown timer to 20 seconds. But the server doesn't shutdown. Maybe I've got something wrong in the config files?
upsmon.conf
upssched.conf
I have an APC UPS that is configured via NUT on Pfsense. I have two other servers (TrueNAS and a Windows box) connected as NUT clients and they successfully shutdown with a loss of power.
I have Proxmox successfully seeing the UPS (checking via "upsc"), but no matter what I put in the config files, it won't shutdown on a loss of power.
If I turn off the power as a test, I see the following on the Proxmox server:
Nov 21 17:50:32 pve upsmon[850]: Communications with UPS APC@192.168.0.2:3493 established
Nov 21 17:53:17 pve upsmon[850]: UPS APC@192.168.0.2:3493 on battery
Nov 21 17:54:42 pve upsmon[850]: UPS APC@192.168.0.2:3493 on line power
So the server can see that the UPS goes on battery, and I've attempted to set the shutdown timer to 20 seconds. But the server doesn't shutdown. Maybe I've got something wrong in the config files?
upsmon.conf
MONITOR APC@192.168.0.2:3493 1 monslave XXX SLAVE
RUN_AS_USER root
NOTIFYCMD "/usr/local/sbin/upssched"
NOTIFYFLAG ONBATT SYSLOG+EXEC
NOTIFYFLAG LOWBATT SYSLOG+EXEC
NOTIFYFLAG ONLINE SYSLOG+EXEC
NOTIFYFLAG COMMBAD SYSLOG+EXEC
NOTIFYFLAG COMMOK SYSLOG+EXEC
NOTIFYFLAG REPLBATT SYSLOG+EXEC
NOTIFYFLAG NOCOMM SYSLOG+EXEC
NOTIFYFLAG FSD SYSLOG+EXEC
NOTIFYFLAG SHUTDOWN SYSLOG+EXEC
SHUTDOWNCMD "/sbin/shutdown -h now"
POWERDOWNFLAG /etc/nokillpower
HOSTSYNC 15
upssched.conf
CMDSCRIPT /bin/upssched-cmd
PIPEFN /var/run/nut/upssched/upssched.pipe
LOCKFN /var/run/nut/upssched/upssched.lock
AT NOCOMM * EXECUTE NOTIFY-NOCOMM
AT COMMBAD * START-TIMER NOTIFY-COMMBAD 10
AT COMMOK * CANCEL-TIMER NOTIFY-COMMBAD COMMOK
AT FSD * EXECUTE NOTIFY-FSD
AT LOWBATT * EXECUTE NOTIFY-LOWBATT
AT ONBATT * EXECUTE NOTIFY-ONBATT
AT ONLINE * EXECUTE NOTIFY-ONLINE
AT REPLBATT * EXECUTE NOTIFY-REPLBATT
AT SHUTDOWN * EXECUTE NOTIFY-SHUTDOWN
AT ONBATT * START-TIMER SHUTDOWN 20
AT ONLINE * CANCEL-TIMER SHUTDOWN