Dave Shield wrote:
On Wed, 2005-05-04 at 03:01, Alex Burger wrote:

Is it possible to change the order so that snmp.conf is searched first so that persistentDir is correctly set before trying to load the persistent file?


You could try tweaking the "persistentDir" registration so that it uses
netsnmp_ds_register_premib() instead.   I'm not sure whether this is
safe or not, but it's probably worth a try.
   Robert, Wes - any reason why this is a Bad Idea?

Thanks, it works!

The user also noticed that if the SNMPCONFPATH environment variable is defined, that it ignores all other config folders including the persist folder. For example:

read_config: config path used:c:/Program Files/Net-SNMP/etc/snmp

I modified read_config_files so it will prepend SNMPCONFPATH instead of using it as the only directory:

read_config: config path used:c:/Program Files/Net-SNMP/etc/snmp;c:/usr/etc/snmp;c:/usr/share/snmp;c:/usr/lib;c:/Program Files/Net-SNMP/snmp/persist

SNMPCONFPATH has been discussed before so I need to double check the list to see how it is supposed to work but so far this fixes the problem.

Alex


------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to