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

SQL Variable in advanced alerts

$
0
0

Good afternoon.  I am trying to correct the syntax for a SQL statement in my advanced alert for a node.

I have a custom property for the interface called 'Circuit ID'

There is an advanced alert for the node when the node goes down.  The alert action is to email a group that the node has gone down.  I would like to include the Circuit ID in the body of the message when the alert email is sent.  I have tried this SQL statement but all I get in the mail is the SQL statement instead of the Circuit ID.

 

${SQL:Select CircuitID From Interfaces FULL JOIN Nodes ON Nodes.NodeID = Interfaces.NodeID WHERE Nodes.NodeID = ${NodeID} AND CircuitID IS NOT NULL}

 

I added the 'AND CircuitID IS NOT NULL at the end because I only want the interface with a Circuit ID value to be shown here and not every interface one that node...  Ethernet, Management Serial ect....

 

Any help with SQL variables would be greatly appreciated....


Viewing all articles
Browse latest Browse all 21870

Trending Articles



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