Ad Widget

Collapse

Unable to update/import/use Zabbix Slack webhook

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hsinilind
    Junior Member
    • May 2025
    • 2

    #1

    Unable to update/import/use Zabbix Slack webhook

    No matter what I try, Zabbix 7.2.6 always generates an error: "Internal Server Error" when trying to update bot token or other fields inside the webhook configuration.
    The same when importing the media_zabbix.yaml file.

    It seems that the "Script" part inside the yaml file is incompatible or buggy.

    It imports fine, if script part is emptied before import, but then of course the webhook not working...

    How to resolve?

  • patricia845
    Junior Member
    • May 2025
    • 1

    #2
    The "Internal Server Error" in Zabbix 7.2.6 when updating webhook configurations or importing `media_zabbix.yaml` likely stems from an issue within the "Script" section. Carefully examine the Zabbix server logs for specific error details. Simplify the script, validate its syntax, and ensure the configured e-zpasspa script language and file permissions are correct. The import issue suggests a potential problem with how Zabbix 7.2.6 handles the script data during import. Try manually creating the media type and copying the script content. If the problem persists, consult Zabbix documentation, forums, and the bug tracker for known issues with this version.

    Comment

    • hsinilind
      Junior Member
      • May 2025
      • 2

      #3
      Yeah, thats why I posted here - I also updated Zabbix to 7.4 beta, but still the same problem.
      The Slack webhook simply doesn't work, in the default way which it currently is. The problem is that I haven't even changed anything, if making clone of it, it still gaves an error! But if deleteing everything within the Script box, e.g this long "const CLogger = function(serviceName) {" like thing, then it is able to save...
      So - that is the real cause - it is a bug! How should I enter the script? Can anyone provide me a working part of the Slack webhook script?

      Attached the screenshot also!
      Attached Files

      Comment

      Working...