Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am on Ubuntu 10.04.4 LTS, and I cannot upgrade to a higher version.

I have installed the snmpd agent (NET-SNMP version with an apt-get install snmpd command.

When an event occurs which sends a trap, two traps are sent for each such event instead of one.

For example, when I shut down the agent with command /etc/init.d/snmpd stop, two shutdown traps are sent to the destination host. If I then start back up the agent with command /etc/init.d/snmpd start, then two cold start traps are sent to the destination host.

Is this a known issue? Is there a fix for this, or is there a configuration change that is needed to prevent the sending of the duplicate trap?

These are the contents of the /etc/snmp/snmpd.conf file:

rocommunity public
authtrapenable 1
trap2sink <trap destination hostname>  public

These are the contents of the /etc/default/snmpd file:

# 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).

# snmpd options (use syslog, close stdin/out/err).
SNMPDOPTS='-Ls3d -Lf /dev/null -u snmp -p /var/run/ -c /etc/snmp/snmpd.conf'

# 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.

# snmptrapd options (use syslog).
TRAPDOPTS='-Lsd -p /var/run/'

# create symlink on Debian legacy location to official RFC path
share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.