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

"Action operation" Scope scripts failed with error message "cannot execute script: (null)", although they were executed correctly

    XMLWordPrintable

Details

    • Team A
    • Sprint 82 (Nov 2021)
    • 0.5

    Description

       
      If I create a script with the scope "Action operation" (no MediaType Webhook), the script will be executed correctly when the action is triggered, but will be shown as incorrectly executed in the event/probems view.

      Error message:
       cannot execute script: (null)

      The attempts with "return 'OK';" or the omission of "return;" were also unsuccessful.

      Code:
      try {
      // do something
      return true;
      } catch (error) {
      Zabbix.Log(4, '[Webhook] Failed: '+error);
      throw error;
      }

      Attachments

        Activity

          People

            dgoloscapov Dmitrijs Goloscapovs
            rrr rrr
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: