Hi, I am trying create a KPI widget to display Internet Status based on SNMP Traps received from our WAN Router.
ciscoExperiment.91.1.2.3.1.11.7 = ICMP to 8.8.8.8 ok
ciscoExperiment.91.1.2.3.1.10.7 = 0
ciscoExperiment.91.1.2.3.1.9.7 = 0
ciscoExperiment.91.1.2.3.1.7.7 = applet: ICMP-INTERNET-OK
ciscoExperiment.91.1.2.3.1.6.7 =
ciscoExperiment.91.1.2.3.1.5.7 = 0
ciscoExperiment.91.1.2.3.1.4.7 = 0
ciscoExperiment.91.1.2.3.1.3.7 = 0
ciscoExperiment.91.1.2.3.1.2.7 = 211
snmpTrapOID = CISCO-SMI:ciscoExperiment.91.0.2
I wrote the following SWQL query and obviously I am missing something or the syntax is wrong (new to SWQL/SQL).
SELECT Message, NodeID
CASE WHEN Message = 'ciscoExperiment.91.1.2.3.1.11.7 = ICMP to 8.8.8.8 ok' Then 'Up'
ELSE 'Down'
END
FROM Orion.Traps
Where (NodeID = '123')
Need help to fix this please. Thank you very much.