Processing traps in a real-time system
Joan Ametller Esquerra <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <CAE9UaWSKHb=X+=9z_V7jVHRH2fMVhF1dV1-BE3t3xPtQBJE6Gg@mail.gmail.com> |
Hello, I was trying to use snmptrapd in a real time system where the processing of traps should be deterministic in terms of time. Therefore, for me it is not an option to use the exec directrive since it implies the loading of a binary and the overhead of its execution for each trap (which is not deterministic in time). There is some way to process traps in another way? It would be perfect a think like loading a mib module within the snmptrapd to register callbacks to specific trap reception but I suspect that this end is not possible. The possibilities I am analyzing are the following ones: 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. 2. I've read that snmptrapd has an embedded agentx to notify trap receptions to snmpd. Maybe trying to forward traps to snmpd using NOTIFICATION-MIB-LOG and attaching a mib module with handlers to process that would be an option.... Anyone has a clue about any another simple way to do that properly that maybe has escaped me? Thank you, J. ------------------------------------------------------------------------------ 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