Custom Service Notification

Marc Powell marc at ena.com
Tue May 13 16:16:11 CEST 2008


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