Dear Thwack,
I need help using the SQL or SQL substring to edit the alert message body to provide output and send alert to our internal support group.
Here is the custom trap info from Log Viewer:
5/18/2020 8:26:21 AM
CISCO-IPSEC-FLOW-MONITOR-MIB:cikeTunnelStop : cikePeerLocalAddr.1.4.69.60.152.62.1.4.192.168.85.81.58929 = 69.60.152.62, cikePeerRemoteAddr.1.4.69.60.152.62.1.4.192.168.85.81.58929 = 192.168.85.81, cikeTunActiveTime.58929 = 3769475, cikeTunHistTermReason.58929 = peerLost(5), sysUpTime = 87 days 7 hours 54 minutes 3.41 seconds, experimental.1057.1.0 = 192.168.84.11, snmpTrapEnterprise = CISCO-IPSEC-FLOW-MONITOR-MIB:cipSecMIBNotificationPrefix
Source Time
5/18/2020 4:26:21 AM
Source
aamot-chicago2-CR-1037681
(192.168.84.11) Machine Type
Cisco 4431 ISR
Trap Type
CISCO-IPSEC-FLOW-MONITOR-MIB:cikeTunnelStop
Trap OID
1.3.6.1.4.1.9.9.171.2.0.2
VARBIND ELEMENT WITH NAME
cikePeerLocalAddr.1.4.69.60.152.62.1.4.192.168.85.81.58929 (1.3.6.1.4.1.9.9.171.1.2.2.1.6.1.4.69.60.152.62.1.4.192.168.85.81.58929)
69.60.152.62
cikePeerRemoteAddr.1.4.69.60.152.62.1.4.192.168.85.81.58929 (1.3.6.1.4.1.9.9.171.1.2.2.1.7.1.4.69.60.152.62.1.4.192.168.85.81.58929)
192.168.85.81
cikeTunActiveTime.58929 (1.3.6.1.4.1.9.9.171.1.2.3.1.16.58929)
3769475
cikeTunHistTermReason.58929 (1.3.6.1.4.1.9.9.171.1.4.2.1.1.2.58929)
peerLost(5)
sysUpTime (1.3.6.1.2.1.1.3.0)
87 days 7 hours 54 minutes 3.41 seconds
experimental.1057.1.0 (1.3.6.1.3.1057.1.0)
192.168.84.11
snmpTrapEnterprise (1.3.6.1.6.3.1.1.4.3.0)
CISCO-IPSEC-FLOW-MONITOR-MIB:cipSecMIBNotificationPrefix
We would like to see those information in the alert message body, here are example:
CISCO-IPSEC-FLOW-MONITOR-MIB:cikeTunnelStop
cikePeerLocalAddr = 192.168.85.81
cikePeerRemoteAddr = 69.60.152.62
Source : aamot-chicago2-CR-1037681 (192.168.84.11)
Here is the current output of the email alert:
Solarwinds support provide this SQL strong in the message body but it output too many information:
${N=OLM.AlertingMacros;M=OLMAlertMessage.EventMessage}
CISCO-IPSEC-FLOW-MONITOR-MIB:cikeTunnelStop : cikePeerLocalAddr.1.4.69.60.152.62.1.4.192.168.85.81.58929 = 69.60.152.62, cikePeerRemoteAddr.1.4.69.60.152.62.1.4.192.168.85.81.58929 = 192.168.85.81, cikeTunActiveTime.58929 = 3769475, cikeTunHistTermReason.58929 = peerLost(5), sysUpTime = 87 days 7 hours 54 minutes 3.41 seconds, experimental.1057.1.0 = 192.168.84.11, snmpTrapEnterprise = CISCO-IPSEC-FLOW-MONITOR-MIB:cipSecMIBNotificationPrefix
As you can see it has too many useless information and hard for user to read through it.
Thanks