sms notifications
Guillermo Bellettini
gbellettini at genetsis.com
Thu Jun 8 15:12:32 CEST 2006
Thanks a lot Marco
works perfect!!...
Regards,
Emilio
_____
De: Marco Borsani [mailto:m.borsani at it.net]
Enviado el: jueves, 08 de junio de 2006 14:23
Para: 'Guillermo Bellettini'; nagios-users at lists.sourceforge.net;
nagios-users-request at lists.sourceforge.net;
nagios-users-admin at lists.sourceforge.net
Asunto: R: [Nagios-users] sms notifications
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/af439c75/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