I am changing a currently in use custom alert triggered with the following condition: specific nodes that use the specific custom poller that hit 30c or higher will trigger an alert.
The below query works and is valid but now I want it to be used on all nodes that use the custom poller. The condition needs to change to: all nodes that use the specific custom poller that hit 30c or higher will trigger an alert.
Inner Join Orion.NPM.CustomPollerAssignment cpa on cpa.NodeID = Nodes.NodeID
Inner Join Orion.NPM.CustomPollerStatus cps on cpa.CustomPollerAssignmentID = cps.CustomPollerAssignmentID
Where cpa.CustomPollerID = 'e6a6c65b-8a84-4b9c-a87c-23999fa30b4e' and cps.status >=30 and (cpa.NodeID = 491 or cpa.NodeID = 716 OR cpa.NodeID = 540 OR cpa.NodeID = 473 OR cpa.NodeID = 460)
Trying to Remove "and (cpa.NodeID = 491 or cpa.NodeID = 716 OR cpa.NodeID = 540 OR cpa.NodeID = 473 OR cpa.NodeID = 460)" from the query but keep getting "Query condition is not valid."
Basically, I am trying to use this more broadly all nodes and not on specific nodes.