Ad Widget

Collapse

"Action operation" Scope scripts failed with error msg, although they were executed.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rrr
    Senior Member
    • Sep 2007
    • 100

    #1

    "Action operation" Scope scripts failed with error msg, although they were executed.

    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 view.

    Error message:
    cannot execute script: (null)
    What has to be entered in the Webhook Javascript code so that the script is not displayed as incorrectly executed in the event view?

    The attempts with "return;", "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;
    }
    Last edited by rrr; 05-11-2021, 10:19.
Working...