On Wed, 2006-01-25 at 14:58 +0530, Ravi Kumar wrote:
> I ... observed that snmpd.conf is overwritten and i am not able to
> read the contents in it. When i stop the netsnmp agent and replace the
> snmpd.conf file again it gets overwritten.

Which particular file are you talking about?
There are typically at least two different 'snmpd.conf' files - one
intended for your configuration settings, and one intended for
persistent information.  This second one will indeed be overwritten
at regular intervals.

> #
> # net-snmp (or ucd-snmp) persistent data file.
> #
> ############################################################################
> # STOP STOP STOP STOP STOP STOP STOP STOP STOP
> #
> #          **** DO NOT EDIT THIS FILE **** 
> #
> # STOP STOP STOP STOP STOP STOP STOP STOP STOP
> ############################################################################
> #
> # DO NOT STORE CONFIGURATION ENTRIES HERE.


That would seem to indicate that you are looking at the persistent
configuration file (typically /var/net-snmp/snmpd.conf).   You
should not be editting this file directly - hence the warnings shown.


You probably ought to be editing /etc/snmp/snmpd.conf (e.g. if
using a pre-compiled version), or /usr/local/etc/snmp/snmpd.conf
(if compiled from source, using the default settings).

If that doesn't work, run

     snmpd -f -Le -Dread-config

and look to see which config files the agent is trying to load.

Dave


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to