1.2 BUG with state retention?

Tedman Eng teng at dataway.com
Thu Nov 4 22:13:21 CET 2004


I don't think it's a bug.  According to your posted configs, state is only
written every 60 minutes.  This means that the running-config and status.sav
can be out of sync for up to 60 minutes after you change a setting.


-----Original Message-----
From: Brad Johnson [mailto:bjohnson at got.wedgie.org]
Sent: Thursday, November 04, 2004 9:32 AM
To: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] 1.2 BUG with state retention?


I wanted to bring this back up - because I have also encountered the same
problem. It's as if it flips the 0s and 1s in the status save file. If you
keep restarting nagios, it keeps flipping active and passive service
checks on and off.

I guess the only fix is to dig through the source and figure out where
things are getting criss-crossed. Has anyone in the community already
patched this?

Thanks.

On Wed, 24 Mar 2004, jschmoe wrote:

> I just upgraded from 1.1  Previously I had program state retention
> enabled, and it was working fine.  Now it seems broke with 1.2.
> 
> Here's the configuration:
> 
> retain_state_information=1
> state_retention_file=/var/log/nagios/status.sav
> retention_update_interval=60
> use_retained_program_state=1
> accept_passive_service_checks=1
> execute_service_checks=1
> enable_notifications=0
> enable_event_handlers=1
> 
> And here's the scenario:
> 
> Currently nagios is running and its current settings are:
> OFF Flap Detection
> OFF Notifications
>  ON Event Handlers
>  ON Active Checks
>  ON Passive Checks
> 
> saves its program state in status.sav as:
> PROGRAM: 0;1;1;1;1;0;1;0
> 
> Then, through the CGI, I turn off Active Checks.
> After the CGI indicates that Active checks are indeed disabled, restart
> nagios.
> At that point nagios writes the status.sav info as:
> PROGRAM: 0;1;0;1;1;0;1;0
> 
> Then when it restarts, for some reason Active Checks are ON! and Passive
> Checks are OFF!
> 
> Then, if I don't change anything, and just restart nagios again, it writes
> out its status as:
> PROGRAM: 0;0;1;1;1;0;1;0
> 
> And when it restarts Active Checks are OFF, and Passive Checks are ON.
> 
> Has anyone else noticed this screwy behavior?
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&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
> 



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&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


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&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