The example misccommands.cfg seems to have errors.
changing
define command{
command_name notify-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: $DATETIME$\n\nAdditional Info:\n\n$OUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ ale
rt - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
}
to
define command{
command_name notify-by-email
command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$
\nAddress: $HOSTADDRESS$\n State: $SERVICESTATE$\n Message: $SERVICEOUTPUT$ \nDateTime: $SHORTDATETIME$ \n\nAdditional Info:\n\n $OUTPUT$ \n" | /usr/bi
n/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
}
It was bombing on the previous variables and not doing $SERVICEOUTPUT$[
Sorry to post in the wrong forum..Statistics: Posted by lhenkel — Tue Aug 07, 2007 4:02 pm
]]>