R: sms notifications
Marco Borsani
m.borsani at it.net
Thu Jun 8 14:22:48 CEST 2006
Here it is my sintax:
define command{
command_name notify-by-sms
command_line /usr/local/bin/sendsms $CONTACTPAGER$
"Service:$SERVICEDESC$ Host:$HOSTALIAS$ State:$SERVICESTATE$. $OUTPUT$
Date:$SHORTDATETIME$"
}
Regards
Marco
_____
Da: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] Per conto di Guillermo
Bellettini
Inviato: giovedì 8 giugno 2006 14.05
A: nagios-users at lists.sourceforge.net;
nagios-users-request at lists.sourceforge.net;
nagios-users-admin at lists.sourceforge.net
Oggetto: [Nagios-users] sms notifications
Priorità: Alta
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060608/440804f1/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