<!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>Mail help needed</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">I have found a provider that will convert Email to Voice but they use $START$ and $END$ for their system to understand the mails.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">I have altered my mail script as below</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">/usr/bin/printf "%b" "$START$ Alert\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" $END$ | /usr/bin/mailx -s " $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ " $CONTACTEMAIL$</FONT></P>

<P><FONT SIZE=2 FACE="Arial">But when I send a test mail I get which just adds a single $ at the beginning and the end, is there a way to do this or is this happening because Nagios users the $ itself, sorry for what may seem a dumb question to you but I just do not know the answer</FONT></P>

<P><FONT SIZE=2 FACE="Arial">$ Alert</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Notification Type: PROBLEM</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Service: FTP</FONT>

<BR><FONT SIZE=2 FACE="Arial">Host: test</FONT>

<BR><FONT SIZE=2 FACE="Arial">Address: 8x.1x.9x.2x</FONT>

<BR><FONT SIZE=2 FACE="Arial">State: CRITICAL</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Date/Time: Tue May 12 15:53:40 BST 2009</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Additional Info:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">CRITICAL - Socket timeout after 10 seconds$</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Cheers</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Martyn</FONT>
</P>

</BODY>
</HTML>