Ad Widget

Collapse

Zabbix RocketChat integration

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sweedcorn
    Junior Member
    • Jul 2021
    • 13

    #1

    Zabbix RocketChat integration

    Hi, i need help regarding the RocketChat integration in zabbix.

    The official tutorial on: https://www.zabbix.com/integrations/rocketchat

    As i can see this "integration" is not using the webhook feature but instead using a real user who has to login to the rocketchat itself ...

    Anyway, now i am having issue with the rocketchat media script, when i try to send anything from zabbix to rocketchat using the official tutorial i am getting error:

    Code:
    server.js:204 API ➔ debug Failure { statusCode: 400, body: { success: false, error: 'Invalid href value provided', stack: undefined
    Same issue: https://github.com/RocketChat/Rocket.Chat/issues/15494

    So the question is where i can find and delete the image url checker in the zabbix media script because i cannot find it anywhere to bypass this href value error.

    Everything is setuped as basic as possible:


    Click image for larger version

Name:	zabbix_error.PNG
Views:	1444
Size:	14.3 KB
ID:	428051


    There i have another question, user id - which ID is the correct one ? ID of the USER in database ? or the integration ID ?


    Click image for larger version

Name:	zabbix_media_type.PNG
Views:	1413
Size:	27.6 KB
ID:	428052


    Click image for larger version

Name:	zabbix_media.PNG
Views:	1460
Size:	14.9 KB
ID:	428053

    I have Zabbix User and #zabbix as his channel for posting messages




    So to summ it up what i am asking for:

    1) Why is zabbix not using rocket chat integration module where i don't need actual user with logins.
    2) User id ? which one ?
    3) How to disable image URL checker to remove the href error
    4) Where i can see the whole json payload - message to be sent in zabbix with the titile and post request




    Thank you very much for all answers and help !

  • amilar
    Junior Member
    • Feb 2016
    • 2

    #2
    Desculpe, vou responder em Português,
    Para resolver o problema basta você criar uma macro global {$ZABBIX.URL} = Endereço URL do seu Zabbix ou altera lá no Media Types do Rocket.Chat no item rc_title_link ao invés do {$ZABBIX.URL} você coloca seu site

    Comment


    • sweedcorn
      sweedcorn commented
      Editing a comment
      Thank you so much, it works now
Working...