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:
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.
Error message:
cannot execute script: (null)
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;
}