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

bulk SNMP check

Rating
1 vote
Favoured:
0
Hits
158057
Files:
FileDescription
snmp-bulk-check.plsnmp-bulk-check.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!
perl wrapper around snmpwalk to check a bunch of OIDs in bulk
Check all OIDs specified in the command line and all objects underneath

Anything other than zero under .101.x is considered an error

usage: $0 options host oid1 ,oid2 ...

usage: ./snmp-bulk-check.pl hostname .1.3.6.1.4.1.2021.8.1 .1.3.6.1.4.1.2021.2.1 .1.3.6.1.4.1.2021.10 .1.3.6.1.4.1.2021.9


Options:

--help this help

--debug be verbose

--snmpver=s SNMP version (default: $snmpver)
--user=s SNMP user (default: $user)
--community=s SNMP comimunity (default: $community)
--silent do not print anything unless errors

Interesting OIDs:

.1.3.6.1.4.1.2021.2.1 = processes
.1.3.6.1.4.1.2021.10 = load average
.1.3.6.1.4.1.2021.9 = disk usage
.1.3.6.1.4.1.2021.8.1 = custom scripts