check_mrtgtraf
Posted by tonvoon on 2 September 2010 - 12:51pm
check_mrtgtraf v1.4.15-2-gbfe2 (nagios-plugins 1.4.15)
Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>
Copyright (c) 1999-2007 Nagios Plugin Development Team
<nagiosplug-devel@lists.sourceforge.net>
This plugin will check the incoming/outgoing transfer rates of a router,
switch, etc recorded in an MRTG log. If the newest log entry is older
than <expire_minutes>, a WARNING status is returned. If either the
incoming or outgoing rates exceed the <icl> or <ocl> thresholds (in
Bytes/sec), a CRITICAL status results. If either of the rates exceed
the <iwl> or <owl> thresholds (in Bytes/sec), a WARNING status results.
Usage check_mrtgtraf -F <log_file> -a <AVG | MAX> -w <warning_pair>
-c <critical_pair> [-e expire_minutes]
Options:
-h, --help
Print detailed help screen
-V, --version
Print version information
-F, --filename=STRING
File to read log from
-e, --expires=INTEGER
Minutes after which log expires
-a, --aggregation=(AVG|MAX)
Test average or maximum
-w, --warning
Warning threshold pair <incoming>,<outgoing>
-c, --critical
Critical threshold pair <incoming>,<outgoing>
Notes:
- MRTG stands for Multi Router Traffic Grapher. It can be downloaded from
http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/mrtg.html
- While MRTG can monitor things other than traffic rates, this
plugin probably won't work with much else without modification.
- The calculated i/o rates are a little off from what MRTG actually
reports. I'm not sure why this is right now, but will look into it
for future enhancements of this plugin.
Send email to nagios-users@lists.sourceforge.net if you have questions
regarding use of this software. To submit patches or suggest improvements,
send email to nagiosplug-devel@lists.sourceforge.net
- Printer-friendly version
- Login or register to post comments
Hello
Is there any way to check if the traffic on the interface which is monitored by the MRTG is between two values?
For example: there is a backup VpN tunnel with 104 bits/sec traffic -is the connection is OK and the first channel is working. I would like to monitor the VPN tunnel with nagios:
warn level: the bandwith is below 90 bits/sec ~ 11Bytes/sec
crit. level: the bandwith is abowe 150 bits/sec ~ 18Bytes/sec
If I declare the warn level and the critical level like: -w "11:,11:" -c "18,18"
it sould be OK but the result:
Traffic WARNING - Avg. In = 13.0 B/s, Avg. Out = 13.0 B/s|in=13.000000B/s;11.000000;18.000000;0.000000 in=13.000000B/s;;18.000000;0.000000
I hope there is any way to make it work.
Thanks