Quantcast
Channel: THWACK: Message List
Viewing all articles
Browse latest Browse all 20490

Re: Custom report only current events

$
0
0

For Nodes:

 

SELECT     MAX(EVENTTIME) AS "EVENT TIME",    n.Caption AS 'DEVICE',    MESSAGE,    n.NODEID
FROM EVENTS
JOIN Nodes n ON n.NodeID = NetworkNode
WHERE NETWORKNODE IS NOT NULL
AND ACKNOWLEDGED = 0
GROUP BY     n.CAPTION,     MESSAGE,    n.NODEID
ORDER BY "EVENT TIME" DESC

 

For Interfaces:

 

SELECT     MAX(e.EVENTTIME) AS "EVENT TIME",    i.FullName AS 'INTERFACE',    e.MESSAGE,    i.INTERFACEID
FROM EVENTS e
JOIN Interfaces i on i.InterfaceID = e.NetObjectID
WHERE NETWORKNODE IS NOT NULL
AND ACKNOWLEDGED = 0
GROUP BY     i.FullName,     e.MESSAGE,    i.INTERFACEID
ORDER BY "EVENT TIME" DESC

 

 

TIP: If you hide the NodeID and InterfaceID fields when you create your report, your can make your nodes and interfaces in your reports "clickable".

 

 

Just a point, this is for events, not alerts. Alerts will only show details of what you actually alert on, events will show you everything.

 

All thumbs are fingers, but not all fingers are thumbs.


Viewing all articles
Browse latest Browse all 20490

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>