Ad Widget

Collapse

Slack Webhook Issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • billnnm
    Junior Member
    • May 2022
    • 5

    #1

    Slack Webhook Issue

    After following the instructions outlined on https://www.zabbix.com/integrations/slack then applying the schema fix on https://www.zabbix.com/forum/zabbix-...hook-in-zabbix, running a test for the webhook results in the error "Slack notification failed : ReferenceError: identifier 'CurlHttpRequest' undefined".

    Below are the server's specs in case they're needed to diagnose the issue:
    • Zabbix: 6.2.2
    • OS: AlmaLinux 8.6
    • PHP: 7.4.30
    • MySQL: 8.0.26
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Maybe the script you're using is outdated? The post referenced is from about 2 years ago. I think I used CurlHttpRequest until Zabbix 5.4.


    If you are using Zabbix 6.2, please re-import the Slack settings for Zabbix 6.2 and set them.
    https://git.zabbix.com/projects/ZBX/...lease%2F6.2​

    Comment

    • billnnm
      Junior Member
      • May 2022
      • 5

      #3
      Atsushi Changing the "CurlHttpRequest" strings did help. Running a test of the Slack media type now works, but the alert notifications aren't being sent to Slack automatically. I'm pretty confident I set up all users with the appropriate settings and permissions for it to work but maybe I missed something. If you have any thoughts there, I'm open to suggestions.

      Comment

      • vcnt
        Junior Member
        • Jul 2021
        • 11

        #4
        hi, the same problem is happening to me. i´m using mediatypes slack from 6.4, this link. -> https://git.zabbix.com/projects/ZBX/...2FDEV-2204-6.2

        my zabbix server was updating to 6.4 recently, after this, we cant send notifications on slack...
        when i will send a test, this error appears.
        • Slack notification failed : TypeError: undefined not callable (property 'AddHeader' of [object Object])
        i saw something on fweb, about change some characteres on yaml file, but it doesnt work for me. any solutions for 6.4 zabbix?​

        Comment

        • goat90
          Junior Member
          • Sep 2024
          • 1

          #5
          @vcnt And for rest of You which have the same problem. Just import mediatype Slack in version 6.2 and it works. Make sure to mark checkbox Update Existing during Import.

          Comment

          Working...