Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_interface

Rating
3 votes
Favoured:
0
Current Version
0.1
Last Release Date
2012-08-25
Compatible With
  • Nagios 2.x
License
GPL
Hits
67948
Files:
FileDescription
check_interface.plCheck network interface
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!
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
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)
bykevinhe, July 15, 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.
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?
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.