You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I am not sure if this is possible, but am trying to figure out if it is - appreciate any insight.
We have a system that delivers 'up' and 'down' alerts for BGP link status. This is a libreNMS delivering to Opsgenie from incoming SNMP traps. We want opsgenie to alert us when a 'Down' alert is recieved, and an 'Up' alert so we know when peers recover on their own.
However, sometimes our routers issue fake 'up' alerts. We want to ignore these.
The logic I am trying to recreate goes something like this:
"If alert contains text 'BGP Up', then only notify if 'AS#####' (The AS number contained in the body of the alert) matches an AS##### in a previous alert recieved within the last, say 24 hours".
I've been reading through policies section, action filters and 'services' which still confuse me to see if anything like this is possible, and I'm starting to think it's not.
Looking for the communities opinion - is there any way to corellate an alert to the textual content of a previous alert and make that a condition of the alert triggering in this way?
Our option B is to just 'ignore' 'Up' alerts from the two older routers that seem to be issuing the fake up alerts.
I'm Connor from the Opsgenie support team here at Atlassian 😊
If I understand this correctly and please correct me if I am wrong here, The logic you are wanting to do here is "If alert contains text 'BGP Up', then only notify if 'AS#####' (The AS number contained in the body of the alert) matches an AS##### in a previous alert received within the last, say 24 hours".
So if this is the case what you can do is configure your integration so that the create action ignores UP messages and the UP messages can match the close action here. The logic here is when your system sends a UP message and there is an existing open alert that matches the AS##### it will automatically close the alert but if there is no existing open alert it will ignore that alert. You can set notifications when an alert is automatically closed, if you don't want the alert to close to set the UP messages to match the add note action instead.
To achieve this you can do the following:
Now if you wanted to pull out AS##### from your payload you can use our string processing methods or regex to do this:
For option 2 if you wanted to simply ignore the UP messages then all you need to do is configure the filters on the create action like this -