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


Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
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.
Helpful? Yes  No 
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?
Helpful? Yes  No 
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.
Helpful? Yes  No 
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,761