Check old data from logs
Carroll, Jim P [Contractor]
jcarro10 at sprintspectrum.com
Wed Feb 19 16:38:24 CET 2003
Good point, I'd neglected to suggest the following (which I've yet to dabble
in myself):
- configure nagios to use serviceperf.log:
- in nagios.cfg, add this:
xpdfile_service_perfdata_file=/usr/local/nagios/var/serviceperf.log
- rebuild nagios binaries, thus:
./configure --with-file-perfdata
make
- install MySQL
- write a Perl script (and implement it with cron) to slurp serviceperf.log,
parse the rows you're interested in, and stuff them into a MySQL table
- install PHP if you haven't already
- install JpGraph
- write some PHP code to:
- slurp relevant rows from MySQL
- dynamically create graphs using JpGraph
Food for thought.
jc
-----Original Message-----
From: Marc Powell [mailto:mpowell at ena.com]
Sent: Tuesday, February 18, 2003 5:50 PM
To: Tong at keen.com; nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] Check old data from logs
Nagios does not store each check natively. There are several options
however:
1) Apan might work for you.
2) write an OCSP command that store the data how you want it.
3) use a postgres backend and have a trigger copy the data to a
service-history type of table on insert or update from nagios.
I'm sure there are other options. We use the third and its been very
effective.
--
Marc
Sent from a very tiny wireless device with a very tiny unlit keyboard.
-----Original Message-----
From: Tong Young <Tong at keen.com>
To: nagios-users at lists.sourceforge.net <nagios-users at lists.sourceforge.net>
Sent: Tue Feb 18 17:27:39 2003
Subject: [Nagios-users] Check old data from logs
Is there a way for me to see what the previous check values were for a
service check?
So I have a service check of my memory usage every 15 minutes. Say I
want to look back at the last 24 hours and see the value of all the
checks every 15 minutes.
If I look at "Availability Report" it will say like 2HRS OK then 4HRS OK
and give me the initial value but not the values during those 2 hours or
4 hours.
If I look at notification alerts, it will only give me the values that
were emailed to me on change of status. I do not want to add more
emails to myself and have nagios email me every 15 minutes if the
service is OK.
Is there another way to do what I want?
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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
-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
_______________________________________________
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