Nagios-1.2 - Trending Issue

Tom Brown tom.brown at goodtechnology.com
Tue May 31 12:40:50 CEST 2005


> 
>> From nagios.cfg --
>>
>> # This is where the current status of all monitored services and
>> # hosts is stored.  Its contents are read and processed by the CGIs.
>> # The contentsof the status file are deleted every time Nagios
>> #  restarts.
>>
>> status_file=/usr/local/nagios/var/status.log 
> 
> 
> mine is...
> 
> log_file=/opt/nagios/var/nagios.log
> 
> $ pwd
> /opt/nagios/var
> 
> $ ls -l
> total 76
> drwxrwxr-x    2 nagios   nagios       4096 May 27 00:00 archives
> -rw-rw-r--    1 nagios   nagios          0 May 26 16:11 comment.log
> -rw-rw-r--    1 nagios   nagios          0 May 26 16:11 downtime.log
> -rw-r--r--    1 root     root            6 May 26 12:37 nagios.lock
> -rw-rw-r--    1 nagios   nagios      35010 May 27 16:50 nagios.log
> drwxrwsr-x    2 nagios   nagios       4096 May 26 12:37 rw
> -rw-rw-r--    1 nagios   nagios      25660 May 27 16:11 status.sav
> 
> ]$ ls -l archives/
> total 608
>  -- snip --
> -rw-rw-r--    1 nagios   nagios      34690 May 22 23:59 
> nagios-05-23-2005-00.log
> -rw-rw-r--    1 nagios   nagios      34823 May 23 23:59 
> nagios-05-24-2005-00.log
> -rw-rw-r--    1 nagios   nagios      34711 May 24 23:59 
> nagios-05-25-2005-00.log
> -rw-rw-r--    1 nagios   nagios      34942 May 25 23:59 
> nagios-05-26-2005-00.log
> -rw-rw-r--    1 nagios   nagios      34955 May 26 23:59 
> nagios-05-27-2005-00.log
> 
> -- etc --
> 
>> Historical data is read from var/nagios.log and var/archives/*. Can your
>> web server user read those files? I've never had a problem with
>> availability reports in the 3 or 4 years I've been using netsaint/nagios
>> leading me to still believe that there is something specifically wrong
>> with your installation or configuration.
>>
>> The cgi's read nagios.cfg to determine where those files are located
>> (log_file and log_archive_path) so they'll use the same location as the
>> nagios daemon.
> 
> 
> ]$ cat /etc/group | grep nagios
> nagios:x:503:web
> 
> ]$ ps auxwww | grep httpd
> root     23565  0.0  0.1 10960 1104 ?        S    May15   0:52 
> /opt/apache-2.0.54/bin/httpd -k start -DSSL
> web      13593  0.0  0.8 16504 8204 ?        S    May23   0:22 
> /opt/apache-2.0.54/bin/httpd -k start -DSSL
> web      20681  0.0  0.7 15272 8188 ?        S    May26   0:09 
> /opt/apache-2.0.54/bin/httpd -k start -DSSL
> 
> so yes i believe that the webserver can read those files - Other things 
> like adding comments etc works fine.
> 
> thanks for your input so far
> 

no clues?

OK can anyone post a ./configure for nagios 1.2 with a working trending 
setup using files rather than a db?

thanks


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Nagios-users mailing list
Nagios-users at 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





More information about the Users mailing list