[Pkg-net-snmp-devel] Bug#475366: Bug#475366: snmpd silently fails to start if no interface specified on commandline
Jochen Friedrich
jochen at scram.de
Thu Apr 10 11:52:55 UTC 2008
Hi Olivier,
> 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."
That's correct :)
> 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...
That's very strange and I can't replicate this here. This is /etc/default/snmpd I am using here with 5.4.1~dfsg-6:
-----------------------------------------------8<---------------------------------------------
# This file controls the activity of snmpd and snmptrapd
# MIB directories. /usr/share/snmp/mibs is the default, but
# including it here avoids some strange problems.
export MIBDIRS=/usr/share/snmp/mibs
# snmpd control (yes means start daemon).
SNMPDRUN=yes
# snmpd options (use syslog, close stdin/out/err).
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid'
# snmptrapd control (yes means start daemon). As of net-snmp version
# 5.0, master agentx support must be enabled in snmpd before snmptrapd
# can be run. See snmpd.conf(5) for how to do this.
TRAPDRUN=yes
# snmptrapd options (use syslog).
TRAPDOPTS='-Lsd -p /var/run/snmptrapd.pid'
# create symlink on Debian legacy location to official RFC path
SNMPDCOMPAT=yes
-----------------------------------------------8<---------------------------------------------
Thanks,
Jochen
More information about the Pkg-net-snmp-devel
mailing list