sms notifications

Guillermo Bellettini gbellettini at genetsis.com
Thu Jun 8 14:05:23 CEST 2006


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

I've 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060608/c0601da2/attachment.html>
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
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


More information about the Users mailing list