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

    • Team A
    • Sprint 82 (Nov 2021), Sprint 83 (Dec 2021)
    • 0.5

       
      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;
      }

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

              Created:
              Updated:
              Resolved: