Full data logging?

Thomas Guyot-Sionnest dermoth at aei.ca
Sun Oct 5 00:33:17 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 04/10/08 01:26 PM, howard chen wrote:
> Hello,
> 
> On Sat, Oct 4, 2008 at 11:41 PM, Thomas Guyot-Sionnest <dermoth at aei.ca> wrote:
>> No, you need another system for using that data. Usually it is passed to
>> one of the many RRD-based graphing system available. Some of them are
>> based on Nagios (NagiosGrapher, PNP) or you can usually integrate it
>> with other tools like Cacti with some additional work. My method was to
>> use a daemon reading the performance data pipe and caching data for a
>> sort period, and a cacti script to read it back. see:
>> http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2520.html;d=1
>>
> 
> Thanks for your reply.
> 
> Sure I can use system such as ganglia to do the logging and generate
> the nice graphs. The reason I don't like is since I am using nagios
> for monitoring anyway, I don't want to install another program on my
> production server which monitor the same set or data, which cost
> additional cpu cycles, I/O etc.
> 
> So I am finding some more efficient, and easy to setup method to do the tasks.

I'm not telling you to poll the same data twice, Nagios provides
performance data for compatible plugins that can be passed to a graphing
system. Since Nagios doesn't keep this data the additional cpu cycles,
as you say, are necessary... BTW I don't think Ganglia is very well
suitable, it's designed to spread across all hosts while in this case
all data is already available by Nagios.

If you want something simple and efficient a Nagios-based grapher is
probably what you'll want. If all you care about is the historical data,
you could also write a daemon to insert all that perf data into a
database... but RRD databases are very fast and will likely scale better
than a database.

FYI the most efficient way to get perfdata is to point the
host_perfdata_file and/or service_perfdata_file to a named pipe (fifo)
and have a daemon continuously read from it. Nagios 3 even allow a
(p)ipe mode for host/service_perfdata_file_mode that will avoid possible
lockups when using a fifo as a normal file.

- --
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI5+8s6dZ+Kt5BchYRApekAKCuQABYsLGRmVoIiDorUI0WCMWUawCffSsO
6zVR+coVn6fPPWINHaShlmI=
=vRb+
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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