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_snmp_free_interfaces.pl

Current Version
1.0
Last Release Date
2011-04-08
Compatible With
  • Nagios 3.x
  • Nagios XI
  • Nagios Fusion
License
GPL
Hits
95002
Files:
FileDescription
check_snmp_free_interfaces.plcheck_snmp_free_interfaces.pl
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!
Checks the number of free network interfaces on a IF-MIB compliant network device.

Plugin let us checking the number of interfaces with a DOWN operational or admin status for more than X days.

An example should make this more clear.

check_snmp_free_interfaces.pl -H 192.168.3.13 -C public -d 30

In this case, plugin returns the number of interfaces down for more than 30 days.

Also, plugin can be used in the more verbose extended mode to return the names of free interfaces.

check_snmp_free_interfaces.pl -H 192.168.3.13 -C public -d 30 -e
Reviews (3)
I use this as command:
define command{
command_name check_snmp_free_interfaces
command_line $USER1$/check_snmp_free_interfaces.pl -H $HOSTADDRESS$ -C $ARG1$ -d 20 -e
}
bypacketguy, March 6, 2014
Thanks a lot.


You made my life a lot easyer!!

Small note about the oid: 1.3.6.1.2.1.1.3.0

sysUpTime is a 32-bit counter and will roll over after 496 days.

But you can poll snmpEngineId (.1.3.6.1.6.3.10.2.1.3) which returns the uptime in seconds and should not roll over for 135 years...

Could you implement this? its being described in https://supportforums.cisco.com/thread/153494

Now i sometimes get the following message:
./check_snmp_free_interfaces -H opc00sw1 -C netstat -d 90 -e
Warning - Switch uptime lower than defined delay (Uptime is 83 days)

While infact the uptime on my cisco device is:
OPC00SW1 uptime is 2 years, 49 weeks, 5 days, 4 hours, 16 minutes

thanks again!!
bynishith, July 24, 2012
./check_snmp_free_interfaces.pl -H 10.100.19.250 -C public -d 30 -e

Interface GigabitEthernet0/9 is free for 66 days.
Interface GigabitEthernet0/10 is free for 66 days.
Interface GigabitEthernet0/11 is free for 66 days.
Interface GigabitEthernet0/12 is free for 66 days.
Interface GigabitEthernet0/13 is free for 66 days.
Interface GigabitEthernet0/14 is free for 66 days.
Interface GigabitEthernet0/15 is free for 66 days.
Interface GigabitEthernet0/16 is free for 66 days.
Interface GigabitEthernet0/17 is free for 66 days.
Interface GigabitEthernet0/18 is free for 66 days.
Interface GigabitEthernet0/19 is free for 66 days.
Interface GigabitEthernet0/20 is free for 66 days.
Interface GigabitEthernet0/21 is free for 66 days.
Interface GigabitEthernet0/23 is free for 66 days.
OK - 14 free interfaces on this switch | free_ports=14

Worked Properly in Nagios Core 3x