I am using:
Nagios Core 3.2.0
Ubuntu Server 9.10
I am unable to get the $SERVICEOUTPUT$ to print out on any email notifications. I have enabled notification logging and when I view the nagios.log I can see that when it builds the notification it is blank for the service out put. Here are the details from nagios.debug:
Raw notification command: /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 $LONGSERVICEOUTPUT$" | /usr/bin/mail -s " $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **” $CONTACTEMAIL$
[1266807685.299293] [032.2] [pid=9948] Processed notification command: /bin/echo -e “%b” “***** Nagios ***\n\nNotification Type: PROBLEM\n\nService: MySQL Slave SQL\nHost: DTSSQL Database Server\nAddress: 192.168.xxx.xxx\nState: CRITICAL\n\nDate/Time: Sun Feb 21 21:01:25 CST 2010\n\nAdditional Info:\n\n " | /usr/bin/mail -s " PROBLEM Service Alert: DTSSQL Database Server/MySQL Slave SQL is CRITICAL **” nagios@localhost
I am unsure of why this is happening and I have tried /bin/echo -e with the same results, a completely blank $SERVICEOUTPUT$ line, even with $LONGSERVICEOUTPUT$.
Any help would be great. Thanks!