Home Directory Plugins Network Protocols SNMP check_snmp_int_by_addr

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_int_by_addr

Rating
0 votes
Favoured:
0
Hits
147889
Files:
FileDescription
SQL-Structure-for_check_snmp_by_int.sqlMySQL Structure for Caching Tables
check_snmp_int_by_addr.plThe Perlscript
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 SNMP Operating Status of Interfaces given by the IP Address of the Subinterface. Developed to check for example Cisco Router with many Subinterfaces which possibly might reorganize the SNMP Interface IDs. MySQL Caching included.
This little Perl Plugin, feeded with a hostaddress, snmp community, Sub-Interface IP and the expected return Value, looks into a MySQL DB via Perl::DBI, searching for a caching entry and the stored SNMP Interface ID. After cache lookup it connects via snmpget to the host, asks for the SNMP ID for that SubIF IP Address and the OperStatus.
If the DB stored SNMP ID is different from the real SNMP ID it exits with a Warning and update the MySQL DB with the right SNMP ID.

The Last Argument is the expected value: 1 = OperStatus up 2 = Operstatus down.

Adminstrators with MEP will love the expect, cause the can say that it is Nagios-ok that an Interface is SNMP-DOWN.

Testet with:
UCD-snmp version: 4.2.3
NET-SNMP version: 5.1