[ZBX-19846] Error during script execution in the action Created: 2021 Aug 23  Updated: 2023 Mar 01  Resolved: 2023 Mar 01

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

Type: Problem report Priority: Trivial
Reporter: Aliaksei Halouka Assignee: Zabbix Development Team
Resolution: Won't fix Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File MicrosoftTeams-image (3).png     PNG File MicrosoftTeams-image (5).png     PNG File MicrosoftTeams-image (6).png     PNG File image-2021-08-23-13-09-47-765.png     PNG File image-2021-08-23-13-14-30-510.png    

 Description   

Steps to reproduce:

The problem appeared in version 5.4 and higher, if the trigger condition refers to several hosts, and in action for the script, the current host is selected to execute the script, the action is completed with the error - Too many hosts in a trigger expression.

 

Result:



 Comments   
Comment by Tomáš Heřmánek [ 2023 Feb 20 ]

Hi,

we have simmiliar problem, when we have manual event action with webhook it also not work, when you have 2 hosts in trigger expression. In webhook we don't have any hosts setting.

 

Zabbix version is 6.0.12.

 

Tom

Comment by dimir [ 2023 Feb 21 ]

Was this caused by ZBXNEXT-6368? andris, any ideas?

andris: I think - yes, by design. It was not clear what is "current host" when trigger expression mentions several hosts.

Comment by Alexander Vladishev [ 2023 Mar 01 ]

This feature is not working if the trigger condition refers to several hosts. See documentation.

Current host - command is executed on the host of the trigger that caused the problem event. This option will not work if there are multiple hosts in the trigger.

Generated at Tue Mar 18 09:55:58 EET 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.