[Pkg-net-snmp-devel] Bug#475366: It means snmpd won't start with defaults if no /etc/default/snmpd is provided

Olivier Berger olivier.berger at int-edu.eu
Thu Apr 10 11:49:57 UTC 2008


On Thu, Apr 10, 2008 at 01:38:12PM +0200, Olivier Berger wrote:
> 
> Reading the man snmpd, I'm tempted to believe snmpd will detect interfaces to listen on if started without an explicit interface in arguments :
>  " By default, snmpd listens for incoming SNMP requests on UDP port 161 on all IPv4 interfaces.  However, it is possible to modify this behaviour by specifying one or
>   more listening addresses as arguments to snmpd."
> 
> However, if started manually (or without 127.0.0.1 last argument in /etc/default/snmpd) it will abort, and return 0. As a consequence, the /etc/init.d/snmpd script returns as if nothing was wrong...
> 
> Still, the syslog contains :
> 
> Apr 10 13:32:18 kilauea snmpd[21788]: Error opening specified endpoint "" 
> Apr 10 13:32:18 kilauea snmpd[21788]: Server Exiting with code 1 
> 
> Eithere there's something wrong with the manual, or with the return code... or both.
> 
> Thanks in advance.
> 
> Best regards,
> 

Btw, this has the consequence that if /etc/default/snmpd is removed, then the default variables in /etc/init.d/snmpd will be of no use since the daemon won't start.

So either /etc/default/snmpd is mandatory (with an interface definition inside), or there's a 127.0.0.1 missing in SNMPDOPTS defined in /etc/init.d/snmpd

My 2 cents,





More information about the Pkg-net-snmp-devel mailing list