Page 2 of 2

Re: Nagios log history missing

Posted: Thu Jul 30, 2015 9:19 am
by sasivarenan
As instructed changes were done and also i am attaching the log file

Re: Nagios log history missing

Posted: Thu Jul 30, 2015 11:15 am
by tgriep
It looks like there is a bug in version Core version 4.0.1 that was fixed in 4.0.2 for the log rotations which should fix what you are seeing.
If you update to a newer version or Nagios Core, it should fix the issue you are having.

Re: Nagios log history missing

Posted: Thu Jul 30, 2015 12:52 pm
by sasivarenan
Thanks tgriep,

I felt the same, But we also have another server to monitor different host and service with the same version and also the same configuration it works fine. This situation is getting me confused.

Thanks again for your support. I will get back to you once the changes done.

Re: Nagios log history missing

Posted: Thu Jul 30, 2015 3:06 pm
by tgriep
Let us know how it works out for you.

Re: Nagios log history missing

Posted: Thu Jul 30, 2015 4:50 pm
by Kriyeshh
Hi Sasi,

You said you have one more Nag_Server with the same configuration, so I trust your other server's log also should be same - like contains only one hour data.
Please ensure that which will be helpful to debug?
#Log Rotation Mode
#Current Log file i.e, nagios.log (not entire data - just confirmation that nagios recording 24hrs log)
#Same check required in archives log
Also can you share us the version of the Nagios in the alternate server?

Perhaps, i think you have mentioned "auto save retention data" timelimit as 60minutes in your nagios.cfg, which makes nagios to record its current status in "retention.dat" which is also copied to the nagios.log as well as messages.log.

Try this:
retention_update_interval=60
retention_update_interval=0

By doing this you will disable auto save retention and you should check for the status of the log file? Just guessing :idea:
So once you do that within 1 hr you could check whether 2hr log is written to nagios.log, instead of auto save retention data completed.

-Wishes
Kriyeshh

Re: Nagios log history missing

Posted: Fri Jul 31, 2015 10:49 am
by tgriep
The data is getting to the nagios.log file, just not to the archives.
I am interested the version of the other system too.

Re: Nagios log history missing

Posted: Tue Aug 25, 2015 6:44 am
by sasivarenan
tgriep wrote:It looks like there is a bug in version Core version 4.0.1 that was fixed in 4.0.2 for the log rotations which should fix what you are seeing.
If you update to a newer version or Nagios Core, it should fix the issue you are having.

Hi tgriep,

Thanks it helped.... we have updated the nagios version now the log rotation have fixed, we able to see the history data in the event log.

Thanks again

Re: Nagios log history missing

Posted: Tue Aug 25, 2015 9:11 am
by tmcdonald
If everything has been resolved, are we all set to close the thread?

Re: Nagios log history missing

Posted: Mon Aug 31, 2015 6:59 am
by sasivarenan
tmcdonald wrote:If everything has been resolved, are we all set to close the thread?
Yes tmcdonald it resolved, you can close this thread.