<!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.7651.59">
<TITLE>SMS Notifications - Incomplete Output on Host Notification</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">Hi,</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I've fully migrated to Nagios 2.8. My only problem seems to be that host notifications to my cell using sms_client have incomplete output. Service notifications using sms_client to my cell work just fine. I'm guessing this is just some kind of formatting problem on my command definition.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Here are my notification command definitions:</FONT>
</P>
<P><FONT SIZE=2 FACE="r_ansi"># 'notify-by-email' command definition (ORIGINAL)</FONT>
<BR><FONT SIZE=2 FACE="r_ansi">define command{</FONT>
<BR><FONT SIZE=2 FACE="r_ansi"> command_name notify-by-email</FONT>
<BR><FONT SIZE=2 FACE="r_ansi"> command_line echo -e 'Notification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERV</FONT></P>
<P><FONT SIZE=2 FACE="r_ansi">ICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$' | /usr/bin/mail -s ' $NOTIFICATIONTYPE$ (service_alert) - $HOSTALIAS$/$</FONT></P>
<P><FONT SIZE=2 FACE="r_ansi">SERVICEDESC$ is $SERVICESTATE$ ' $CONTACTEMAIL$</FONT>
</P>
<P><FONT SIZE=2 FACE="r_ansi">}</FONT>
<BR><FONT SIZE=2 FACE="r_ansi"># 'host-notify-by-email' command definition</FONT>
<BR><FONT SIZE=2 FACE="r_ansi">define command{</FONT>
<BR><FONT SIZE=2 FACE="r_ansi"> command_name host-notify-by-email</FONT>
<BR><FONT SIZE=2 FACE="r_ansi"> command_line echo -e "Notification Type:$NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress:$HOSTADDRESS$\nInfo: $HOSTOUTPUT$</FONT></P>
<P><FONT SIZE=2 FACE="r_ansi">\n\nDate/Time: $LONGDATETIME$\n" | /usr/bin/mail -s "$NOTIFICATIONTYPE$ (host_alert) - Host $HOSTNAME$ is $HOSTSTATE$" $CONTACTEMAIL$</FONT></P>
<P><FONT SIZE=2 FACE="r_ansi"> }</FONT>
</P>
<P><FONT SIZE=2 FACE="r_ansi"># 'notify-by-sms' command definition</FONT>
<BR><FONT SIZE=2 FACE="r_ansi">define command{</FONT>
<BR><FONT SIZE=2 FACE="r_ansi"> command_name notify-by-sms</FONT>
<BR><FONT SIZE=2 FACE="r_ansi">command_line /usr/local/bin/sms_client -q $CONTACTPAGER$ '$NOTIFICATIONTYPE$: $HOSTNAME$: $SERVICEDESC$ is $SERVICESTATE$ ($SERVICEOUTPUT$)'</FONT></P>
<P><FONT SIZE=2 FACE="r_ansi"> }</FONT>
</P>
<P><FONT SIZE=2 FACE="r_ansi">#'host-notify-by-sms' command definition</FONT>
<BR><FONT SIZE=2 FACE="r_ansi">define command{</FONT>
<BR><FONT SIZE=2 FACE="r_ansi"> command_name host-notify-by-sms</FONT>
<BR><FONT SIZE=2 FACE="r_ansi">command_line /usr/local/bin/sms_client -q $CONTACTPAGER$ '$NOTIFICATIONTYPE$: $HOSTNAME$: $SERVICEDESC$ is $SERVICESTATE$ ($HOSTOUTPUT$)'</FONT></P>
<P><FONT SIZE=2 FACE="r_ansi"> }</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Email notifications work fine. Service notifications via SMS work fine. Only the hsot notifications via SMS do no t work correctly.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Here's the output I do receive from the host notification via SMS:</FONT>
</P>
<P><B><FONT FACE="Arial">Recovery:</FONT></B>
<BR><B><FONT FACE="Arial">Server1: is ()</FONT></B>
</P>
<P><FONT SIZE=2 FACE="Arial">These command definitions worked fine on my Nagios v 1.3 system.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Any help would be very appreciated.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Thanks!</FONT>
</P>
<P><B><FONT COLOR="#000080" SIZE=2 FACE="Tahoma">Beth Stover</FONT><BR>
</B><FONT COLOR="#808080" SIZE=2 FACE="Tahoma">Systems Administrator</FONT><BR>
</P>
<BR>
</BODY>
</HTML>