Where should I put snmpd.conf?
Werner Schram
wrschram at gmail.com
Mon Dec 7 09:45:05 UTC 2009
Anthony M. Rasat wrote:
> I have a Ubuntu 9.04 server (AMD64) and a Debian Etch AMD64.
>
> When I tried to reconfigure /etc/snmp/snmpd.conf then reload by command "/etc/init.d/snmpd reload" apparently changes did not take place. Confused, I tried "/etc/init.d/snmpd restart". Also did not work. But when I tried "/usr/bin/snmpd -c /etc/snmp/snmpd.conf" everything works.
>
> This also happens with Debian Etch.
>
> Where should I supposed to put snmpd.conf? Scratching my head here.
>
> PS: I tried "/etc/init.d/snmpd stop" then "ps -A|grep snmpd" show nothing and then "/etc/init.d/snmpd start" then ps show "snmpd". Now I know the command works. I also checked inside file "/etc/init.d/snmpd" to see how it works. Well, I see it does looking for "/etc/snmp" directory. Hmm...
>
I just tried to reproduce your problem, but on my system I can update
/etc/snmp/snmpd.conf and use '/etc/init.d/snmpd reload' to reload the
config. You noted that you started /usr/bin/snmpd, I assume that this is
a writing error? snmpd should be in /usr/sbin. I ask this to make sure
you don't have multiple snmpd executables arround.
Which version of snmpd are you using (/usr/sbin/snmpd --version)?
Werner
More information about the ubuntu-users
mailing list