We just build a zabbix 7.2 server and want to have an alert in zabbix to be created in jira service management as an incident and to link an asset (hostname) to the incident.
Next an alert needs to be created which should then be used to inform an on call employee to acknowledge (by phone or app).
But have some problems with finding good resources. For example, wherw to find the issue type that needs to configure in zabbix or the project key.
Does anyone have a tutorial to set this up (and where to find the relevant information). What rights does the user need to have?
Getting Zabbix to trigger incidents in Jira Service Management and link to an asset is definitely doable, but I agree, the official documentation can be a bit scattered.
Here’s a rough outline that I would follow to try to achieve your goal:
In Zabbix 7.2, you can use Media Types or Webhooks to integrate with Jira. Zabbix has a built-in Jira webhook script (in alertscripts/
) which you can tweak.
You’ll need:
Jira Base URL
A project key → You can find this by going to your project in Jira and checking the URL (e.g., JSD
in yourcompany.atlassian.net/jira/software/projects/JSD
)
The issue type ID → This isn’t always the name ("Incident", "Task", etc.). To get the numeric ID, you can hit the Jira REST API: GET /rest/api/3/issuetype
The user (API token or basic auth) needs at minimum:
Create issues permission on the target project
Access to Assets/CMDB (to link the hostname as an object)
Browse Projects + any custom field permissions if you're mapping fields
If you’re using Jira Assets (formerly Insight), and the asset is stored there:
Use a custom field in Jira of type "Assets object"
In your Zabbix alert payload, pass the hostname
You may need to use a custom field ID and map it via the webhook
After the incident is created in Jira, configure an automation rule in JSM that triggers an alert in Opsgenie based on issue conditions (like priority or component)
Hope this helps.
Regards,
Eugenio
Hi Eugenio,
Thank you for your reply. Regarding the issue type ID. I want to use the Report a problem incident, the url I see is: jira/servicedesk/projects/IS/settings/request-types/category/incidents/request-type/24/request-form
Is 24 the issue type id then?
Where can I set up the User Permission? I created an user and made him an agent in ITSM. And created the api key as well.
Linking assets might be for later, i first want it to work :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Eugenio Onofre
I found the issue type using the api. Tried it with the project key (IS) and the project ID.
For the connection I am using my account now, as I am an admin I have rights for all, created an api key as well.
But doesnt seem to work yet unfortunately.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I got a little bit further. I needed to set up actions as well in zabbix. So i setup an action and it tries to send it, but got the error:
Sending failed: Failed to parse response: not well-formed JSON was received
Need to look further in the settings to see what is going wrong.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.