So we have a query for showing nodes that are down. That query is:
SELECT DISTINCT a.Caption, a.DetailsURL, c.TriggerTimeStamp
from Orion.Nodes AS a
JOIN Orion.NodesCustomProperties as b ON a.NodeID = b.NodeID
JOIN Orion.AlertStatus as c ON a.NodeID = c.ActiveObject
WHERE Status = '2' AND ClientPrefix LIKE '%INSERT_PREFIX%'
And it has just dawned on me that this is inaccurate, but I don't know where to look to fix it.
The reason it is inaccurate is that we use dependencies and the way it's coded is only looking at the Orion.AlertStatus table for a status of 2. Those of you paying attention (I wasn't until this morning) will now spot that dependencies don't alert so will never appear in the AlertStatus table.
So, I either need to find a different table to select from or somehow drag in the dependencies as well and that is where I need your help please folks?