Can you please advice what is the recommended method for configuring snmpd.conf
Issue: snmp agent is sending multiple traps for the same host(s) 1) lets start with valid working state where snmpd.conf has some basic configuration (entries) and snmpd is up and running 2) Want to perform some new configurations like adding / removing new trap destination host IP addresses with trapsess / trap2sink entries to snmpd.conf 3) A new file snmpd.conf is completely rewritten with its current entries and new configuration entries are added to the file (snmpd.conf) and copy this file to snmpd.conf standard path which is read by snmp agent. 4) Then call snmpd.c::netsnmp_reconfig() API to read new configuration values. 5) snmpd still runs and performs reconfigure steps using new configuration file (which has old entries and as well as new entries). 6) After the step 5 then system behaves incorrect. For any event / alarm generated in the system then snmp agent sends more and more traps to the same hosts and this count depends on how many times the configuration changes are performed on snmpd.conf file This clearly indicates that the procedure followed is wrong and appears that snmpd is learning same hosts addresses many times with snmpd.conf entries? Should it suppose to learn and populate only 1 entry per host while it configures and populates the snmpTargetAddrTable? Is there any other parameters which does sending multiple traps? like repeater / retry count etc? What is the correct way to create/update the configuration file for adding / removing entries in snmpd.conf? I appreciate your help and any inputs / pointers on this model. Thanks, Maanas
------------------------------------------------------------------------------
_______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users