notifications_enabled
Bill Gibbs
bgibbs at edurotech.com
Mon Jan 6 15:36:02 CET 2003
Hi,
I removed the references in the config files, restarted nagios and
verified they no longer showed up. I then put back the config and restarted
nagios - and viola the looked correct.
So it does appear to be a bug.
Bill
----- Original Message -----
From: "Tom DE BLENDE" <tdeblend at gcc.dhl.com>
To: "Bill Gibbs" <bgibbs at edurotech.com>
Cc: <nagios-users at lists.sourceforge.net>
Sent: Monday, January 06, 2003 3:36 AM
Subject: Re: [Nagios-users] notifications_enabled
> Dear Bill,
>
> Funny you should mention this. I have seen some weird stuff happening
> as well when I was porting our Netsaint installation to Nagios a few
> weeks ago. If I recall correctly, I had a passive service check
> defined as follows:
>
> <snip>
> check_period 24x7
> check_command check_ping
> <snip>
>
> As you can see, this is wrong, as this service check should never be
> executed actively. So I changed the configuration of those services
> to:
>
> <snip>
> check_period none
> check_command check_ping
> <snip>
>
> I restarted the service, but the strange thing was that these changes
> did not take effect. The service was still checked with check_ping. I
> stopped the service, waited and started it again: same thing: the
> changes were not applied. After double checking everything, I had to
> cut this service from the services file, restart Nagios, verify that
> the service was gone, paste the exact same code in place again, and
> restart Nagios yet another time. This time the changes were applied.
>
> As I pasted the same configuration (cut and paste), I'm pretty
> confident that it is a bug. As I was quite busy at that time, I
> couldn't find the time to post it here, and I forgot. But now that you
> post this similar behavior, I think that this should get some more
> attention.
>
> Anyone else experienced similar oddities?
>
> Kind regards,
> Tom
>
>
> Bill Gibbs wrote:
> >
> > I have a hosts.cfg file copied from the sample config.
> >
> > notifications_enabled is set to 1.
> >
> > I have a few hosts, where Iset notifications_enabled to 0 - and when I
click
> > "host detail" I see a little icon of a bullhorn with an X over it.
> >
> > However, I want to reenable notifications for that host. I removed that
> > line, restarted nagios (/etc/init.d/nagios restart) but the icon still
> > appears. When I click the name of the host, it says "Host
notifications:
> > DISABLED". I even tried to say notifications_enabled 1 specific in that
> > config block yet there is no change.
> >
> > Nagios version: 1.0 from 11/24/2002
> >
> > Template:
> >
> > define host{
> > name generic-host ; The name of this host
template -
> > referenced in other host definitions, used for template r
> > ecursion/resolution
> > notifications_enabled 1 ; Host notifications are enabled
> > event_handler_enabled 1 ; Host event handler is enabled
> > flap_detection_enabled 1 ; Flap detection is enabled
> > process_perf_data 1 ; Process performance data
> > retain_status_information 1 ; Retain status information across
> > program restarts
> > retain_nonstatus_information 1 ; Retain non-status information
> > across program restarts
> >
> > register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A
REAL
> > HOST, JUST A TEMPLATE!
> > notification_interval 0 ; send only one notification
> > notification_period 24x7 ; do it 24 hours a day 7 days a week
> > notification_options d,u,r ; send notification on down,
unreachable
> > and recovery
> > check_command check-host-alive
> > max_check_attempts 10
> > }
> >
> > Example host:
> >
> > define host{
> > use generic-host
> > host_name somehost
> > alias Some Alias
> > address x.x.x.x
> > parents someparent
> > notifications_enabled 0
> > }
> >
> > I remove notifications_enabled and there is no change in the GUI
output - it
> > still apparently thinks notifications are disabled.
> >
> > Bill "Elvis" Gibbs
> > Eduro Technologies, Inc.
> > main 240-529-2000 | fax 301-662-9552 | cell 301-748-5418
> >
> > -------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > _______________________________________________
> > Nagios-users mailing list
> > Nagios-users at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/nagios-users
>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
More information about the Users
mailing list