Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set OpsGenie alert priority from Zabbix plugin #29

Open
tnucera opened this issue Jun 1, 2018 · 3 comments
Open

Set OpsGenie alert priority from Zabbix plugin #29

tnucera opened this issue Jun 1, 2018 · 3 comments

Comments

@tnucera
Copy link

tnucera commented Jun 1, 2018

The "piority" field is not supported:
https://docs.opsgenie.com/docs/priority-field

/etc/opsgenie/zabbix2opsgenie -priority='P1'

czunker pushed a commit to czunker/opsgenie-integration that referenced this issue May 27, 2019
To use the mapped priorities, use the combination "Custom Value
to Opsgenie Priority" with the field "{{_payload.mappedPriority}}"
for Priority in your Zabbix Integration.

Fixes opsgenie#29
@coultonluke
Copy link

We would also like to pass through the priority to Opsgenie. There is a triggerpriority property but this doesn't seem to map properly in Opsgenie.

@href
Copy link

href commented Mar 30, 2020

I think this should be looked at with a higher priority. As it stands the Zabbix Integration creates all alerts as P3 alerts, which is a bit of a gotcha to say the least.

href pushed a commit to cloudscale-ch/opsgenie-integration that referenced this issue Mar 30, 2020
To use the mapped priorities, use the combination "Custom Value
to Opsgenie Priority" with the field "{{_payload.mappedPriority}}"
for Priority in your Zabbix Integration.

Fixes opsgenie#29
@ghost
Copy link

ghost commented Mar 30, 2020

I was able to do this in Opsgenie.

Go to Configured Integrations > Zabbix

  • Under Actions > + > Create Alert
  • Set the Filter to Match one or more conditions below
  • Trigger Severity Equals "Zabbix Priority" You can set this to Disaster for P1, High for P2, Average for P3, etc
  • Under Message, Set the Priority so it maps the Zabbix Priority to the Opsgenie priority.
  • Repeat the steps to add other priorities.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants