This is a multi-part message in MIME format.
------=_NextPart_000_00B0_01C96CEB.AD634BD0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
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.
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
-------------------------------------------------------------------------
------=_NextPart_000_00B0_01C96CEB.AD634BD0
Content-Type: application/octet-stream;
name="rrdtraf-v0-1.tar.gz"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="rrdtraf-v0-1.tar.gz"
H4sIAOU2XkkAA+0aa3PaSNJf4Ve0CRdDipcA24mz3hQhPh8XG7IYr68qSVGDGIF2hcRKwpDa3H+/
7pmRkBDG3qyT1N6qy0YazUx3T79bUKm67th3mVG+rVW06t7XgBrC8eGhuCJsXsW9pmn142ajUT/C
dVq91mzsweFX4WYDFp7PXIA913H8Xevum/+LQiWuf33K9V+H0UeV+XT+J2kI/Tfv0r9Wrx81Av3X
mk0N9X9UaxztQe1RTngP/M31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FNpJCpuHad9J4Y7T5CkjGqYuo8FQjQqhPqMhMmHVxEssBMlJNS4E
uN/XPt4TLH8dzb1ijPGHoNUeiHYn85EwKWeDBxvsx+N5TLAJzh+AU7sfZ5DihI9ivKZqCgsJLLUc
zOdxrUTEFcYN3KqKiNDP1Thw7QSOkPEokqD4CLEED7ajiVQiIZbNMLOxbx3XoQz4QXoDFeRVInxP
KFBmrrOwxwWhWSqt4ln09PSUYuCrXKcLStC5k1zvehCOlKrwVOPFbD6kWnLGsTjwCoHAowEQg19Y
FWy3QWVyEeuTpvdU2p4qIsSAHDVwtmfwHKqgYX8VcS+kuXBtGHF/ybkdnHEb/q2sJWxMWVTEuMTe
x+BpG17B05qpcAs5olwaoS4sZQU/noo5kR5X8MOpWEOeqejKlLp2LvVY1TNRGWwPXsFZ9dmYqtSw
maJOwHEsMLDtmMIBVCLVbAXHLSwtWudnUHahUatBGe1SXLm4HoCqsqg5IRny1dxyxryQExbrYc1k
DfmKIydIuAjK6CzTQ8vyzRmVjkIgmOiLke2QAzJ4gfV9/SOsjTVwEBjg7hPhGlgIqBusAE5Cb9lE
/zKqRlnTRSejIkx4xOOWwLHw9jLm9z9LzPIU/f4b+CciX58pSbgY33+DZOHSVAKRI7ZaI7iTyQ08
beRwjUeOonh2x+uoLFXNqyQY4B9MTQzj1mKCJr80LUuVcP6UA/YrDmKdVFEvE4fiOFqz7RlYrrnM
RytzDGxxMPr52C3L4i2K2VuaaMmijUZl64
...[email truncated]...
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]