Title: sms notifications

Hi there, Ive installed sms tool for sms-notification. The daemon works ok but how do I setup nagios to send service notifications by sms?

Ive defined the following command but it is not working.

define command{

        command_name    notify-by-epager

        command_line    TMPFILE=`mktemp /var/spool/sms/tmp/temp.XXXXXX`;/usr/bin/printf "%b" "To: $CONTACTPAGER$\n\n$NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $SERVICEOUTPUT$\nDate: $LONGDATETIME$"> $TMPFILE;mv $TMPFILE /var/spool/sms/outgoing

        }


Any suggestions?

thanks

_______________________________________________
Nagios-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Reply via email to