[ZBX-10029] remote command on agent runs twice if target is both "Host" and "Current host" Created: 2015 Oct 30  Updated: 2017 May 30  Resolved: 2015 Dec 10

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 2.4.6, 3.0.0alpha4
Fix Version/s: 3.0.0alpha5

Type: Incident report Priority: Trivial
Reporter: Andris Mednis Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: actions, remotecommands
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

How to reproduce:

  • set up an action with remote command to be run on Zabbix agent,
  • set action target to "Host" AND "Current host"
    Remote command will run twice on target host.
    Other cases:
  • set action target to "Host" AND "Current host" AND "Host group" (where host is member of).
    Again, remote command will run twice on target host.
  • set action target to "Current host" AND "Host group" (where host is member of).
    Again, remote command will run twice on target host.

If a host is targeted as "Host" and "Host group" at the same time, it results in script execution one time.
Targeting "Current host" results in "independent" execution on script.



 Comments   
Comment by Glebs Ivanovskis (Inactive) [ 2015 Nov 09 ]

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-10029 r56578. (Remote commands were broken with the first ZBXNEXT-1263 merge (see subissue (127), temporary fix enabling unencrypted remote commands provided in r56611. Proper fix of this issue is in svn://svn.zabbix.com/branches/dev/ZBXNEXT-1263-2

Comment by Andris Zeila [ 2015 Nov 23 ]

Successfully tested, please check minor coding style fix in r56840

Comment by Glebs Ivanovskis (Inactive) [ 2015 Dec 02 ]

Thank you for coding style fix, accepted.

Fixed in pre-3.0.0alpha5 (trunk) revision 56950.

Generated at Fri Apr 26 14:22:15 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.