How to make NUT notify a cellphone when power goes down
In the /usr/local/ups/etc/upsmon.conf file
add
NOTIFYCMD /usr/local/ups/bin/notifyme
Then create the file /usr/local/ups/bin/notifyme
It looks as follows
#! /bin/bash
echo "$*" | sendmail -F "ups@mybox" djohnson@csir.co.za
echo "$*" | qpage -f '' -s zibbi.icomtek.csir.co.za -p 0827792258
This will email a message to djohnson@csir.co.za when power goes down
and it will sms to 0827792258 when power goes down
add
NOTIFYCMD /usr/local/ups/bin/notifyme
Then create the file /usr/local/ups/bin/notifyme
It looks as follows
#! /bin/bash
echo "$*" | sendmail -F "ups@mybox" djohnson@csir.co.za
echo "$*" | qpage -f '' -s zibbi.icomtek.csir.co.za -p 0827792258
This will email a message to djohnson@csir.co.za when power goes down
and it will sms to 0827792258 when power goes down

0 Comments:
Post a Comment
<< Home