Page 1 of 1

Error: Cannot open log file '/opt/nagios/var/archives/nagios

Posted: Tue Feb 10, 2015 11:38 am
by s3kur1ty
Error: Cannot open log file '/opt/nagios/var/archives/nagios-01-14-2015-00.log' for reading!

All other log files archived cannot be read from the Web UI.

Permissions for the directory and files are -rw-r--r--

The owner of the files and directory is nagios:nagios

Please advise of where / how to troubleshoot.

Thank you

Re: Error: Cannot open log file '/opt/nagios/var/archives/na

Posted: Tue Feb 10, 2015 5:58 pm
by bdgoecke
What OS are you using ?

How did you install Nagios ?

Could you share your nagios.conf file ?

Where did you get this error ?

==>brian.

Re: Error: Cannot open log file '/opt/nagios/var/archives/na

Posted: Thu Feb 12, 2015 4:00 pm
by s3kur1ty
RHEL

It is a legacy install inherited from previous admins.

The error shows in the Web browser interface when trying to view the archived nagios log files.

If you browse to Alerts -> History and then choose and earlier archive at the top navigation the error appears for any previous dates.

The current day shows just fine.

Re: Error: Cannot open log file '/opt/nagios/var/archives/na

Posted: Thu Feb 12, 2015 4:58 pm
by abrist
Just out of curiosity, can you post the output of:

Code: Select all

ls -la /opt/nagios/var/archives/nagios-01-14-2015-00.log
I would like to make sure it exists. I have seen a handful of installs that stamped the file names differently than what nagios was expecting.
Also, is nagios is the apache group and vice versa?

Code: Select all

grep nag /etc/group

Re: Error: Cannot open log file '/opt/nagios/var/archives/na

Posted: Thu Jul 30, 2015 5:08 am
by venkat.p789
Hi ,

We are unable to fetch the alert history for the hosts or service for the previous days from Nagios core web interface. But logs are available in under /usr/local/nagios/var/archives.PFA for screen shot and help me on this issue. Please let us know,if you need further information

system details:

Nagios version : nagios core 3.5

operating systems :centos6.6

Thanks in advance for your support.

Re: Error: Cannot open log file '/opt/nagios/var/archives/na

Posted: Thu Jul 30, 2015 10:46 am
by jdalrymple
1) new thread please, your problem is unrelated to the OP's problem as far as I can tell (I'm going to lock this one)
2) Are you sure you even have notifications to be viewed? `grep NOTIFICATION nagios.log`