Using the Trending Graph
Alejandro Imass
ait at p2ee.org
Mon Jan 22 17:17:49 CET 2007
Hi, new to Nagios so please bear with me.
I queried the list archives and there were some similar threads but
several with no answers so I hope I have better luck.
Nagios Version: 2.5, from distro binary distribution
Platform: Debian Linux Sarge 3.1r4 Stable
Problem:
- If I run the graph with First assumed host state: Unspecified I get
100% Indeterminate
- If I run the graph with First assumed host state: Host Up I get 100%
Up
- If I run the graph with First assumed host state: Host Down I get 100%
Down
- If I run the graph with First assumed host state: Unreachable I get
100% Unreachable
etc..
Obviously something is not working properly. I want a trend of the
different states in time so I can give my ISP some info on where the
problem is and see if we can discount their failures from our bill ;-]
Important note and possible lead to the root cause:
I used the default logging options in my config:
log_file=/var/log/nagios2/nagios.log
log_rotation_method=d
log_archive_path=/var/log/nagios2/archives
Nevertheless, this configuration did NOT store the archives in archives
directory as expected so I changed to:
log_archive_path=/var/log/nagios2/
This did NOT work either because the nagios web interface was expecting
log names like:
nagios-01-19-2007-00.log
instead of the ones nagios has been generating which are of the form:
nagios.log.X.gz
I decompressed all the gz files and create soft links so the web
interface could display past notifications:
poseidon:/var/log/nagios2# ls -l
total 140
lrwxrwxrwx 1 root adm 12 2007-01-22 09:54 nagios-01-19-2007-00.log
-> nagios.log.4
lrwxrwxrwx 1 root adm 12 2007-01-22 09:53 nagios-01-20-2007-00.log
-> nagios.log.3
lrwxrwxrwx 1 root adm 12 2007-01-22 09:52 nagios-01-21-2007-00.log
-> nagios.log.2
lrwxrwxrwx 1 root adm 12 2007-01-22 09:50 nagios-01-22-2007-00.log
-> nagios.log.1
-rw-r--r-- 1 nagios adm 9265 2007-01-22 11:17 nagios.log
-rw-r--r-- 1 nagios adm 52767 2007-01-22 06:25 nagios.log.1
-rw-r--r-- 1 nagios adm 45689 2007-01-22 06:25 nagios.log.2
-rw-r--r-- 1 nagios adm 10469 2007-01-21 06:25 nagios.log.3
-rw-r--r-- 1 nagios adm 10419 2007-01-20 06:25 nagios.log.4
It is my guess that my log problem is related to the trending problem
given some of the threads that I read on the user's mailing list
archives.
Any help greatly appreciated. Perhaps there is some extended
documentation on the trending interface and on the log file
configuration from that included in the package install?
Thanks,
Alejandro Imass
Caracas, Venezuela
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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