Does anyone else have problems with email notifications generated by the check_command param generated by host failures, particularly the check-host-alive command ?
I have the check_command for each host set to check-host-alive. If any of the hosts goes offline, and fails the check-host-alive check, I get this email; Subject: ** PROBLEM alert - My laptop/ is ** ***** Nagios ***** Notification Type: PROBLEM Service: Host: My laptop Address: 192.168.100.241 State: Date/Time: Fri May 26 22:38:07 BST 2006 Additional Info: The 'notify-by-email' command that I am using to send out the email notifications is as follows. # 'notify-by-email' command definition define command{ command_name notify-by-email command_line /usr/bin/printf "%b" "subject: ** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ ** \n\n ***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /usr/bin/msmtp $CONTACTEMAIL$ } Now, this is the same command I use for every other alert, but only the check-host-alive check causes an email with NO source, NO state etc. Is it just me that gets this? Does the check-host-alive command not fill in the $servicedesc$ or the $servicestate$ ? Olly ------------------------------------------------------- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid7521&bid$8729&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null