Dear net-snmp users,

I am currently trying to develop an AgentX-based subagent for snmpd 
(using C as programming language).

In my subagent, I would like to dynamically register and unregister 
handlers for specific OIDs. The registration part can be achieved via 
the "netsnmp_register_instance" family of functions. To be more 
specific, I am currently relying exclusively on the 
"netsnmp_register_long_instance" function, as all the metrics that I 
would like to expose via the subagent have an integer value. So far so 
good. The problem however lies in the unregistration portion of my 
efforts. Are there ways to unregister an OID handler via the net-snmp 
API (so that, after unregistration, subsequent SNMPGETs of the OID in 
question will yield a "no such variable in this MIB" response)? I have 
tried invoking the "unregister_mib" function, yet doing so results in 
undefined behavior and subagent crashes upon subsequent incoming SNMPGET 
requests. These issue can likely be attributed to memory management issues.

Does anyone have any experience with unregistering OID handlers from an 
AgentX-based subagent implementation?

Many thanks in advance!

Best regards,
Maarten Wijnants

-- 

dr. Maarten Wijnants
Expertise centre for Digital Media (EDM) - Hasselt University
Wetenschapspark 2 - B3590 Diepenbeek
Tel: +32 (0)11 268411 - Mobile: +32 (0)497 341848
Fax: +32 (0)11 268499
E-mail: maarten.wijna...@uhasselt.be
Web: http://research.edm.uhasselt.be/~mwijnants/


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to