[Nut-upsuser] timers and their usage

Mike Pepe lamune at doki-doki.net
Wed Sep 14 11:47:39 UTC 2005


Arnaud Quette wrote:
> send us back your full upsmon.conf and upssched.conf
> there might be some missing directives ...
> 

Sure

upsmon.conf:

RUN_AS_USER nut
MONITOR quadzilla-ups at localhost 1 nutcase xxx master
MINSUPPLIES 1
SHUTDOWNCMD "/sbin/shutdown -h +0"
NOTIFYCMD /etc/ups/notify.sh
POLLFREQ 5
POLLFREQALERT 5
HOSTSYNC 15
DEADTIME 15
POWERDOWNFLAG /etc/killpower
NOTIFYMSG ONLINE "Quadzilla is on utility power"
NOTIFYMSG ONBATT "Quadzilla is on UPS power"
NOTIFYMSG LOWBATT "Quadzilla UPS in a low battery state"
NOTIFYMSG SHUTDOWN "Quadzilla is being shut down"
NOTIFYMSG FSD "Quadzilla UPS in forced shutdown mode"
NOTIFYFLAG ONLINE SYSLOG+WALL+EXEC
NOTIFYFLAG ONBATT SYSLOG+WALL+EXEC
NOTIFYFLAG LOWBATT SYSLOG+WALL+EXEC
NOTIFYFLAG SHUTDOWN SYSLOG+WALL+EXEC
RBWARNTIME 43200
NOCOMMWARNTIME 300
FINALDELAY 10


upssched.conf:

CMDSCRIPT /usr/sbin/upssched-cmd
AT ONBATT * START-TIMER onbattwarn 60
AT ONLINE * CANCEL-TIMER onbattwarn




More information about the Nut-upsuser mailing list