Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

setting priority of alert from Zabbix send2opsgenie plugin

Hi All,

 

I have some Zabbix Actions created that run the send2opsgenie program for alerting opsgenie. The instructions for the Zabbix plugin (I'm running Zabbix 4.0) say to copy the following block into the "Commands" window of the Zabbix Action:

/home/opsgenie/oec/opsgenie-zabbix/send2opsgenie -triggerName='{TRIGGER.NAME}' -triggerId='{TRIGGER.ID}' -triggerStatus='{TRIGGER.STATUS}' -triggerSeverity='{TRIGGER.SEVERITY}' -triggerDescription='{TRIGGER.DESCRIPTION}' -triggerUrl='{TRIGGER.URL}' -triggerValue='{TRIGGER.VALUE}' -triggerHostGroupName='{TRIGGER.HOSTGROUP.NAME}' -hostName='{HOST.NAME}' -ipAddress='{IPADDRESS}' -eventId='{EVENT.ID}' -date='{DATE}' -time='{TIME}' -itemKey='{ITEM.KEY}' -itemValue='{ITEM.VALUE}' -recoveryEventStatus='{EVENT.RECOVERY.STATUS}'

 

This does create an alert with the necessary info in Opsgenie, but it creates it at Priority 3. I'd like to have some alerts at other priorities... is there a way to do that inside Zabbix?

 

Thanks!

-Jeff

1 answer

0 votes
Samir Atlassian Team Apr 27, 2021

Hi @Jeff Avila !

 

The best thing to do would be to edit the zabbix integration within Opsgenie to set the priority. So by default, when an alert is created via a Zabbix integration, it gets created as a P3 like you mentioned...

However, you can set the priority that zabbix alerts will be created as within the integration... (Note - this requires access to "Advanced integrations" in Opsgenie, which is available on the Standard and Enterprise plans)

e.g.

2021-04-27_15-18-21.png

 

If you want the priority to change depending on the context of the alert, you could setup multiple "Create Alert" actions there with filters, to set the priority accordingly.

 

For example...

If alert received from zabbix with trigger severity = CRITICAL, create an alert with priority = P1

2021-04-27_15-19-54.png

 

Else, if alert received from zabbix with trigger severity = HIGH, create an alert with priority = P2

2021-04-27_15-21-03.png

 

So that's how you can set the priority of alerts created in Opsgenie from zabbix, based on the values of the fields Zabbix is sending over.

 

Hope that helps!

 

Thanks,

Samir

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
Community showcase
Published in Opsgenie

New GitLab integration in Incident Investigation view

We launched the first version of the Incident investigation view in April of 2020 for Bitbucket Pipelines. Shortly after that, we added the ability to investigate deployment-related incidents in Opsg...

335 views 0 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you