<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7036.0">
<TITLE>sms notifications</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Arial">Hi there, I</FONT></SPAN><SPAN LANG="es"></SPAN><SPAN LANG="es"></SPAN><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Arial">’</FONT></SPAN><SPAN LANG="es"></SPAN><SPAN LANG="es"></SPAN><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Arial">ve installed sms tool for sms-notification.</FONT></SPAN><SPAN LANG="es"></SPAN><SPAN LANG="es"></SPAN><SPAN LANG="en-gb"> <FONT SIZE=2 FACE="Arial">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 SIZE=2 FACE="Arial">I</FONT></SPAN><SPAN LANG="es"></SPAN><SPAN LANG="es"></SPAN><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Arial">’</FONT></SPAN><SPAN LANG="es"></SPAN><SPAN LANG="es"></SPAN><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Arial">ve defined the following command but it is not working.</FONT></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Arial">define command{</FONT></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-gb">        <FONT SIZE=2 FACE="Arial">command_name    notify-by-epager</FONT></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-gb">        <FONT SIZE=2 FACE="Arial">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 SIZE=2 FACE="Arial">       </FONT></SPAN><SPAN LANG="es"></SPAN><SPAN LANG="es"> <FONT SIZE=2 FACE="Arial">}</FONT></SPAN></P>
<BR>

<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Arial">Any suggestions?</FONT></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Arial">thanks</FONT></SPAN><SPAN LANG="es"></SPAN><SPAN LANG="es"></SPAN><SPAN LANG="en-gb"></SPAN></P>

</BODY>
</HTML>