Re: [Nagios-devel] New plugin for checking Cacti (rrd

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] New plugin for checking Cacti (rrd

Post by Guest »

I don't understand. What I do is to check the data already collected by
Cacti and based on that info generate a warning or a critical status.
Cacti's RRDs are the data in which I base the decisions about network
traffic.

Thanks after all. I will try to see more the link you attach to the =
mail.

-----Mensaje original-----
De: Yann JOUANIN [mailto:[email protected]]=20
Enviado el: S=E1bado, 03 de Enero de 2009 07:12 p.m.
Para: [email protected]
Asunto: RE: [Nagios-devel] New plugin for checking Cacti (rrd databases)
transfer rates

Hello,

Please note that Cacti isn't the best tool to use with Nagios, look =
around
PNP ( www.pnp4nagios.org ) which is a perfdata handler.

Hasta luego

Yann Jouanin
http://www.yannj.fr

-----Message d'origine-----
De=A0: Paa.listas [mailto:[email protected]]=20
Envoy=E9=A0: vendredi 2 janvier 2009 18:06
=C0=A0: [email protected]
Objet=A0: [Nagios-devel] New plugin for checking Cacti (rrd databases)
transfer rates

Hello,

Because of my work I had to write a little PHP script to integrate
with Nagios. It works checking local RRD databases (Nagios and Cacti on =
same
computer for example) for incoming or outgoing transfer rates.=20

I think that this script can be useful to others, so I want to known if =
it
can be enhanced / corrected to be included in a future release.

The script, a configuration command file definition, and a demo host are
attached to this e-mail.

Saludos. Pablo.

Pd> Sorry for my bad English.

Pd2>
---------------------- help output ------------------------------------
$ check_rrdtraf.php -h
This plugin will check the incoming/outgoing transfer rates of a router,
switch, etc recorded in an Cacti rrd database By Pablo Armando (c) 2009

Usage:
check_rrdtraf [-h] -f rrd_file -I|-O -w min_warning -W =
max_warning
-c min_critial -C max_critical

Example:
check_rrdtraf -f /var/lib/cacti/rra/mx_1_traffic_in_239.rrd -w =
1000
-W 2000 -c 4000 -C 4500 -I

This checks if the input traffic (-I) is between 1000 and 2000kbps.
If this is true a warning message will be fired. If the input traffic is
between 4000 and 4500kbps then a critic message will be fired

-h Show this help
-f full path to rrd database
-I check input traffic from incoming data source
-O check output trafic from outgoing data source
-w start of warning range - Required
-W end of warning range - Required
-c start of critic range - Required
-C end of critic range - Required

The values for -w, -W, -c, and -C are expresed in kbps

-------------------------------------------------------------------------=







This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked