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_oid

Current Version
1.3
Last Release Date
2009-07-09
Compatible With
  • Nagios 3.x
Hits
111438
Files:
FileDescription
check_snmp_oidcheck_snmp_oid
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
The plugin can take value for any snmp oid and status OK, WARNING or CRITICAL if this value exceed specified restrictions. It works with pnp4nagios addon.
Usage: ./check_snmp_oid -H HOSTNAME -o [OPTIONS]

-H, --hostname
Hostname to send SNMP queries to.

-o, --oid
snmp OID to query.

Options:
-h, --help
View help about script usage.

-C, --community
Community name to use in queries. (default: public)

-p, --port
Port number to send SNMP requests to. (default: 161)

-d, --description
Description, will be shown in the output.(default: Result)

-W, --max_warning
Top warning limit, so if the result is greater than max_w, but less than
max_cr then script will return WARNING status.

-M, --max_critical
Top critical limit, so if the result is greater than max_cr then the script
will return CRITICAL status.

-w, --min_warning
Bottom warning limit, so if the result is less than min_w but greater than
min_cr then the script will return WARNING status.

-m, --min_critical
Bottom critical limit, so if the result is less than min_cr then the script
will return CRITICAL status.

Sample:

# ./check_snmp_oid -H 172.16.1.1 -C MyCommunity -o 1.3.6.1.4.1.9.9.13.1.3.1.3.1 -d Temperature -W 20 -M 30
Temperature: 21 | perfdata=21;20;30