Hi,
I'd like to trigger an alert based on two conditions:
- Custom poller 1 is equal to 'x' AND
- Custom poller 2 is equal to 'y'
when I look at the SQL query generated it is absolutely not what I want:
SELECTDISTINCTCustomPollerAssignmentView.CustomPollerAssignmentIDASNetObjectID,CustomPollerAssignmentView.AssignmentNameASNameFROM(CustomPollerStatusINNERJOINCustomPollerAssignmentViewON(CustomPollerStatus.CustomPollerAssignmentID=CustomPollerAssignmentView.CustomPollerAssignmentID))LEFTOUTERJOINCustomPollersON(CustomPollerAssignmentView.CustomPollerID=CustomPollers.CustomPollerID)WHERE(((CustomPollers.UniqueName='_______Power')AND(CustomPollerStatus.RawStatus=0))AND((CustomPollers.UniqueName='_______State')AND(CustomPollerStatus.RawStatus=3)))AND((InterfaceID=0))
Only one set of poller information is queried while I would need two to be able to match the two conditions. As it is right now if the poller matches one statement it's not goign to match the other one.
Any idea how I could work around that?