Page 1 of 1
Nagios archive file issue
Posted: Thu Apr 28, 2016 3:36 am
by sujaygr
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
Re: Nagios archive file issue
Posted: Thu Apr 28, 2016 9:39 am
by hsmith
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?
Re: Nagios archive file issue
Posted: Fri Apr 29, 2016 6:38 am
by sujaygr
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
Re: Nagios archive file issue
Posted: Fri Apr 29, 2016 12:23 pm
by bwallace
What's the output of an ls -l command of the file?
Re: Nagios archive file issue
Posted: Tue May 03, 2016 7:59 am
by sujaygr
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".
Re: Nagios archive file issue
Posted: Tue May 03, 2016 2:35 pm
by lmiltchev
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.log
Re: Nagios archive file issue
Posted: Wed May 04, 2016 2:31 am
by sujaygr
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.
Re: Nagios archive file issue
Posted: Wed May 04, 2016 1:39 pm
by tgriep
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.
Code: Select all
service nagios stop
killall -9 nagios
service nagios start
service httpd restart
If this doesn't work, please post your nagios.cfg file.
Re: Nagios archive file issue
Posted: Thu May 05, 2016 2:19 am
by sujaygr
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).
Re: Nagios archive file issue
Posted: Thu May 05, 2016 10:01 am
by tgriep
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/