[AGENT++] [solution] Double traps received at snmptrapd
Razvan Cojocaru
razvan.cojocaru at kaspersky.ro
Tue Apr 17 13:42:58 CEST 2007
Hello again.
The problem didn't have much to do with AgentX++ at all, apparently :-).
Net-SNMP's snmpd will read it's config file (snmpd.conf) from _ALL_ the
default locations (/usr/local/etc/snmp/snmpd.conf,
/usr/local/share/snmp/snmpd.conf, etc.). All of them.
It doesn't stop after reading one configuration file. Unfortunately for
me, I had two copies of snmpd.conf, both in directories searchable by
snmpd. Each of them had a trapsink declared, and thus 2 received traps
for each trap sent from the subagent.
Aparently snmpd is so idiotic that it will even read a symlink to a
configuration file it just read (this has happened on a colleague's
FreeBSD machine).
I hope this information helps other confused Net-SNMP users out there.
Cheers.
--
Razvan Cojocaru
KeyID: 1024D/04CA34DE
More information about the AGENTPP
mailing list