Quantcast
Channel: THWACK: All Content - All Communities
Viewing all articles
Browse latest Browse all 13537

Custom SWQL Query for Filtering Down Nodes

$
0
0

I had a request to do some filtering on our current "Down Nodes" resource.  We no longer want to show nodes that have an alert team of "X".

 

Here is the current resource. 

 

SELECT

NodeName AS [Node Name],

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

        DetailsUrl AS [_LinkFor_Node Name],

        DOWNEVENT.EVENTTIME AS [DOWN TIME],

  Nodes.CustomProperties.Alert_Team as [ALERT TEAM]

FROM ORION.NODES NODES

INNER JOIN ORION.EVENTS DOWNEVENT

ON NODES.NODEID = DOWNEVENT.NETWORKNODE

WHERE STATUS = 2

ORDER BY NodeName

 

I've tried changing the Where line to: WHERE STATUS = 2 AND Alert_Team <> "X" but it doesn't seem to work.  What am I missing?

 

Thanks


Viewing all articles
Browse latest Browse all 13537

Trending Articles



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