Re: Processing traps in a real-time system

Wes Hardaker via Net-snmp-users <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Joan Ametller Esquerra <[email protected]> writes:

> 1. Write a simple trap receiver by my own. The drawback is that
>    looking at the code of snmptrapd I see a lot of library
>    initializations I do not know about and I am not sure I have enough
>    documentation to do it properly.

The right thing to do is implement a snmptrapd_handler, which you can
copy from one of the existing examples and adapt it.  See either
snmptrapd_log.c or snmptrapd_sql.c for example.
-- 
Wes Hardaker
USC/ISI

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
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.