Ad Widget

Collapse

Integration with Rocket.Chat problem.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • matz
    Junior Member
    • Jul 2017
    • 7

    #1

    Integration with Rocket.Chat problem.

    Hello,

    I try to integrate zabbix with Rocket.Chat instance as media type for alert receiving.
    I do everything from this man: https://git.zabbix.com/projects/ZBX/...dia/rocketchat

    Test message is working, problem message is working but recovery and update messages dont work.





    Logs from zabbix: https://justpaste.it/8fnjk

    Zabbix version in docker: zabbix/zabbix-server-mysql:ubuntu-trunk
    RocketChat in docker: 3.12.1
  • matz
    Junior Member
    • Jul 2017
    • 7

    #2
    I still debbuging and problem is only with parameter:

    use_default_message = false

    If I use use_default_message = false i got plan text message and it working.

    Debug log on error:

    Code:
    00:00:00.000 [Debug] [ RocketChat Webhook ] Sending request: https://chat.xxx.pl/api/v1/chat.sendMessage {"message":{"rid":"{EVENT.TAGS.__zbx_rc_rid}","tmi d":"{EVENT.TAGS.__zbx_rc_id}","tshow":true,"alias" :"{USER.FULLNAME}","msg":"{EVENT.UPDATE.ACTION}"," attachments":[{"color":"#009900","text":"{EVENT.UPDATE.MESSAGE}" }]}}
    00:00:00.077 [Debug] [ RocketChat Webhook ] Received response with status code 400 {"success":false,"error":"not-allowed [error-not-allowed]","errorType":"error-not-allowed","details":{"method":"sendMessage"}}
    00:00:00.078 [Warning] [ RocketChat Webhook ] ERROR: Request failed with status code 400: "not-allowed [error-not-allowed]". Check debug log for more information.

    Comment

    • matz
      Junior Member
      • Jul 2017
      • 7

      #3
      If event source in media types (test page) is 0 and use_default_message = false problem occurs.
      If event type is not equal 0 problem dont occurs.

      Comment

      Working...