blate

snmptd -- Match on multiple PDU variables/varbinds

Discussion created by blate on Jun 28, 2012
Latest reply on Jun 29, 2012 by hernan.benavides

I have a simple use case where I want to fire an alarm when I receive an SNMP trap for a particular OID, but I want to filter based on two or more of the varbinds. 

 

Really simple example: Suppose the trap contains varbinds { severity, component, message }

 

I would like to trigger on the condition where severity=2 and component="webserver".

 

Is there a straightforward way to do this without LUA scripting and such?

Outcomes