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

Re: Custom SWQL Query for Nodes Down Showing Every Time Node Went Down

$
0
0

Hi

 

Adding a GROUP BY and MAX(EventTime) should solve your case. Provided the query below.

 

SELECT

    NodeName AS [Node Name],

        '/Orion/images/StatusIcons/Small-' + StatusIcon AS [_IconFor_Node Name],

        DetailsUrl AS [_LinkFor_Node Name],

        MAX(DOWNEVENT.EVENTTIME) AS [DOWN TIME]

FROM ORION.NODES NODES

INNER JOIN ORION.EVENTS DOWNEVENT

ON NODES.NODEID = DOWNEVENT.NETWORKNODE

WHERE STATUS = 2

GROUP BY NodeName, StatusIcon, DetailsUrl, Nodes.CustomProperties.Alert_Team

ORDER BY NodeName


Viewing all articles
Browse latest Browse all 20396

Trending Articles



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