Custom Service Notification

Victor Lanza vicjalan at gmail.com
Tue May 13 16:33:38 CEST 2008


Great, that's exactly what I was missing; I was unaware that it used the
same normal notification commands. I was going nuts trying to figure where
it would get such command and how I would even write one if it needed to be
written. :)

Thanks it worked.

-----Original Message-----
From: Marc Powell [mailto:marc at ena.com] 
Sent: Tuesday, May 13, 2008 10:16 AM
To: Victor Lanza; nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] Custom Service Notification

On 5/13/08 7:24 AM, "Victor Lanza" <vicjalan at gmail.com> wrote:

>> From looking around some more, I'm getting mixed information about how
these
> custom notifications should work. Some say that it is supposed to send the
> comments added in the email and some say that it isn't supposed to. Can
> anyone clarify this please?

I don't use nagios-3 yet but again, my reading of the code is that it uses
the normal notification command{} specified for the contacts. If your
host/service notification command{} definitions use the
$NOTIFICATIONCOMMENT$ macro, then the comment will be included in the
e-mail.

http://nagios.sourceforge.net/docs/3_0/macrolist.html#notificationcomment

$NOTIFICATIONCOMMENT$     A string containing the comment that was entered
by the notification author. If the $NOTIFICATIONTYPE$ macro is set to
"DOWNTIMESTART" or "DOWNTIMEEND", this will be the comment entered by the
user who scheduled downtime for the host or service. If the
$NOTIFICATIONTYPE$ macro is "ACKNOWLEDGEMENT", this will be the comment
entered by the user who acknowledged the host or service problem. **If the
$NOTIFICATIONTYPE$ macro is "CUSTOM", this will be comment entered by the
user who initated the custom host or service notification.**

(emphasis mine)

--
Marc


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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