SNMP

SNMP Interface

Description:

Checks by snmp (v1,v2c or v3) host interface state, bandwidth in use, errors and discards. Interfaces can be selected by regexp ( ‘eth’ will check eth0, eth1, eth2, …).

Current Version

Last Release Date

June 23, 2009

Compatible With


Project Notes
Standard checks The script will check interface operationnal (or administrative) status using the MIB-II table. Full snmp v1, v2c and v3 support (AuthNoPriv, AuthPriv). The interfaces are selected by their description in the MIB-II table. Regular expressions can be used (eth will match eth0, eth1, eth2...). The script will return OK if ALL interfaces selected are UP, or CRITICAL if at least one interface is down. Script can return a OK value when all interfaces are down (and CRITICAL when at least one is up) with the -i option. It is also possible to check the interface bandwidth (in / out in K|M|GB/s or K|M|Gb/s). You can use high performance MIB for high speed interface (>1Gbps) Performance output : - In/out octet (as a counter) or speed. - In/out errors and discarded packets. More descriptions and downloads : http://nagios.manubulon.com/snmp_int.html
Reviews (4) Add a Review
Fortigate ifName hack
by agentdavidson, January 31, 2022

I've been using the script for many years across various networking devices successfully. However I tried it against a new Foritgate 100F Firewall (FortiOS 6.4.7) and it wouldn't find any of the interfaces by name. It would just return: ERROR : Unknown interface snmpwalk revelled that the interface names were under ifName OID 1.3.6.1.2.1.31.1.1.1.1 rather than ifDescr OID 1.3.6.1.2.1.2.2.1.2 So I made a copy of the script and changed the $descr_table variable to this: my $descr_table = '1.3.6.1.2.1.31.1.1.1.1'; And bingo. Now it's working with this Fortigate.



Perfect to check interface in virtual machine
by Olga, February 28, 2017

After I tried several plugins I was unable to check network interfaz status in Linux Centos 7 virtual box machine. With this plugin I get it in 5 minutes. Thank you !



Great plugin
by risker, September 30, 2015

Great Plugin if configured correctly. More samples are available on the maintainers homepage



Issues with script
by _bk201, January 31, 2013

If i run "./check_snmp_int.pl -H 10.1.1.1 -C banana -n outside" I get back: Adaptive Security Appliance 'outside' interface:UP:1 UP: OK If i run "./check_snmp_int.pl -H 10.1.254.1 -C public -n outside -k" i get error: "Use of uninitialized value $o_warn_opt in split at ./check_snmp_int.pl line 330. 2 warning levels for bandwidth checks " Any ideas? running debian6 with Perl 5.10.1



Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
4.6 (5)
Favorites
0
Views
172,871