L
L
lopaka2015-09-15 17:10:12
SNMP
lopaka, 2015-09-15 17:10:12

How to filter snmp traps?

There is a lot of equipment that can send snmp traps.
Equipment has 3 states - Normal, Warning, Disaster.
In the event of a problem, traps are sent every minute until the moment of escalation.
If the counter on the equipment grows and the Warning trigger fires, then snmp traps with a value of 1 are sent.
The counter continues to grow, the Warning trigger is not extinguished, Disaster fires, and snmp traps with a value of 2 are sent.
As a result, we receive a chain of values ​​1,2, 1,2,1,2 The
question is, how to filter trap values ​​that are currently "out of date"?
At the moment, I see a solution to the problem in storing values ​​​​(device_id : value) in a file / database with subsequent processing and one-time sending.
Can you recommend a better solution?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question