Tim,
Since the configuration file is read and processed line-by-line, you should
be able to use, e.g., netsnmp_ds_register_config(),
register_config_handler(), or other config file primitives in your
module_init() function, and they will take affect for lines after the dlmod
configuration line.
Bill
On Tue, Feb 17, 2015 at 7:20 AM, Tim Culhane <tim.j.culh...@gmail.com>
wrote:
> Hi,
>
> Apologies for cross posting:
>
> I'm writing a c shared object which will connect to a proprietary server
> via
> telnet and read back performance and status counters.
>
> I don't want to hardcode the connection details such as IP address, port
> number and password for the proprietary server into my shared object.
>
> What I would like to do is have the shared object read the information from
> the snmpd.conf file or similar location.
>
> Is it possible to add custom settings to the snmpd.conf file which can then
> be read by a shared object?
>
> Are there help functions in the snmpd library for doing this in an
> efficient
> way?
>
> Thanks,
>
> Tim
>
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
>
> http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
> _______________________________________________
> Net-snmp-coders mailing list
> Net-snmp-coders@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
>
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders