Works here too. Looks like this needs to be punted to the dev guys
for a bug fix.
-mike
On Jan 19, 2006, at 10:58 AM, Lori Adams wrote:
I haven’t figured out what broke. But I have come up with a fix
for retaining during restarts.
I edited the init script, and added
stop)
+ cp $NagiosStatusFile $NagiosRetentionFile
Now the status.dat file is copied to the retention file.
-Lori
From: [EMAIL PROTECTED] [mailto:nagios-users-
[EMAIL PROTECTED] On Behalf Of Lori Adams
Sent: Wednesday, January 18, 2006 11:57 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] retention issue
I’m using nagios-2.04b.
Here’s what happened. We had nagios running using nagios-1.2. We
wanted to try out nagios-2.04b. I set up an entire new nagios
instance on the same machine. We called this nagios instance,
nagios-2. I’ve moved nagios-2 to be in the same location as nagios
(-1), the webserver etc. Everything is running, I can access the
cgis, etc. All values have been updated to reflect the move.
But somewhere along the line retention got extremely screwy. Here
were my values:
retain_state_information=1
state_retention_file=<keeping path private>/nagios-2.04/var/
retention.dat
retention_update_interval=60
use_retained_program_state=1
I had moved nagios-2 to be nagios on 1/11. Anytime I restart (/etc/
init.d/nagios restart), the state values return to the values on
the 11, with last check times set to 1/11.
I have updated the retention_update_interval to 2. The
retention.dat file is not updating while nagios is running. It is
also not updated when nagios shuts down, seen by both the code in
the init script and the modification time of the retention file,
even though the comments say it will:
So I decided to then remove the retention.dat file. This worked
great as the status no longer says 1/11 for the last check. Except
that no data is being retained. So anytime I do a restart, all
statuses go back to pending.
Does anyone have any thoughts?
-Lori
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Nagios-users mailing list
Nagios-users@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