Alert Emails Contain The Wrong Information


I set up Nagios 3.0.4 using the quickstart. The service alert notifications for Disk Capacity contain information regarding Ping and not the Disk capacity information I expected. Here’s my notify service definition:

‘notify-service-by-email’ command definition

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$" | /bin/mail -s " $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **” $CONTACTEMAIL$

Can anyone tell me why a disk capacity issue is generating a problem alert that just contains info about packet less? Obviously I’ve crossed a config somewhere but I can’t seem to find it.



you should show the disk service definition for the host :slight_smile: