From: Ethan G. <ega...@us...> - 2010-08-28 15:24:52
|
Update of /cvsroot/nagios/nagios/sample-config/template-object In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv26686/sample-config/template-object Modified Files: commands.cfg.in Log Message: Fix for sample notification command (bug #62) Index: commands.cfg.in =================================================================== RCS file: /cvsroot/nagios/nagios/sample-config/template-object/commands.cfg.in,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** commands.cfg.in 9 Jun 2007 16:43:04 -0000 1.10 --- commands.cfg.in 28 Aug 2010 15:24:44 -0000 1.11 *************** *** 34,38 **** define command{ command_name notify-service-by-email ! command_line /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$" | @MAIL_PROG@ -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } --- 34,38 ---- define command{ command_name notify-service-by-email ! command_line /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$\n" | @MAIL_PROG@ -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } |