[Nut-upsuser] nut 2.4 et MGE 2200
aquette.dev at gmail.com
Mon Nov 29 10:50:08 UTC 2010
long time no see (the last time, it was iirc indirectly through Bernard
Thomas, from Eaton support team)
2010/11/29 sabine GOUDARD
> I installed with NUT UPS MGE Pulsar Evolution 2200
> all orders of arrest, interrogation etc etc ... UPS
> work well
> However, I have a problem with the order in NOTIFYCMD upsmon.conf that
> not run ...
> I created a script that generates a simply log
> I indicated in upsmon.conf NOTIFYCMD / home / nut / alert_ups.sh
> below my upsmon.conf
> RUN_AS_USER nut
> MONITOR pulsar at localhost 1 admin1 lahdnets master
> MINSUPPLIES 1
> FINALDELAY 5
> HOSTSYNC 15
> NOTIFYCMD /home/nut/alert_ups.sh
> # NOTIFYCMD /sbin/upssched
> SHUTDOWNCMD "/sbin/shutdown -h +0"
> POLLFREQ 5
> POLLFREQALERT 5
> DEADTIME 15
> NOCOMMWARNTIME 300
> RBWARNTIME 43200
> # POWERDOWNFLAG /etc/killpower
> NOTIFYMSG ONLINE "UPS %s on line power"
> NOTIFYMSG ONBATT "UPS %s on battery"
> NOTIFYFLAG ONBATT SYSLOG+WALL+EXEC
> NOTIFYFLAG ONLINE SYSLOG+WALL+EXEC
> when the server stops, the log is not generated
> and Same with upssched ...
> where can I seach ?
> Thank you for your help
well, upssched is not called because you don't reference it as NOTIFYCMD.
Now, you should however get syslog + wall notification whenever you switch
to battery or get back to power.
is your .sh script executable?
has upsmon been (re)started since you've made these configuration changes?
can you please also forward us this script for verification?
For more information on scheduling, refer to the new documentation:
Linux / Unix Expert R&D - Eaton - http://powerquality.eaton.com
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer - http://www.debian.org
Free Software Developer - http://arnaud.quette.free.fr/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Nut-upsuser