Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-23820

Zabbix Server Crashing When Sending Webhook

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Duplicate
    • Icon: Trivial Trivial
    • None
    • 6.4.9
    • Server (S)
    • None
    • RHEL8, MariaDB, Zabbix Server 6.4.9

      Steps to reproduce:

      Our Zabbix-server.service is crashing since updating to 6.4.9 from 6.4.8.

      It crashes when sending a Webhook to MS Teams.

      The message is getting posted to teams but the service crashes as soon as the webhook is executed.

      Crash log is attached. Issue is not present in 6.4.8 and I have continued to use this version on our production zabbix instance.

       

      //My Webhook Script
      try {
          var params = JSON.parse(value),
              req = new HttpRequest(),
              response;
          if (params.HTTPProxy)

      {         req.setProxy(params.HTTPProxy);     }

       
          req.addHeader('Content-Type: application/json');  
      Zabbix.log(4, '[ LATeams webhook ] Webhook request with value=' + value);  
      var response = req.post(params.hookURL, JSON.stringify(params));  
      return 'OK'; 
          }
       
      catch (error)

      {     // Adding a log function so in case of problems you can see the error in the Zabbix server console     Zabbix.log(4, '[ LATeams webhook ] Failed with error: ' + error);       // In case of an error, return it from the webhook     throw 'Failed with error: ' + error; }

       
      Result:

      Zabbix.service stops as soon as the webhook is triggered, I can trigger this by using the test function, or an alert can trigger it.

      214079:20231207:131553.679 Got signal [signal:11(SIGSEGV),reason:1,refaddr:(nil)]. Crashing ...

       

      Above is the error line I am getting each time Zabbix crashes but I cannot workout what is causing it and why this has occurred since upgrading from 6.4.8 to 6.4.9.

       

      Any help would be appreciated.

       

            zabbix.support Zabbix Support Team
            petey123 Jason
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: