service notifications

Marc Powell marc at ena.com
Tue Jun 7 22:00:59 CEST 2005



> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Fred Reinthaler
> Sent: Tuesday, June 07, 2005 2:22 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] service notifications
> 
> Hi,
> 
> I have a bunch of services that show they are configured to disabled
> when I look at them in the Nagios GUI.  I tried to enable them by
> setting "notifications_enabled" to 1 in the template I am using but
> that did not seem, to change anything.  I also tried to set it
> specifically for a service but no change there either.
> 
> The only way I seem to be able to enable the notification is through
> the GUI by selecting "Enable Notifications For This Service".
> 
> What am I missing?


I am presuming that when you say they are 'disabled' that you do not
mean that active_checks_enabled is set to 0 and are truly talking about
notifications only. If you have retention enabled --

http://nagios.sourceforge.net/docs/1_0/xodtemplate.html

"Retention Notes

It is important to point out that several directives in host and service
definitions may not be picked up by Nagios when you change them. Host
and service directives that can exhibit this behavior are marked with an
asterisk (*). The reason for this behavior is due to the fact that
Nagios chooses to honor values stored in the state retention file over
values found in the config files, assuming you have state retention
enabled on a program-wide basis.

One way to get around this problem is to disable the retention of
non-status information using the retain_nonstatus_information directive
in the host and service definitions. Disabling this directive will cause
Nagios to take the initial values for these directives from your config
files, rather than from the state retention file when it (re)starts.
Using this option is not recommended, as it may result in some
unexpected (from your point of view) results.

Alternatively, you can issue the appropriate external command or change
the value of the host or service directive via the web interface, so
that it matches what you've changed it to in the config files. This is
usually done by using the extended information CGI. This option takes a
bit more work, but is preferable to disabling the retention of
non-status information (mentioned above)."

http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#service

"notifications_enabled *: 	This directive is used to determine
whether or not notifications for this service are enabled. Values: 0 =
disable service notifications, 1 = enable service notifications."

--
Marc


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r 
_______________________________________________
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