Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,556,741
Community Members
 
Community Events
184
Community Groups

Custom_variables from Icinga2 alerts?

Hi,

we are trying to integrate Icinga2 alerts into OpsGenie.

As the infrastructure behind is quite complex, we choosed to use custom_variables to categorize hosts and services.

1) Is it possible to include all custom_variables in alerts sent from Icinga to Opsgenie via official plugin?

2) Is it possible to use custom variables in Alert policies?

1 answer

0 votes
Ronnie Kingston
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Mar 14, 2021

Hi Jiří,

Custom variables can be sent to Opsgenie via the method defined in our documentation here .

When you send the arguments, it can be parsed at the integration settings and stored into alert's extra properties as key-value pairs. You can further use this key-value pairs in Opsgenie alert policies.

Image 2021-03-15 at 1.20.00 pm.png

Please reach out to us via chat support or via support.atlassian.com and we can assist further if you need any clarifications.

Darryl Lee
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Mar 15, 2021

Hi Jiří,

Thanks for your great feedback and sharing on the ticket you've open with us for the same topic.

This has been achieved by the combination of the details that Ronnie attached above and the following steps you've experimented.

Solution

1.  Created new data field in Icinga2, assigned to host, set field value.


2. Edited /home/opsgenie/oec/opsgenie-icinga2opsgenie.conf,

to add the custom arguments as a key-value format in the "arguments" dictionary object.

For example:

icinga2_custom.png


3.  Restart Icinga.

4. Added property from payload as new extra property on Create
Host/Service Alert.

As instructed, you may parse custom arguments by adding 
_payload.customArgName
 to wherever is needed on the input fields.
For more information about using raw parameters please visit the Dynamic Fields document.

For example:

icinga2_advanced.png

Thank you very much.

Kind regards,
Darryl Lee
Opsgenie Support

Like Hana Kučerová likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events