Nagios log history missing

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
sasivarenan
Posts: 14
Joined: Wed Mar 04, 2015 3:02 pm

Re: Nagios log history missing

Post by sasivarenan »

As instructed changes were done and also i am attaching the log file
Attachments
nagios.log
(10.32 KiB) Downloaded 309 times
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios log history missing

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
sasivarenan
Posts: 14
Joined: Wed Mar 04, 2015 3:02 pm

Re: Nagios log history missing

Post 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.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios log history missing

Post by tgriep »

Let us know how it works out for you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
Kriyeshh
Posts: 18
Joined: Wed May 13, 2015 5:15 pm
Location: India

Re: Nagios log history missing

Post 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
Cheers,
-Kriyeshh
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios log history missing

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
sasivarenan
Posts: 14
Joined: Wed Mar 04, 2015 3:02 pm

Re: Nagios log history missing

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios log history missing

Post by tmcdonald »

If everything has been resolved, are we all set to close the thread?
Former Nagios employee
sasivarenan
Posts: 14
Joined: Wed Mar 04, 2015 3:02 pm

Re: Nagios log history missing

Post 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.
Locked