Ad Widget

Collapse

Zabbix Custom Alert Script integration with JIRA API

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mrogers
    Junior Member
    • Feb 2007
    • 9

    #1

    Zabbix Custom Alert Script integration with JIRA API

    Please pardon my lack of knowledge, I've used Zabbix for a number of years now, we set it up and let it run. Aside from upgrades we don't have to work with Linux very often. However, we have recently upgraded our issue tracking software to JIRA (running on Windows). With this upgrade comes the option of having an issue created in JIRA using an API. What we would like to do is create a bash script that would consume a Zabbix notification then create an issue in our JIRA instance. Ideally this script would be able to parse the macros that you can include in typical emails actions. Unfortunately, I'm extremely green in bash scripting and don't really know where to begin.

    Any assistance you could provide would be a huge help.
  • rlangle
    Junior Member
    • May 2013
    • 10

    #2
    Hi
    Were looking at doing the same. I want to create a 'JIRA' Incident issue, when I trigger a 'Important' Trigger.

    Did you get a solution?

    Thanks

    Rob

    Comment

    • mrogers
      Junior Member
      • Feb 2007
      • 9

      #3
      My apologies for the delay in replying. I haven't yet found a solution for this. However, a colleage wrote the attached script. Unfortunately I haven't yet had the time to test it.
      Attached Files
      Last edited by mrogers; 23-07-2013, 01:07. Reason: Attachment wasn't added.

      Comment

      • rlangle
        Junior Member
        • May 2013
        • 10

        #4
        Many thanks for sharing this script. Have you implemented this yet?

        Comment

        • islem karoui
          Junior Member
          • Feb 2015
          • 11

          #5
          Hello,

          Did anybody tried this script ? Did it work? Is there other possibilities?

          thank you for replying

          Comment

          • mrogers
            Junior Member
            • Feb 2007
            • 9

            #6
            We have not tried the script yet as shortly after it was written we decided to just use email to create the tickets in JIRA. I would be more than happy to do some testing if anyone wanted to further research this.

            Comment

            • islem karoui
              Junior Member
              • Feb 2015
              • 11

              #7
              Yes please, I would be so grateful if you test this script. and how do you do to create tickets in jira from email ? is their a tutorial about this?

              Comment

              • mrogers
                Junior Member
                • Feb 2007
                • 9

                #8
                The JIRA side of things was actually really simple to have it create tickets based on an email. At present we are only using this to create new tickets in JIRA. We are not sending updates or closing tickets using notifications sent from Zabbix. In fact, Zabbix is configured to send only the initial notification of a trigger failure. We are handling all other updates to the JIRA ticket manually.

                We run Exchange as our mail server and have an alerts mailbox where several of our applications send email notifications. In the mailbox we created a new folder then configured a server-side rule to move all messages received from Zabbix to this folder.

                In JIRA a new mail server and mail handler had to be configured in (Administration > System > Mail > Incoming Mail).

                Since we were using a subfolder in the mailbox as our source it was necessary to configure the mail server using IMAP. During the configuration of the mail handler you will determine which JIRA project the new tickets will be created in and assign a default reporter for new issues. There are several other settings there as well.

                Based on how this is configured, I don't see any reason that you couldn't repeat this process for each application, JIRA Project or even break up the tickets based on different teams that may be responsible for taking action.

                Here are some links that can help with configuration:





                Let me know if you have any additional questions.

                Comment

                • OSSidorenkov
                  Junior Member
                  • Feb 2016
                  • 13

                  #9
                  Hello! Try to use this solution - https://github.com/OSidorenkov/zabbix-jira

                  Comment

                  Working...