Notification email format

Hi there all.

I have Nagios 2.0b4 install on CentOs 4.1
Everything seems to be working fine so far, except for my notification emails.

The format of the mails does not seem to be right.
The service and state variables are not shown in the mail.

Any idea on how to fix this?

Below is an example an email.

Regards

Darryn

Subject Line : ** PROBLEM alert - zoe.dartec.co.za/ is **

Body: ***** Nagios *****

Notification Type: PROBLEM

Service:
Host: abc.domain.co.za
Address: 192.168.50.200
State:

Date/Time: Fri Nov 4 15:57:48 SAST 2005

Additional Info:

run the command from the misccommands.cfg file by hand and make any needed changes.

I have exactly the same problem, but Im not sure how Im supposed to run the command by hand.
The command seems to be
"/usr/bin/printf “%b” “***** Nagios 2.8 ***\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/mail -s " $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **” $CONTACTEMAIL$".

Running that by hand on commandline surely will result in nothing, since none of the variables are defined in my environment.

Found the problem…
I was using “notify-by-email” instead of “host-notify-by-email” when monitoring hosts.
Once I changed that, the emails look fine.