[Nagiosplug-devel] [ nagiosplug-Bugs-1106430 ] Patch for check_snmp.c to use snmpgetnext

SourceForge.net noreply at sourceforge.net
Thu Jan 20 17:44:02 CET 2005


Bugs item #1106430, was opened at 2005-01-20 17:41
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1106430&group_id=29880

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: W Sanders (wsanders1)
Assigned to: Nobody/Anonymous (nobody)
Summary: Patch for check_snmp.c to use snmpgetnext

Initial Comment:
An occasion arose to make check_snmp use snmpgetnext
instead of snmpget as its command to execute. (More
info on this:
http://e-docs.bea.com/wls/docs81/snmpman/snmpagent.html#Managed_Resources_and_MBeans
 see "Object Identifiers")

Basically we can get an object in Weblogic (and maybe
some other MIBs) by doing an snmpgetnext on a much
shorter OID than an snmpget requires. Example - amount
off free space on JVM heap is
enterprises.140.625.340.1.25 via snmpgetnext or
snmpwalk but snmpget requires 
enterprises.140.625.340.1.25.32.100.102.55.101.56.52.101.53.51.99.55.100.99.55.54.48.49.48.101.97.50.101.97.97.49.56.57.50.100.52.57.53

Don't ask me why - I'm no SNMP expert and I wouldn't
admit to being one if I were!

Anyway here are the diffs attached. Conveniently, a
PATH_TP_SNMPGETNEXT macro is defined and set up in
configure and in the resulting .h files.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1106430&group_id=29880




More information about the Devel mailing list