[ZBX-9352] Remote command failed when there're multiple hosts in one trigger expression Created: 2015 Mar 02 Updated: 2017 May 30 Resolved: 2015 Apr 01 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Server (S) |
Affects Version/s: | 2.2.6 |
Fix Version/s: | 2.0.15rc1, 2.2.10rc1, 2.4.5rc1, 2.5.0 |
Type: | Incident report | Priority: | Major |
Reporter: | Xavier Qu | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | actions, remotecommands, trigger | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Zabbix server v2.2.6 |
Issue Links: |
|
Description |
I created a trigger where trigger expression contains different hosts. And I want to zabbix server execute some script (with contains macros like {HOST.NAME1} {HOST.NAME2}) when the trigger fires. |
Comments |
Comment by Alexander Vladishev [ 2015 Mar 02 ] |
Because action was configured "Run remote commands on current host". In this case if trigger expression contains multiple hosts, Zabbix does not know on which host this command must be executed. |
Comment by Xavier Qu [ 2015 Mar 02 ] |
The target list contains "current host, host, and host group", but I have chosen remote command to execute on zabbix server. I think zabbix should know where zabbix server is, so the target list here is very confusing. If I don't chose any target, it shows "You did not specify targets for action operation command". It's also wrong if I chose "host" or "host group" in target list. Can you tell me how to configure in actions? @Alexander Vladishev |
Comment by Alexander Vladishev [ 2015 Mar 04 ] |
You are right! The server must execute the remote command with type "Custom script" on server side in this case. We will fix it. |
Comment by Aleksandrs Saveljevs [ 2015 Mar 23 ] |
Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-9352 . |
Comment by Aleksandrs Saveljevs [ 2015 Mar 23 ] |
It was decided not to touch frontend under this issue. It will be handled separately in ZBX-9426. |
Comment by Aleksandrs Saveljevs [ 2015 Mar 23 ] |
This issue is a convenient candidate to fix a typo in Java gateway, too. Therefore, changes in the branch include that fix. |
Comment by Aleksandrs Saveljevs [ 2015 Mar 30 ] |
Fixed in pre-2.0.15 r52924, pre-2.2.10 r52925, pre-2.4.5 r52926, pre-2.5.0 (trunk) r52927. |
Comment by Alexander Vladishev [ 2015 Mar 30 ] |
(1) Documentation: asaveljevs RESOLVED sasha CLOSED |