Error: Cannot open log file '/usr/local/nagios/var/archives/

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
hhm
Posts: 4
Joined: Thu May 22, 2014 10:59 am

Error: Cannot open log file '/usr/local/nagios/var/archives/

Post by hhm »

I get this error on nagios web interface

Error: Cannot open log file '/usr/local/nagios/var/archives/nagios-09-19-2014-00.log' for reading!
Error: Cannot open log file '/usr/local/nagios/var/archives/nagios-09-20-2014-00.log' for reading!
I find that get this Error because time is mismatch but in my case time is mactch, any help please?
:/usr/local/nagios/etc/objects$ cd /
:/$ cd /usr/local/nagios/var/archives
:/usr/local/nagios/var/archives$ ls -al
total 88
drwxrwxr-x 2 nagios nagios 4096 Sep 17 23:59 .
drwxrwxr-x 5 nagios nagios 4096 Sep 20 10:56 ..
-rw-r--r-- 1 nagios nagios 4549 Aug 23 00:01 nagios-08-23-2014-00.log
-rw-r--r-- 1 nagios nagios 15821 Sep 1 00:08 nagios-09-01-2014-00.log
-rw-r--r-- 1 nagios nagios 3822 Sep 3 00:59 nagios-09-03-2014-00.log
-rw-r--r-- 1 nagios nagios 2681 Sep 4 01:02 nagios-09-04-2014-00.log
-rw-r--r-- 1 nagios nagios 11111 Sep 9 23:34 nagios-09-09-2014-00.log
-rw-r--r-- 1 nagios nagios 6301 Sep 11 00:08 nagios-09-11-2014-00.log
-rw-r--r-- 1 nagios nagios 3266 Sep 12 01:00 nagios-09-12-2014-00.log
-rw-r--r-- 1 nagios nagios 4681 Sep 13 01:24 nagios-09-13-2014-00.log
-rw-r--r-- 1 nagios nagios 12359 Sep 18 00:24 nagios-09-18-2014-00.log
here output of pre-flight check:
Nagios Core 4.0.6
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 04-29-2014
License: GPL

Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
Checked 10 services.
Checked 2 hosts.
Checked 1 host groups.
Checked 0 service groups.
Checked 1 contacts.
Checked 1 contact groups.
Checked 24 commands.
Checked 5 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 2 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 5 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check

any help??
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Error: Cannot open log file '/usr/local/nagios/var/archi

Post by abrist »

It looks like you are missing some log files. They should be rotated daily. What is your chosen rotation method:

Code: Select all

grep rotat /usr/local/nagios/etc/nagios.cfg
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.
Locked