Re: disable initial traps

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 12/12/2007, Meilán García Antonio <[email protected]> wrote:
>  I would like to disable the traps that net-snmp sending when it starts.
>  This traps are:
>
>      snmpModules.1.1.4.1.0 = enterprises.8072.4.0.2

NET-SNMP-AGENT-MIB::nsNotifyShutdown

>      snmpModules.1.1.4.1.0 = snmpModules.1.1.5.1
SNMPv2-MIB::coldStart


>  How can I disable only these traps, keeping sink2 definition in the
> snmpd.conf for sending after starting my own traps if it's necessary?

In the file 'agent/snmpd.c', look for the calls to  'send_easy_trap'
(one in the routine SnmpTrapNodeDown, and one in main).
Comment out these calls, and recompile the agent.

You may also want to comment out the third call (EntSpec 3,  in the
routine 'receive'), which would send the nsNotifyRestart trap when
you restart the agent.


Dave

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.