<!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 5.5.2653.12">
<TITLE>Format $OUTPUT$ in miscommands.cfg</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>I am having a problem where any notification that is sent to the miscommands.cfg for the "notify-by-email" definition gets truncated when it encounters a "\" in the $OUTPUT$ macro.</FONT></P>

<P><FONT SIZE=2>Example:</FONT>
</P>

<P><FONT SIZE=2>"Landesk Login Alert: Remote control session started with machineA from DOMAINNAME\username using Windows NT security" is the output of the command, which shows up correctly in the web interface.  But when an email is sent using this entry in the miscommands.cfg:</FONT></P>

<P><FONT SIZE=2>command{</FONT>
<BR><FONT SIZE=2>        command_name    notify-by-email</FONT>
<BR><FONT SIZE=2>        command_line    /usr/bin/printf "%b" "***** Nagios  *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional Info:\n\n$OUTPUT$ | /bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$</FONT></P>

<P><FONT SIZE=2>        }</FONT>
</P>

<P><FONT SIZE=2>All I get is this:</FONT>
</P>

<P><FONT SIZE=2>"Landesk Login Alert: Remote control session started with HTNWLOGGER from DOMAINNAME" and it seems to be cutting off at the "\" in the output.  Is there anyway to format this so that it changes the "\" to something else or anything so I can get the entire output without the truncation?</FONT></P>

<P><FONT SIZE=2>Any help would be appreciated.</FONT>
</P>

<P><FONT SIZE=2>Thanks,</FONT>
<BR><FONT SIZE=2>Shane</FONT>
</P>

</BODY>
</HTML>