<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>sms notifications</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2></FONT> </DIV>
<DIV><SPAN class=442081812-08062006></SPAN><FONT face=Arial><FONT
color=#0000ff><FONT
size=2>Here it is my sintax:</FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2>define
command{<BR>
command_name
notify-by-sms<BR>
command_line /usr/local/bin/sendsms $CONTACTPAGER$
"Service:$SERVICEDESC$ Host:$HOSTALIAS$ State:$SERVICESTATE$. $OUTPUT$
Date:$SHORTDATETIME$"<BR> }<SPAN
class=442081812-08062006></SPAN></FONT></FONT></FONT><BR></DIV>
<DIV><SPAN class=442081812-08062006><FONT face=Arial color=#0000ff
size=2>Regards</FONT></SPAN></DIV>
<DIV><SPAN class=442081812-08062006><FONT face=Arial color=#0000ff
size=2>Marco</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=it dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Da:</B> nagios-users-bounces@lists.sourceforge.net
[mailto:nagios-users-bounces@lists.sourceforge.net] <B>Per conto di
</B>Guillermo Bellettini<BR><B>Inviato:</B> giovedì 8 giugno 2006
14.05<BR><B>A:</B> nagios-users@lists.sourceforge.net;
nagios-users-request@lists.sourceforge.net;
nagios-users-admin@lists.sourceforge.net<BR><B>Oggetto:</B> [Nagios-users] sms
notifications<BR><B>Priorità:</B> Alta<BR></FONT><BR></DIV>
<DIV></DIV><!-- Converted from text/rtf format -->
<P align=left><SPAN lang=en-gb><FONT face=Arial size=2>Hi there,
I</FONT></SPAN><SPAN lang=es></SPAN><SPAN lang=es></SPAN><SPAN
lang=en-gb><FONT face=Arial size=2>’</FONT></SPAN><SPAN lang=es></SPAN><SPAN
lang=es></SPAN><SPAN lang=en-gb><FONT face=Arial size=2>ve installed sms tool
for sms-notification.</FONT></SPAN><SPAN lang=es></SPAN><SPAN
lang=es></SPAN><SPAN lang=en-gb> <FONT face=Arial size=2>The daemon works ok
but how do I setup nagios to send service notifications by
sms?</FONT></SPAN><SPAN lang=es></SPAN><SPAN lang=es></SPAN><SPAN
lang=en-gb></SPAN></P>
<P align=left><SPAN lang=en-gb><FONT face=Arial size=2>I</FONT></SPAN><SPAN
lang=es></SPAN><SPAN lang=es></SPAN><SPAN lang=en-gb><FONT face=Arial
size=2>’</FONT></SPAN><SPAN lang=es></SPAN><SPAN lang=es></SPAN><SPAN
lang=en-gb><FONT face=Arial size=2>ve defined the following command but it is
not working.</FONT></SPAN></P>
<P align=left><SPAN lang=en-gb><FONT face=Arial size=2>define
command{</FONT></SPAN></P>
<P align=left><SPAN lang=en-gb>
<FONT face=Arial size=2>command_name
notify-by-epager</FONT></SPAN></P>
<P align=left><SPAN lang=en-gb>
<FONT face=Arial size=2>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</FONT></SPAN></P>
<P align=left><SPAN lang=en-gb><FONT face=Arial
size=2> </FONT></SPAN><SPAN
lang=es></SPAN><SPAN lang=es> <FONT face=Arial size=2>}</FONT></SPAN></P><BR>
<P align=left><SPAN lang=en-gb><FONT face=Arial size=2>Any
suggestions?</FONT></SPAN></P>
<P align=left><SPAN lang=en-gb><FONT face=Arial
size=2>thanks</FONT></SPAN><SPAN lang=es></SPAN><SPAN lang=es></SPAN><SPAN
lang=en-gb></SPAN></P></BLOCKQUOTE></BODY></HTML>