Nagios archive file issue

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.
Locked
sujaygr
Posts: 9
Joined: Thu Apr 28, 2016 3:20 am

Nagios archive file issue

Post 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
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios archive file issue

Post by hsmith »

Which archive file? What's the path?

Did you run out of disk space?

Code: Select all

df -h
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?
Former Nagios Employee.
me.
sujaygr
Posts: 9
Joined: Thu Apr 28, 2016 3:20 am

Re: Nagios archive file issue

Post 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
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Nagios archive file issue

Post by bwallace »

What's the output of an ls -l command of the file?
Be sure to check out the Knowledgebase for helpful articles and solutions!
sujaygr
Posts: 9
Joined: Thu Apr 28, 2016 3:20 am

Re: Nagios archive file issue

Post 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".
Attachments
IMAGE$582F4E246B5A8DA.jpg
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios archive file issue

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
sujaygr
Posts: 9
Joined: Thu Apr 28, 2016 3:20 am

Re: Nagios archive file issue

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

Re: Nagios archive file issue

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
sujaygr
Posts: 9
Joined: Thu Apr 28, 2016 3:20 am

Re: Nagios archive file issue

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

Re: Nagios archive file issue

Post 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/
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked