Quantcast
Channel: THWACK: Discussion List - All Communities
Viewing all articles
Browse latest Browse all 16365

Help with node downtime on the node up alert

$
0
0

Hi all,

 

I am having trouble reporting a Nodes downtime in the back up alert.

 

I am using this:

${SQL:select distinct datediff(minute,e.eventtime,getdate()) from events e where e.networknode = ${NodeID}}

 

But it always reports 1 minute.

 

I run this in Report Writer on a test node just after I bring the node back up:

 

select distinct datediff(minute,e.EventTime,getdate())  from events e where e.networknode=197

 

And it shows:

1

8

10

178

...

 

The number I am after is the 8 as it was down for 8 mins, but another event gets the top spot?

 

So, how do I select the correct event to report node downtime?


Viewing all articles
Browse latest Browse all 16365

Trending Articles