We are having a problem when alerts are generated for ospf peers that have been decommissioned and will not come back. We are forced to rely on a defined value of, in this case 60 hours, time that has elapsed since the neighbor was changed. By doing this the decommissioned neighbors time-out after 60 hours, which is great.
However, the problem is when there is a legitimate issue that may take a while to resolve. Then the alert will clear and we will not be tracking this as a problem anymore.
What I'd like to do is have a way of only clearing an alert with the help of the Acknowledgement function.
I currently have the trigger condition setup as a Custom SWQL Alert:
SELECT Neighbors.Uri, Neighbors.DisplayName FROM Orion.Routing.Neighbors AS Neighbors
WHERE ( ( ( Neighbors.[ProtocolName] = 'BGP' ) AND ( Neighbors.[ProtocolOrionStatus] = '2' ) AND ( Neighbors.[IsDeleted] = '0' ) ) OR ( ( Neighbors.[ProtocolName] = 'OSPF' ) AND ( Neighbors.[IsDeleted] = '1' ) AND ( Neighbors.[LastChange] >= AddDate('Hour', -60,GetDate()) ) ) )
I'd like the OSPF neighbors clear only when they have been acknowledged as seen in this SQL query: SELECT TOP 1000 * FROM [dbo].[AlertActive] WHERE AlertActive.Acknowledged = 1
Hopefully this makes sense, I'm happy to clarify if needed. Any help is appreciated.