Is there a way i can get a report of how many times a node went down over the past 12 months?
I am not looking for device availability report which shows the %. i need something like say a NODE was down for 20 times over the past 12 months
The SWQL query below should be a good starting point, adjust it to your node caption you're interested in, let me know if you need more columns in:
SELECT EventTime ,EngineID ,EventType ,MessageFROM Orion.Events EWHERE E.EventTypeProperties.Name = 'Node Down' AND E.Nodes.Caption = 'NODENAME' AND E.EventTime > ADDMONTH(- 12, GETDATE())
To get just the count, try the following:
SELECT COUNT(EventTime) AS [Times Down]FROM Orion.Events EWHERE E.EventTypeProperties.Name = 'Node Down' AND E.Nodes.Caption = 'NODENAME' AND E.EventTime > ADDMONTH(- 12, GETDATE())
Thank you Antonis, but tried this and not getting any results
With this SWQL you can count the events of Type "Node down":
SELECT COUNT(1) AS NodeDownEvents, n.DisplayNameFROM Orion.Events eINNER JOIN Orion.Nodes n ON n.NodeID = e.NetObjectIDWHERE EventType = 1GROUP BY n.DisplayName
The Availability of a Node is a given function in SWQL, no need to calculate manually:
SELECT TOP 100 r.Availability, n.DisplayNameFROM Orion.ResponseTime r INNER JOIN Orion.Nodes n ON n.NodeID = r.NodeID