<!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>Add ## for mail to sms</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><SPAN LANG="en-gb"><FONT FACE="Arial">I'm a little nervous about asking my question but I have to because I have no knowledge about coding and I have searched on Google, not sure what to search for is also hampering me.</FONT></SPAN></P>

<P><SPAN LANG="en-gb"><FONT FACE="Arial">I need to get two gates at the end of this script so my provider will then send it on to their SMS gateway</FONT> <FONT FACE="Arial">.</FONT></SPAN>
</P>
<BR>

<P><SPAN LANG="en-us"><FONT FACE="Arial">/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mailx -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$<BR>
<BR>
</FONT></SPAN><SPAN LANG="en-gb"><FONT FACE="Arial">So to get my mail to SMS should look like the below, my provider will send it to SMS and remove the two #'s.</FONT></SPAN><SPAN LANG="en-us"></SPAN>
<BR>

<BR><SPAN LANG="en-us"><FONT FACE="Arial">***** Nagios *****<BR>
<BR>
Notification Type: PROBLEM<BR>
<BR>
Service: FTP<BR>
Host: IBM 3<BR>
Address: xxx.xxx.xxx.xxx<BR>
State: CRITICAL<BR>
<BR>
Date/Time: Fri Mar 13 18:12:47 GMT 2009<BR>
<BR>
Additional Info:<BR>
<BR>
Connection refused ##<BR>
<BR>
Thanks<BR>
<BR>
</FONT></SPAN><SPAN LANG="en-gb"><FONT FACE="Arial">Martyn</FONT></SPAN><SPAN LANG="en-us"></SPAN>
</P>
<BR>
<BR>

</BODY>
</HTML>