[Nut-upsuser] notifycmd problem
Pascal Legrand
Pascal.Legrand at univ-orleans.fr
Tue Jul 11 13:54:39 UTC 2006
hello,
i've got a problem with the notifycmd
here is a part of my upsmon.conf :
NOTIFYCMD /usr/local/ups/bin/nut_notify
NOTIFYMSG ONLINE "UPS %s is getting line power"
NOTIFYMSG ONBATT "UPS %s is on battery"
NOTIFYMSG REPLBATT "The UPS %s battery is bad and needs to be replaced"
NOTIFYMSG LOWBATT "UPS %s is being shutdown by the master"
NOTIFYMSG FSD "Someone pulled the plug on %s"
NOTIFYMSG COMMOK "Communications established with the UPS on %s"
NOTIFYMSG COMMBAD "Communications lost to the UPS %s"
NOTIFYMSG SHUTDOWN "The system is being shutdown on %s"
NOTIFYMSG NOCOMM "A UPS %s is unavailable, can' be contacted"
NOTIFYFLAG ONLINE SYSLOG+WALL+EXEC
NOTIFYFLAG ONBATT SYSLOG+WALL+EXEC
NOTIFYFLAG LOWBATT SYSLOG+WALL+EXEC
NOTIFYFLAG FSD SYSLOG+WALL+EXEC
NOTIFYFLAG COMMOK SYSLOG+WALL+EXEC
NOTIFYFLAG COMMBAD SYSLOG+WALL+EXEC
NOTIFYFLAG SHUTDOWN SYSLOG+WALL+EXEC
NOTIFYFLAG REPLBATT SYSLOG+WALL+EXEC
NOTIFYFLAG NOCOMM SYSLOG+WALL+EXEC
here is the nut_notify script :
#!/bin/sh
echo "$*" | from=onduleur at iut-chartres.fr smtp=smtp.univ-orleans.fr /usr/local/bin/mailx -n -s
"Evenement onduleur" pascal.legrand at univ-orleans.fr
my problem is that i have no mail when i unplug the ups
where is the problem ??
thank you for yours answers
--
----------------------------------------------------
Pascal Legrand
*IUT de Chartres* - _Service Informatique_
----------------------------------------------------
1, place Roger Joly
28000 Chartres
Tel : 02 37 91 83 36 - Fax: 02 37 91 83 01
courriel : Pascal.Legrand at univ-orleans.fr
More information about the Nut-upsuser
mailing list