Ad Widget

Collapse

Problem w/ official integration between Zabbix and Itop

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • maska
    Junior Member
    • Feb 2021
    • 4

    #1

    Problem w/ official integration between Zabbix and Itop

    Hi people,

    I have tried to do the integration between Zabbix and Itop, but they are showing the following error:

    181:20210210:172252.383 [ iTop Webhook ] ERROR: Incorrect iTop ticket ID given: {EVENT.TAGS.__zbx_itop_id}
    181:20210210:172357.106 [ iTop Webhook ] ERROR: Failed to parse response received from iTop.
    Request status code 200. Check debug log for more information.


    The official integration is: https://www.zabbix.com/br/integrations/itop
    The source code: https://git.zabbix.com/projects/ZBX/...tes/media/itop

    I'm using the following software:

    running on xammp on a Windows Server 2016
    iTop-2.7.3-664
    PHP 7.1.33

    running on a Ubuntu Server
    Zabbix 5.4.0alpha2 (Docker Image Official - trunk)

    Configs on Media of Zabbix

    Click image for larger version

Name:	zabbix-configs-itop-media.PNG
Views:	1777
Size:	43.7 KB
ID:	418603

    The ticket is opened on Itop, but the response gives a parse error on Zabbix!

    Click image for larger version

Name:	itop-openedtickets.PNG
Views:	1695
Size:	103.3 KB
ID:	418604

    In Actions, from the Event generated:

    Click image for larger version

Name:	zabbixtop-error.PNG
Views:	1631
Size:	34.7 KB
ID:	418605

    Someone have tried to do this?


    Thank you!
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4806

    #2
    Might be a silly question, but have you looked into debug log? In this case there should be something in Zabbix server log....

    Comment

    • mwildam
      Member
      • Feb 2021
      • 72

      #3
      I don't have and don't know itop, but are you sure that the macro {EVENT.TAGS.__zbx_itop_id} is available and resolved properly? - I am writing, because I have a similar issue with other webhooks, that some macros (although documented) are not resolved when trying to pass them as parameter to a web hook. - e.g. I have troubles with {EVENT.UPDATE.STATUS} - so I would say to first make sure that all the required macros are there and resolvable.

      Comment

      • karensman
        Junior Member
        • Jun 2022
        • 1

        #4
        had the same issue.
        made a minor adjustment in the template itself.
        when editing the media type, open the script.
        copy line 61 and add '//' in front of it.
        then change 'multipart/form-data' to 'application/json'
        Click image for larger version

Name:	2022-06-27 16_44_05-Clipboard.png
Views:	947
Size:	5.5 KB
ID:	446922

        after these modifications the errors are solved and the ticket is created correctly
        Click image for larger version

Name:	2022-06-27 16_49_47-Zabbix Appliance_ Dashboard.png
Views:	920
Size:	6.6 KB
ID:	446923
        Click image for larger version

Name:	ticket created.png
Views:	916
Size:	12.5 KB
ID:	446924

        when the status resolves, it updates itop as well.
        Click image for larger version

Name:	ticket resolved.png
Views:	914
Size:	12.2 KB
ID:	446925

        next step is to automatically close the ticket instead of just updating the ticket title and adding a comment....

        hope this helps!

        Comment

        Working...