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

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
s3kur1ty
Posts: 2
Joined: Tue Feb 10, 2015 11:21 am

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

Post 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
bdgoecke
Posts: 36
Joined: Wed Oct 22, 2014 3:41 pm

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

Post 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.
s3kur1ty
Posts: 2
Joined: Tue Feb 10, 2015 11:21 am

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

Post 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.
Attachments
no-error.jpg
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
venkat.p789
Posts: 3
Joined: Thu Jun 25, 2015 12:09 am

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

Post 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.
Attachments
Nagios archive logs
Nagios archive logs
Nagios history log.PNG (8 KiB) Viewed 2513 times
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

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

Post 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`
Locked