Quantcast
Channel: THWACK: All Content - Network Performance Monitor
Viewing all articles
Browse latest Browse all 21870

Report

$
0
0

Hello,

I would like the support of you for creating availability reports to report in hours and minutes downtime.

 

Today is the report used below, but  need to make manual adjustments in the collection period each month. It is possible an easier way to perform this type of report?

1.

 

SELECT

    StartTime.EventTime,

    Nodes.Estado,

    Nodes.Empresa,

    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 DurationInMinutes

FROM Events StartTime INNER JOIN Nodes ON StartTime.NetworkNode = Nodes.NodeID

WHERE (EventTime BETWEEN 42123 AND 42132 ) -------->   This Month

AND

(

  (Nodes.Dispositivo = 'Roteador') AND

  (Nodes.Estado = 'Amazonas') AND

(

   (EventType = 1) OR

   (EventType = 0))

)

ORDER BY Nodes.Caption ASC

 

----------------------------------------------------------------

 

2.

 

SELECT

    StartTime.EventTime,

    Nodes.Estado,

    Nodes.Empresa,

    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 DurationInMinutes

FROM Events StartTime INNER JOIN Nodes ON StartTime.NetworkNode = Nodes.NodeID

WHERE (EventTime BETWEEN 42093 AND 42122.9999884259---------> Last Month

AND

(

  (Nodes.Dispositivo = 'Roteador') AND

  (Nodes.Estado = 'Amazonas') AND

(

   (EventType = 1) OR

   (EventType = 0))

)

ORDER BY Nodes.Caption ASC

 

 

Thanks!


Viewing all articles
Browse latest Browse all 21870

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>