HOSTNOTES, SERVICEACKAUTHOR, HOSTACKAUTHOR in notifications

Ralf Gross Ralf-Lists at RalfGross.de
Wed Feb 16 12:31:53 CET 2005


Hi,

I started to tune the format and content of our notifications. We use
Email, SMS and Winpopups. We want to use the $HOSTNOTES$ macro to add
contact addresses for hosts and services. This should be added to every
notification.

If I add the $HOSTNOTES$ macro(misccommands.cfg) and there are no notes
defined in hostextinfo.cfg for this host, instead of the (empty)
$HOSTNOTES$ macro a $ sign is added to the notification text. Can I avoid
this anyhow?

If someone acks a problem, I want to add the name of the person to the
notification that is send out. But if I add $HOSTACKAUTHOR$ or
$SERVICEACKAUTHOR$ to the (host-)notify-by-email/sms/winpopup definition,
and the $NOTIFICATIONTYPE$ macro is not set to "ACKNOWLEDGEMENT" (PROBLEM,
RECOLVERY...) a $ sign is added to the notification too.

Do I have to add additional notification commands if it may be possible
that some macros may not be present in a notification? I can't see how to
avoid the $ sign.

Ralf










-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at 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





More information about the Users mailing list