Ad Widget

Collapse

Create Tickets in JIra from an alarm in Zabbix 5.2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sergio.roman
    Junior Member
    • Dec 2021
    • 7

    #1

    Create Tickets in JIra from an alarm in Zabbix 5.2

    I would like to be able to create a ticket in JIRA, using the media type that exists in Zabbix 5.2 when a Zabbix Alarm goes off.
    Has anyone come across this scenario? What steps would I have to take?
  • sergio.roman
    Junior Member
    • Dec 2021
    • 7

    #2
    I have created a mediatype of type Webhook, filling in the sections jira_password, jira_request_key, jira_request_type_id,
    jira_servicedesk_id, jira_url and jira_user as the zabbix documentation indicated.
    but when I try to perform a test it shows me the error:

    - Sending failed: Incorrect "event_source" parameter given: {EVENT.SOURCE}
    - Must be 0-3.

    Comment


    • marianogedisman
      marianogedisman commented
      Editing a comment
      You need to give it a value between 0-3. Now, the real problem is that when a problem really happens (not a test), there is no Jira ticket triggered.
  • sergio.roman
    Junior Member
    • Dec 2021
    • 7

    #3
    I have tried to give it the values corresponding to:
    • event_source
    • event_update_status
    • event_value

    but when performing the test it shows me this error message:

    Sending failed: Request failed with status code 401 Check debug log for more information.

    Comment


    • marianogedisman
      marianogedisman commented
      Editing a comment
      What do the logs say?
      I think you only need to give a value to {EVENT.SOURCE}
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #4
    When you test, you need to give all the parameters manually. So, for {EVENT.SOURCE}, insert a value, number from 0 to 3. In real life cases it will be filled automatically, as each event has this value
    source integer Type of the event.

    Possible values:
    0 - event created by a trigger;
    1 - event created by a discovery rule;
    2 - event created by active agent autoregistration;
    3 - internal event.

    Comment

    Working...