[ZBX-19702] Frontend status of Action Script type Webhook is always failed Created: 2021 Jul 19  Updated: 2021 Sep 16

Status: Confirmed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 5.4.1, 5.4.2
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Alois Zadrazil Assignee: Zabbix Development Team
Resolution: Unresolved Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Debian, Centos


Attachments: PNG File Action result.png     PNG File webhook_script.png    

 Description   

Steps to reproduce:

  1. Create Global script with scope Action operation, Type Webhook, with only one line " return 'OK';"
  2. Create Action to run that script
  3. Create test trigger to start that Action

Result:

Script is executed, but in frontend there is status failed with error: cannot execute script: (null)

Expected:
Status have to be success.
See attached screenshots...

In real scenario I am using real script which works as expected, but frontend result is always failed. Maybe I have to return some other text or result code, but I tried many and never succeeded. I did not find solution anywhere in Zabbix documentation.



 Comments   
Comment by Alois Zadrazil [ 2021 Jul 19 ]

Yes, You are right. With increased log level for escalator process, status of script is executed.

Comment by Hans Baum [ 2021 Sep 16 ]

Same problem here. I tried returning OK and "JSON.stringify({'tags': {}})" but it didn't work.

Only action operation scripts seem to be affected. When I clone the script as a "manual event action" script and execute that it works (green success message).

Generated at Tue Mar 18 06:24:21 EET 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.