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

Variables in Advanced Alert Manager

$
0
0

I am trying to compose an alert email that shows the last time the node was polled in my local time (EST).

 

The following query works great to show the time 4 hours earlier than right now:

${SQL:Select DATEADD(hh,-4,GETDATE())}

 

However, that's not what I want. I need the last system uptime, which is found in the variable ${LastSystemUpTimePollUtc}. So I tried the following variations:

 

  • ${SQL:Select DATEADD(hh,-4,${LastSystemUpTimePollUtc})}
  • ${SQL:Select DATEADD(hh,-4,{LastSystemUpTimePollUtc})}
  • ${SQL:Select DATEADD(hh,-4,LastSystemUpTimePollUtc)}
  • ${SQL:Select DATEADD(hh,-4,LastSystemUpTimePollUtc())}


Respectively, I got the following result in the test email:

 

"

MACRO SQL ERROR - Incorrect syntax near '5'.

${SQL:Select DATEADD(hh,-4,{LastSystemUpTimePollUtc})}

MACRO SQL ERROR - Invalid column name 'LastSystemUpTimePollUtc'.

MACRO SQL ERROR - 'LastSystemUpTimePollUtc' is not a recognized built-in function name.

"

 

Does anyone have an idea?


Viewing all articles
Browse latest Browse all 21870

Trending Articles



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