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