Hi Pablo,

 

Yes, it looks as if your Nagios user does not have permissions to write to 
/var/log/nagios2/archives.

 

Do "chown nagios:adm /var/log/nagios2/archives", then when your logs are 
rotated, you should get the old logs moved inside your archives directory, and 
you'll be able to run historical reports.  

 

What you'll probably find is that currently, the reports are only picking up 
the current day's data (as you only have today's log file.)

 

Andy.

 

 

From: Pablo Daniel Estigarribia Davyt [mailto:[EMAIL PROTECTED] 
Sent: Monday, 03 September, 2007 11:15 pm
To: [EMAIL PROTECTED]
Subject: Re: [Nagios-users] Fwd: Problem with availability report

 

Is possible it happens by file system rights ?

XXXXXXXHOST:/etc/nagios2/conf.d# ll /var/log/nagios2/
total 13552
drwxr-xr-x 2 root   root     4096 2007-03-04 20:56 archives
-rw-r--r-- 1 nagios adm  13850632 2007-09-03 19:11 nagios.log

Br,

2007/9/3, Pablo Daniel Estigarribia Davyt <[EMAIL PROTECTED]>:

Hi Andy,
          I opened and it says the current log file is: 
/var/log/nagios2/nagios.log, so I on latest archive and it says the following: 
Error: Could not open log file 
'/var/log/nagios2/archives/nagios-09-03-2007-00.log ' for reading!
          Wen i see inside /var/log/nagios2/archives there are no file inside. 
Do you know how i can fix it?

My /etc/nagios2/nagios.cfg has log_rotation_method=d, but there is only 
/var/log/nagios2/nagios.log on my filesystem. 



Thanks !

2007/9/3, Andy Shellam (Mailing Lists) < <mailto:[EMAIL PROTECTED]>  [EMAIL 
PROTECTED]>:

Hi Pablo,

 

What does the report class the "Indeterminate" data as?  (Insufficient data or 
Nagios not running?)

 

If it says "Insufficient data," I'd hazard a guess that your last month's log 
files aren't where Nagios expects them to be, perhaps they've been archived or 
zipped by a log rotation program, but that's just a guess.

 

If you browse to your "Event Log" in Nagios, near the the top, it should say 
"File:" and the path to a file.  That's the current log file.  Look in that 
file's directory on your system and see if there are any other files with last 
month's dates in.

 

Andy.

 

From: [EMAIL PROTECTED] [mailto: <mailto:[EMAIL PROTECTED]>  [EMAIL PROTECTED] 
On Behalf Of Pablo Daniel Estigarribia Davyt
Sent: Monday, 03 September, 2007 1:52 pm
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Fwd: Problem with availability report

 

I re send it because the confirmation of my register arrives after I sent the 
email

---------- Forwarded message ----------
From: Pablo Daniel Estigarribia Davyt <[EMAIL PROTECTED]>
Date: 03-sep-2007 8:57
Subject: Problem with availability report
To: nagios-users@lists.sourceforge.net 

Hi all,
    I have installed nagios on Debian, I have 2 installation and I have the 
same problem on both: 
*When I try to take a report from the last month every host appears with 
undetermined state to %100, but if I try to take a report of this month 
everything works well. 

Do you know something about this?, I searched on google but I don't know how I 
can fix it.

Br,

-- 
Pablo Estigarribia.
counter.li.org : 392716 

-- 
Pablo Estigarribia.

counter.li.org : 392716 




-- 
Pablo Estigarribia.
counter.li.org : 392716 




-- 
Pablo Estigarribia.
counter.li.org : 392716 !DSPAM:37,46dc875f107508896821081! 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Reply via email to