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

SourceForge.net noreply at sourceforge.net
Wed May 25 08:42:03 CEST 2005


Patches item #1106430, was opened at 2005-01-20 20:41
Message generated for change (Comment added) made by sghosh
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1106430&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Pending
Resolution: None
Priority: 5
Submitted By: W Sanders (wsanders1)
>Assigned to: Subhendu Ghosh (sghosh)
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.

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

>Comment By: Subhendu Ghosh (sghosh)
Date: 2005-05-25 11:40

Message:
Logged In: YES 
user_id=46572

CVS updated to support snmp-getnext

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

Comment By: Ton Voon (tonvoon)
Date: 2005-02-03 19:07

Message:
Logged In: YES 
user_id=664364

Moving to patches because it looks like an enhancement rather than a 
bug.

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

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




More information about the Devel mailing list