I was reading several post and found some info about using Advanced SQL statements with the advanced Alert engine to use when monitoring UPS'. All of those post have proven to be extremely helpful but I am having a problem with one statement and I can not figure this out and I am curious if someone can give me a hint on where AI went wrong. I am using this statement.
Current utility input voltage is ${SQL:Select Rate
From CustomPollerAssignment as Assignment, CustomPollerStatus as Status, CustomPollers
where Assignment.PollerID = CustomPollers.PollerID and Assignment.CustomPollerAssignmentID = Status.CustomPollerAssignmentID and Assignment.NodeID = ${Node.ID} and Assignment.AssignmentName like 'upsInputVoltage%'} VAC.
I found the statement above in a post and the text in bold type is where I substituted my custom poller name. Where I am getting stuck is with the error that is returned when I trigger the alert. The error I am getting is below?
Current utility input voltage is MACRO SQL ERROR - Line 3: Incorrect syntax near '{'. VAC
We are still using Orion SLX V8.5.1 and I am not sure how to trouobleshoot that error. If anyone has any thoughts or suggestions I would greatly appreciate your input.