What is the syntax to have snmptrap[] detect two different parts of the same trap? If you need more info, my situation is detailed below:
I need to set up a trigger that is true when I get a trap formatted like this:
And then resolves when a very similar trap is received, only difference "ETV-AlarmTrap-MIB::alarmMajor" is now "ETV-AlarmTrap-MIB::alarmNormal." Unfortunately, other traps resolve the same way so I can't just look at that parameter. I also need to have the trigger look at "ETV-AlarmTrap-MIB::alarmTextT2 = Video Not Running" and resolve true.
To do this, I believe I'll need an item that resolves true when "ETV-AlarmTrap-MIB::alarmMajor" and "ETV-AlarmTrap-MIB::alarmTextT2 = Video Not Running" both exist in the same trap.
To reiterate: what is the syntax to have snmptrap[] detect two different parts of the same trap?
I need to set up a trigger that is true when I get a trap formatted like this:
Code:
(DATE/TIME) ZBXTRAP (IP) DISMAN-EVENT-MIB::sysUpTimeInstance = 175876500 SNMPv2-MIB::snmpTrapOID.0 = ETV-AlarmTrap-MIB::alarmMajor ETV-AlarmTrap-MIB::trapSequence2 = 1044 ETV-AlarmTrap-MIB::referenceNumberT2 = Wrong Type (should be Gauge32 or Unsigned32): 523 ETV-AlarmTrap-MIB::positionNumberT2 = Wrong Type (should be Gauge32 or Unsigned32): 1 ETV-AlarmTrap-MIB::portNumberT2 = Wrong Type (should be Gauge32 or Unsigned32): 0 ETV-AlarmTrap-MIB::alarmIdT2 = 1016 ETV-AlarmTrap-MIB::alarmTypeT2 = 3 ETV-AlarmTrap-MIB::alarmTextT2 = Video Not Running ETV-AlarmTrap-MIB::sourceTextT2 = RX8000 ETV-AlarmTrap-MIB::severityLevelT2 = 5 SNMPv2-MIB::snmpTrapEnterprise.0 = ETV-Base-MIB::mibEricssonTelevision
To do this, I believe I'll need an item that resolves true when "ETV-AlarmTrap-MIB::alarmMajor" and "ETV-AlarmTrap-MIB::alarmTextT2 = Video Not Running" both exist in the same trap.
To reiterate: what is the syntax to have snmptrap[] detect two different parts of the same trap?
Comment