Hi Tim That's a restriction of your own making
Your application can certainly read a three-line text file for its parameters, and that need not be the same file as snmpd.conf at all feasghar math Tim Am 17.02.2015 um 15:24 schrieb Tim Culhane: > Hi Tim, > > It is compiled as a shared object which is dynamically loaded in to the > snmpd agent using the dlmod snmpd conf directive. > > So, it can't read in arguments of its own. > > Tim > > > -----Original Message----- > From: Tim Cox [mailto:timmiles...@gmx.ch] > Sent: 17 February 2015 14:04 > To: Tim Culhane > Cc: net-snmp-coders@lists.sourceforge.net > Subject: Re: getting shared objects to read configuration in snmpd.conf > > > Tim > > Why can't your application read a config file of its own? > > Or look at its command line arguments? > > Best Regards > > Tim > > > Am 17.02.2015 um 13:20 schrieb Tim Culhane: > >> 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