check_iftraffic64

Bookmark and Share

Rating
4 votes
Favoured:
1
Current Version
.6
Last Release Date
2012-10-19
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios XI
E-mail
License
GPL
Hits
16046
Files:
FileDescription
check_iftraffic64.plcheck_iftraffic64.pl
Bug and feature update to check_iftraffic3. This is a 64 (and 32) bit Nagvis compatible SNMP iftraffic check. Renamed to highlight the change from 32 to 64 bit as the default counters used. Tested with Windows 2003/08, Linux (RedHat), and Cisco devices.
Check_iftraffic64 is an updated version of (check_iftraffic3) and has been changed to use 64 bit SNMP counters but can still handle 32 bit. Some math issues found in check_iftraffic3 were resolved as well.

Version .6:
I've removed text from the output that was not necessary. Thanks Nicholas Coulin for pointing it out.


Version .5:
Significant features in this check include the following:

1. Capable of handling 32 and 64 (default) bit SNMP counters
2. Auto detects max bandwidth (unless specified)
3. Supports asymetric links, i.e. Ability to specify different BW limits (in and out) other than what is automatically detected. Good for Internet connections that have different up and down speeds
4. NagVis weathermap line compatible perfdata output
5. Returns CRITICAL status when the interface is down.


examples:

# Simple 64 bit check of interface used as the primary host interface (based on IP address of host1)
check_iftraffic64.pl -H host1 -C sneaky

# 32 bit mode check of interface index 5 in bits/s with 100m bandwidth limit
check_iftraffic64.pl -H host1 -C sneaky -i 5 -B -b 100 -u m --32bit

# Check of interface using address 192.168.1.1 in bits/s running 50m down (in) and 10m up (out)
check_iftraffic64.pl -H host1 -C sneaky -A 192.168.1.1 -B -I 50 -O 10 -u m
Reviews (4)
by_bk201, November 1, 2012
2 of 2 people found this review helpful
Awesome plugin, thanks!

Also if you are having issues with "error code 13 out of bounds" you probably tested it with root user on command line first, which creates a 'traffic' folder in the 'libexec' folder with root ownership, change owner and or group to your nagios user to fix this.
It works excellent on Cisco switches, but it doesn't work on Brocade switches. Any plans to support Brocade SAN switches?

Regards
Domen
Plugin some time return error
"Illegal division by zero at ./check_iftraffic64.pl line 427" when runing in console
"Return code of 25 is out of bounds" when used in nagios
bymeilon, October 21, 2012
It's good, but the SNMPv3 support should be added soon
Owner's reply

I agree that SNMPv3 should be added to make the check more complete. Currently this is not a requirement by my employer, until that changes I won't have any cycles to offer in that regard. If you want to add that functionality, I would upload it here.

Regards,

-greg