Quantcast
Channel: THWACK: Message List
Viewing all articles
Browse latest Browse all 20396

Re: Uptime and Downtime Report

$
0
0

Hello

 

Maybe this will be enough for you.

 

1. Create report.

2. Create Custom Table.

3. As datasource use Custom SQL:

 

SELECT * from (

SELECT

StartTime.EventTime AS Down_Event_time,

(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

AND EventTime IS NOT NULL

ORDER BY EndTime.EventTime) AS UpEventTime,

Nodes.Caption, StartTime.Message, 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)

) as uptimetable

WHERE outageDurationInMinutes IS NOT NULL

ORDER BY eventtime desc

 

4. Submit

5. Pick all columns and modify how do you want.

6. Save it.


This Shows -> Caption , StartDownTime, EndDownTime and Duration of downtime in minutes and Event message.

 

This show only downtimes last 30days. If they needs more he needs modify retention time of events.

1. Settings.

2. Events Retention      days    Network events will be deleted from the database after configured days.


Viewing all articles
Browse latest Browse all 20396

Trending Articles