Comments
-
No matter it looked like the Union was causing the issue, I simplified the query. SELECT Nodes.Caption, Nodes.NodeID FROM Nodes WHERE Nodes.NodeID IN ( SELECT ((select COUNT(*) FROM traps where traps.traptype = 'BMC-CONTROLEM-MIB:alertTrap.10' and [DateTime] BETWEEN…
-
Ok, so what I've done is create a trigger that gives me a unique NodeID for each trap that comes in so that each one will alert. SELECT Nodes.Caption, Nodes.NodeID FROM Nodes WHERE Nodes.Caption IN ('NotApplicable') UNION ALL SELECT trapvarbinds.OIDValue_Unicode + CAST(ROW_NUMBER() OVER(PARTITION BY OIDValue_Unicode ORDER…
-
No matter i have sorted this, using the UpdateAction method. $xml = "<ActionDefinition xmlns:i='http://www.w3.org/2001/XMLSchema-instance' xmlns='http://schemas.solarwinds.com/2008/Orion'><ActionProperties/> <ActionTypeID>Email</ActionTypeID><Description>Phil Test</Description><Enabled>true</Enabled><ID>138</ID>…
-
Just as a bit of an update I've got a bit further in that in the SNMP trap I can use the 'alertTrapNodeId' which will obviously create more than one alert but then sometimes more than one job might fail on the same node. The 'alertTrapOrderId' will always be unique but without setting up a lot of alert definitions I can't…