I have just started tinkering with the SNMP trap viewer and creating alerts based on traps. I would like to be able to provide specific information in the generated email. ${MESSAGE} contains everything I need plus a lot more. Here is a sample of what ${MESSAGE} contains:
SNMP Trap
Received Time:3/20/2007 2:27:05 PM
Source:xx.xx.xx.xx(xxxxxx)
Community:xxxxxx
Variable Bindings
sysUpTime:= 21 hours 34 minutes 17.92 seconds (7765792)
snmpTrapOID:= baseboardGroup.0.1306 (1.3.6.1.4.1.674.10892.1.0.1306)
alertSystem:= xxxxxxx
alertTableIndexOID:= powerUnitIndex.1.1 (1.3.6.1.4.1.674.10892.1.600.10.1.2.1.1)
alertMessage:= Redundancy lost Redundancy unit:
System Board PS Redundancy Chassis location: Main System
Chassis Previous redundancy state was: Normal
alertCurrentStatus:= 5
alertPreviousStatus:= 3
alertData:=
experimental.1057.1:= xx.xx.xx.xx
snmpTrapEnterprise:= baseboardGroup (1.3.6.1.4.1.674.10892.1)
I really just want alertMessage. I've tried:${alertMessage}${TrapVarbinds.RawValue}${TrapVarbind.RawValue}${SQL:SELECT RawValue FROM TrapVarbinds}${SQL:{SELECT RawValue FROM TrapVarbinds}} **Tried this because the guide says use ${SQL:{query}} but the example omits the braces around the query**Where can I find a list of, or some help with, valid variables in the alert actions of SNMP trap rules?Thanks,Olan