Notification emails are blank


I am receiving notification alerts from Nagios that have blank values. When I use the check_ping command and release a hosts IP address I get the following email:

Subject: [blockquote]** PROBLEM alert - amds-expolap06/ is **[/blockquote]

Body: [blockquote]***** Nagios *****

Notification Type: PROBLEM

Host: amds-expolap06

Date/Time: Tue Apr 11 10:14:20 MDT 2006

Additional Info:[/blockquote]

Any ideas? This only appears to be occuring with the check_ping command. Everything seems fine with the check_http, check_ftp, and other check commands I’m using. It would be very helpfull if I could get Nagios to tell me what the problomatic service is and what state its in. A google search and the official Nagios documentation have yielded no answers for me. I’m running this on Gentoo Linux.

Thanks for reading.


What version of Nagios are you running? Certain values in the default v2.x notification commands don’t really work.


This is Nagios 2.x. So it sounds like I have to write my own command for this? Unless there are some freely available ones.

Any known work arounds?

#4 … c.php?6194
In the above url, I point out many problem’s in the docs, and also in the nagios 2.x installation in general.
One of them is what you have noticed.
The problem is this, quoting the other thread,


define command {
command_name notify-by-email
command_line /usr/bin/printf “%b” “***** Nagios ***\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $SHORTDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mailx -s " $NOTIFICATIONTYPE$ alert - $HOSTNAME$/$SERVICEDESC$ is $SERVICESTATE$ **” $CONTACTEMAIL$

shortdatetime works for me with Nagios 2.0

Havent update to 2.1 yet

ChrisN, what does your notify-by-email looks like in miscommands.cfg?


my problem is same with ChrisN and i’m using Nagios Version 2.3-1

i have no any problem with nagios-2.0-2.2


Try using mail instead of mailx and see if that helps.


Try changing the notify-by-email command to just have the state you are having problems with (or make a new command).

Also, try adding a newline right after $SERVICEOUTPUT$

Mike B.


no, it not soled this issue…


Paste your command notify-by-email and run it by hand. Paste the output of what you just ran and the exact command line used. That way, we can do the same here.