2009/12/10 Jordi Gutiérrez Hermoso <jord...@gmail.com>

> Forgive me if my question isn't entirely coherent because I am not
> fully understanding what I'm asking.
>
> Right now I have in my snmpd.conf a bunch of extend commands of the form
>
>     extend $oid $name $command --args $oid
>
> where $command is a C program we've written that fetches the value
> associated to $oid.
>
> For performance reasons, we would like to replace this with a
> subagent. As I understand from the wiki, this means I should write a
> MIB module which I can then turn into a subagent with the AgentX
> protocol... however, I'm confused as to how to write the MIB module. I
> already have code that turns the OID into its value; I would like to
> simply extract that code from my tool and integrate it into net-snmp
> instead.
>
> What guidance can you offer me on how to do this?
>

An excellent example of how to extend the Net-SNMP agent can be found on
http://net-snmp.sourceforge.net/tutorial/tutorial-5/toolkit/demon/example-demon.c
.

Bart.
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to