Joan Ametller Esquerra
2017-07-21 10:39:12 UTC
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.
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.