Re: snmpd.conf is rewrited by snmpd daemon?

Thomas Anders <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
nsinit wrote:
> 	prefix: /usr/local/net-snmp/
> 
> 	conf: /usr/local/net-snmp/etc/snmp
> 
> 	snmd.conf:
> com2sec local localhost public
> 
> group me v2c    local
> group me v1     local
> 
> view all    included  .1                               80
> 
> #              context sec.model sec.level prefix read   write notify
> access me       ""      any       noauth    exact  all   none  none
> 
> 
> 	run the daemon:
> 		./snmpd -Dread_config
> 
> but the snmpd.conf is rewritted by the daemon, as the following:
> engineBoots 1
> oldEngineID 0x800007e580e71ec51d25d13544
[...]
> what happend to the daemon, why rewrite the snmpd.conf? thx.

The agent only rewrites the *persistent* config file (in the directory 
that "net-snmp-config --persistent-directory" tells you, usually 
/var/net-snmp), not the normal snmpd.conf from 
/usr/local/net-snmp/etc/snmp/snmpd.conf. If the agent really overwrites 
/usr/local/net-snmp/etc/snmp/snmpd.conf, you must have messed with the 
compile-time paths, unapproppriate symlinks, the "persistentDir" config 
directive or SNMP_PERSISTENT_DIR/SNMP_PERSISTENT_FILE environment variables.

If you can't figure it out on your own, post the following output here:

   net-snmp-config --version
   net-snmp-config --persistent-directory
   net-snmp-config --snmpconfpath
   snmpd -Dread_config


+Thomas

-- 
Thomas Anders (thomas.anders at blue-cable.de)


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.