Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_interface
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
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.
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.
bymarzlarz, July 19, 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?
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.