Notifications not showing correct output


Hello all, I’m running Nagios 2.0 and am having a few problems with the notification messages. Here’s an example of one of my email notifications:

[code]***** Nagios *****

Notification Type: PROBLEM
State: DOWN
Info: $

Date/Time: $[/code]

How can I fix these so that the “Info” and “Date/Time” populate correctly? Thank you for any help you can offer.



Please post your object definition for the host notification command for the purposes of a sanity-check



I started to do some searching (I know, search first!) and I did find a site that had all the macro listings. I changed what I had:


and it resolved the issue. I guess my next question is why did it have incorrect macros in the first place?

Thank you for the reply Strides.


That’s certainly an odd one… I think maybe $DATETIME$ is perhaps an historic macro from v1 that has been deprecated… certainly isn’t on the current list of v2 or v3 macros anyhow… I would guess it was replaced by $LONGDATETIME$. Likely you have something else like $OUTPUT$ instead of $HOSTOUTPUT$ after “Info:” as well…


Yep. It had $OUTPUT$, and I replaced it with $SERVICEOUTPUT$. Very strange.

Anyways, thanks again for the help.