Network Connections, Stats and Bandwidth

check_interface

Description:

This plugin will remotely check the network speed of your Linux/Solaris server using SNMP.

Usage: check_interface.pl

-H, –hostname=HOST
name or IP address of host to check
-C, –community=COMMUNITY NAME
community name for the host’s SNMP agent
-n, –nic=NETWORK INTERFACE
name of the network interface to check
-s, –speed=NETWORK SPEED
network speed in Mb

Current Version

0.1

Last Release Date

2012-08-25

Compatible With

  • Nagios 2.x

License

GPL


Project Files
Project Notes
This plugin will remotely check the network speed of your Linux/Solaris server using SNMP. Usage: check_interface.pl <-H hostname> <-n network card> <-s network speed Mb> -H, --hostname=HOST name or IP address of host to check -C, --community=COMMUNITY NAME community name for the host's SNMP agent -n, --nic=NETWORK INTERFACE name of the network interface to check -s, --speed=NETWORK SPEED network speed in Mb
Reviews (3) Add a Review
Does the job
by kevinhe, July 31, 2020

I've asked the owner to modify the regex when searching for interface names. The script at the moment only matches interfaces index numbers 1-9. http://www.net-snmp.org/docs/mibs/interfaces.html shows ifTable indexes can be 1-2147483647. I've requested the regex under line 69: if ( $line =~ m/$OID_networkInterfaces.([0-9]) = STRING: (.*)/ ) to be modified to if ( $line =~ m/$OID_networkInterfaces.([0-9]){1,10} = STRING: (.*)/ ) You can obviously do this yourself with a text editor when importing to nagios.



Great Plugin, but ...
by marzlarz, July 31, 2013

This is a great plugin. It makes monitoring our interfaces very easy. The only issue we are having is that sometimes it responds with: "Cannot identify the eth# network interface" When I snmpwalk the MIBS from the check_interface.pl, I see the interface in question. Any ideas?



Good display of errors, but reporting function does not work
by kotterbein, May 31, 2013

Overall it has good reporting of iferrors, but we are unable to graph the errors accordingly, using the -f function- only reports back 0's, not the actual error counts.



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 (3)
Favorites
0
Views
67,788