<html><body>Hi,<br><br>I need to escape the "$OUTPUT$" as one of my checks returns a "\" ( c:\ -<br>total: 2.00 Gb - used: 2.00 Gb (100%) - free 0.00 Gb (0%) )<br>and this causes printf to print up to the "\" and then stop.<br><br>Anyone know how I can escape the output of the variable?<br><br>Regards<br>Rabie<br><br><br>define command{<br> command_name notify-by-email<br> command_line /usr/bin/printf "%b" " ***** Nagios<br>*****\n\nDate/Time: $DATETIME$\n\nNotification Type:<br>$NOTIFICATIONTYPE$\nService: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress:<br>$HOSTADDRESS$\nState: $SERVICESTATE$\nAdditional Info:\n\n$OUTPUT$" |<br>/bin/mail -s "*$NOTIFICATIONTYPE$ alert* - $HOSTNAME$/$SERVICEDESC$ is<br>$SERVICESTATE$" $CONTACTEMAIL$<br> }</body></html>