Nagios log history missing
-
- Posts: 14
- Joined: Wed Mar 04, 2015 3:02 pm
Re: Nagios log history missing
As instructed changes were done and also i am attaching the log file
- Attachments
-
- nagios.log
- (10.32 KiB) Downloaded 309 times
Re: Nagios log history missing
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.
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!
-
- Posts: 14
- Joined: Wed Mar 04, 2015 3:02 pm
Re: Nagios log history missing
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.
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
Let us know how it works out for you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nagios log history missing
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
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
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
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
-Kriyeshh
Re: Nagios log history missing
The data is getting to the nagios.log file, just not to the archives.
I am interested the version of the other system too.
I am interested the version of the other system too.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 14
- Joined: Wed Mar 04, 2015 3:02 pm
Re: Nagios log history missing
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
If everything has been resolved, are we all set to close the thread?
Former Nagios employee
-
- Posts: 14
- Joined: Wed Mar 04, 2015 3:02 pm
Re: Nagios log history missing
Yes tmcdonald it resolved, you can close this thread.tmcdonald wrote:If everything has been resolved, are we all set to close the thread?