SNMP Traps module for 8.3 Event Streams

Just thought I would post this here to give people some ideas for the Event Streams system.

Had some fun with the new Event Streams feature in Ignition 8.3 Beta, decided to see what would happen if I built a module to pipe SNMP traps directly into the new event streams.
Turns out, it works pretty well.
With a simple SNMP listener on port 162, the module grabs any UDP SNMP packets, decodes them and adds the payload to an event source.

What I learned:

  • Event Streams are way more flexible than I initially thought
  • SNMP data payloads are surprisingly straightforward once you understand the basic structure.
  • Having network events in the same stream as production data opens up some cool correlation possibilities
  • Apart from the actual listener process, you can keep 90% of the processing code inside the Ignition Designer so that it is part of your project instead of inside a hardcoded module.

Nothing like a quick spare time project that actually turns into something kinda useful.
I definitely appreciate how the new Event Streams architecture makes this kind of integration so much easier.

4 Likes

@e.sagnelonge

maybe you should make your snmp module a source for event streams module!

1 Like