Submit a ticketCall us

Quickly Address Software Vulnerabilities
Patch Manager is an intuitive patch management software which extends the capabilities of WSUS and SCCM to not only patch Windows® servers and workstations, and Microsoft® applications, but also other 3rd-party applications which are commonly exploited by hackers. Learn more about our patch management solution.

 

Home > Success Center > Network Performance Monitor (NPM) > Make node downtime report

Make node downtime report

Table of contents
Created by Jane Baylon, last modified by Steven Bansil on Jun 24, 2016

Views: 174 Votes: 1 Revisions: 7

Overview

This report shows outage duration for each node when and how long it was down, and how to filter it for specific nodes.

 

Environment

NPM version 10.7 and later

Steps

 

You may run this query either from your Orion Report Writer from your Orion server

 

1. Login to Orion Server using admin and go to Start > All Programs > SolarWinds Orion > Alerting, Reporting, and Mapping > Report Writer.

2. Click New and choose Advanced SQL as type of report.

3. Run the script below:

SELECT * FROM (

 SELECT
 Nodes.StatusLED,
 Nodes.Caption,
 Nodes.NodeID,
 StartTime.Message,
 StartTime.EventTime AS DownEventTime,
 (
  SELECT TOP 1 EventTime
  FROM Events AS EndTimeTable
  where EndTimeTable.EventTime >= StartTime.EventTime
   AND EndTimeTable.EventType = 5
   AND EndTimeTable.NetObjectType = 'N'
   AND EndTimeTable.NetworkNode = StartTime.NetworkNode
   AND EventTime IS NOT NULL
  ORDER BY EndTimeTable.EventTime
 ) AS UpEventTime,
DATEDIFF(Mi, StartTime.EventTime,(
   SELECT TOP 1 EventTime FROM Events AS Endtime
   where EndTime.EventTime > StartTime.EventTime AND EndTime.EventType = 5 AND EndTime.NetObjectType = 'N'
    AND EndTime.NetworkNode = StartTime.NetworkNode  ORDER BY EndTime.EventTime)
  ) AS OutageDurationInMinutes
 FROM Events StartTime
 INNER JOIN Nodes ON StartTime.NetworkNode = Nodes.NodeID
 WHERE (StartTime.EventType = 1) AND NodeID = '1'
) AS UpTimeTable
where outageDurationInMinutes IS NOT NULL
ORDER BY Caption ASC, DownEventTime DESC

 

Note: The highlighted part can be changed from set to custom properties depending the requirement.

 

 

Last modified
23:27, 23 Jun 2016

Tags

Classifications

Public