Hi team,
I have simple SWQL request which returns me list of nodes where Route Flaps happened.
I would like to create the respective alert based on the query to get immediate email notifications.
However, whatever I choose in the I want to alert on: menu with Custom SWQL alert, it contains already some "SELECT" requests which I can't remove. There is no an empty template. WTF?
It's like I have to invent SQL joins now to match variables.
Is there an easy way?
My request is below and it works perfectly well, I just want to get an Alert if it returns something different from empty.
SELECT
r.NodeID AS NodeID,
N.Caption AS NodeName,
r.RouteDestination AS Destination,
r.CIDR AS CIDR,
COUNT(*) AS FlapCount,
MIN(r.DateTime) AS FirstFlap,
MAX(r.DateTime) AS LastFlap
FROM Orion.Routing.RoutingTableFlap r
JOIN Orion.Nodes N ON r.NodeID = N.NodeID
WHERE r.DateTime >= AddDate('MINUTE', -30, GETDATE())
GROUP BY r.NodeID, N.Caption, r.RouteDestination, r.CIDR
HAVING COUNT(*) >= 3
ORDER BY FlapCount DESC
Any ideas, Gents?
Thanks,
Jack aus Kassel