On 13/11/06, Ondrej Lukes <[EMAIL PROTECTED]> wrote: > I use net-snmp-5.3.1 as SNMP Agent (host=arm-C411_L24-linux-gnu). I have a > problem with sending traps. Sometimes agent send to one event two > identical traps. Why??? Duplication a trap turn up in 1-20% event.
The most common cause of duplicated traps would be duplicate "trapsink" entries in the config file (or reading the same config file in twice). But that would result in *all* traps being duplicated. If this is only happening occasionally, then it's more likely to be a problem in the code. It's difficult to suggest what might be happening. Try adding some debugging code in the module that's triggering these traps, so that you can tell whether this is being invoked once or twice. It might be worth running the agent with '-Dtrap', to watch the core trap generation processing - and compare this to your MIB-specific debugging output, and what the trap receiver actually sees. Dave ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
