Writing an advanced alert to look at two nodes assigned to the same application monitor, and I need the advanced alert to trigger only when the monitor goes down on both --
SELECT DISTINCT APM_AlertsAndReportsData.ComponentID AS NetObjectID, APM_AlertsAndReportsData.ComponentName AS Name FROM Nodes INNER JOIN APM_AlertsAndReportsData ON (Nodes.NodeID = APM_AlertsAndReportsData.NodeId)
WHERE ( (APM_AlertsAndReportsData.ApplicationName = 'Oracle Database monitor')
AND (Nodes.IP_Address = 'xxx.xxx.xxx.xxx') AND (Nodes.IP_Address = 'xxx.xxx.xxx.xxx')
AND (APM_AlertsAndReportsData.ComponentName = 'Oracle User Experience Monitor') )
This syntax only works with or , but not 'AND' How can I get the code to look at both nodes / monitor and trigger on both when the monitor detects the monitor down on both during the same time period.
It is a cluster.