Nagios archive file issue
Nagios archive file issue
HI All,
I have been facing some issues with Nagios Archive file. Could you please help me with this?
Archive file is not updating and last accessed time stamp is displaying 00:00. Because of this I am not able to see the historical alert/event information.
Nagios core version is 3.0.1
Please share your comments.
Thanks and Regards
Sujay
I have been facing some issues with Nagios Archive file. Could you please help me with this?
Archive file is not updating and last accessed time stamp is displaying 00:00. Because of this I am not able to see the historical alert/event information.
Nagios core version is 3.0.1
Please share your comments.
Thanks and Regards
Sujay
Re: Nagios archive file issue
Which archive file? What's the path?
Did you run out of disk space?
What's the output of an ls -l command of the file?
Do you see any errors on the interface when you're trying to access this information?
Did you run out of disk space?
Code: Select all
df -hDo you see any errors on the interface when you're trying to access this information?
Former Nagios Employee.
me.
me.
Re: Nagios archive file issue
Disk space is healthy. I believe because of this I am getting below error when I try to view the notifications log file.
"no notifications have been recorded in the current log file"
Thanks
Sujay
"no notifications have been recorded in the current log file"
Thanks
Sujay
Re: Nagios archive file issue
What's the output of an ls -l command of the file?
Be sure to check out the Knowledgebase for helpful articles and solutions!
Re: Nagios archive file issue
Below is the output of ls -l. I am concerned about those files with the time stamp 00:00. for these files I am getting the error
"no notifications have been recorded in the current log file".
"no notifications have been recorded in the current log file".
Re: Nagios archive file issue
Does it help if you change the timestamp by running something like this?
Code: Select all
touch -d "Apr 23 23:59" nagios-04-23-2016-00.logBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nagios archive file issue
Hi Bug Hunter,
Yes i tried changing the time stamp for no good. Even though the last accessed time stamp gets changed logs are not visible on the console. Still the same error
"no notifications have been recorded in the current log file".
Due to this error I am facing hard time.
Yes i tried changing the time stamp for no good. Even though the last accessed time stamp gets changed logs are not visible on the console. Still the same error
"no notifications have been recorded in the current log file".
Due to this error I am facing hard time.
Re: Nagios archive file issue
In the nagios.cfg file is a settings that rotates the nagios log file at midnight in to the archive folder which is normal.
That is the reason the files are time stamped at midnight.
Now the current log file not updating is another issue. Lets try and restart nagios to see in the current log file starts to log data to it.
Login as root to the Nagios server and run the following.
If this doesn't work, please post your nagios.cfg file.
That is the reason the files are time stamped at midnight.
Now the current log file not updating is another issue. Lets try and restart nagios to see in the current log file starts to log data to it.
Login as root to the Nagios server and run the following.
Code: Select all
service nagios stop
killall -9 nagios
service nagios start
service httpd restartBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nagios archive file issue
Thanks for your reply.
Even though log rotation is configured to run at mid night, for those logs with the time stamp 00:00, data collected in the log file is incomplete (not for the entire day). In some log files data can be seen only until 15:45 or 22:10 (When I cat the file).
Even though log rotation is configured to run at mid night, for those logs with the time stamp 00:00, data collected in the log file is incomplete (not for the entire day). In some log files data can be seen only until 15:45 or 22:10 (When I cat the file).
Re: Nagios archive file issue
It is hard to say why the log files are not populating fully.
The first step would to upgrade your system.
There has been a lot up updates / fixes since Core version 3.0.1 that may be causing this.
Take a look in the Changelog for more details.
https://www.nagios.org/projects/nagios-core/history/3x/
The first step would to upgrade your system.
There has been a lot up updates / fixes since Core version 3.0.1 that may be causing this.
Take a look in the Changelog for more details.
https://www.nagios.org/projects/nagios-core/history/3x/
Be sure to check out our Knowledgebase for helpful articles and solutions!