[ZBX-10079] Document that system.run[] with "nowait" will always return 1 and immediately Created: 2015 Nov 13 Updated: 2017 May 30 Resolved: 2015 Dec 01 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Documentation (D), Frontend (F) |
Affects Version/s: | 2.4.7rc1 |
Fix Version/s: | 3.0.0alpha5 |
Type: | Incident report | Priority: | Trivial |
Reporter: | Oleksii Zagorskyi | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | system.run | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Description |
(1) Suggested text: Zabbix agent 2.4.7rc1: 7597:20151113:150504.035 listener #1 [processing request] 7597:20151113:150504.035 Requested [system.run[sleep 3, nowait]] 7597:20151113:150504.035 Executing command 'sleep 3' 7597:20151113:150504.040 Sending back [1] 7597:20151113:150504.040 listener #1 [waiting for connection] (2) As I know they are executed used "nowait" flag, so it's wrong to include them to the list, IMO. |
Comments |
Comment by richlv [ 2015 Nov 14 ] |
regarding remote command execution (2), agent does return 1 for nowait requests, but the actual invoking of the command still follows the same general principles as documented in that page zalex_ua You are correct as for steps 1-4 in the list, but for following steps 5-7 it's not true because with "nowait" the command is not limited by time execution and is not terminated, I've just checked this point. <richlv> ah, indeed - overlooked a bit of detail. thanks for spotting that |
Comment by Martins Valkovskis [ 2015 Nov 16 ] |
(1) Updated documentation:
Please review. zalex_ua Pretty short and clear, thanks. May be closed, but see please discussion (2) above. martins-v CLOSED |
Comment by Martins Valkovskis [ 2015 Nov 17 ] |
(2) See the new version of https://www.zabbix.com/documentation/2.4/manual/appendix/command_execution. zalex_ua Perfect, can be replicated to other doc versions and closed. martins-v Replicated. CLOSED |
Comment by Andrey Zaslavskiy [ 2015 Nov 27 ] |
What about backporting this to older versions? |
Comment by richlv [ 2015 Nov 28 ] |
andyzasl, what exactly would you like to see backported ? |
Comment by richlv [ 2015 Nov 28 ] |
(3) let's unify the clarified item description with the frontend item key helper, too <richlv> resolved for trunk in svn://svn.zabbix.com/branches/dev/ZBX-10079 asaveljevs Looks good. CLOSED. |
Comment by Andrey Zaslavskiy [ 2015 Nov 28 ] |
I've find that nowait option doesn't work in last 2.4 release, but i can't find any patch info about it was made working in 2.4.8rc1 |
Comment by Andrey Zaslavskiy [ 2015 Nov 28 ] |
Ah, sorry, didn't see that this bug in frontend related |
Comment by richlv [ 2015 Nov 28 ] |
nowait should work properly & as documented - maybe you have a syntax error or a similar problem, but i'd suggest discussing that in one of the channels listed in https://zabbix.org/wiki/Getting_help (irc usually works well ) |
Comment by richlv [ 2015 Nov 29 ] |
(4) translation string changes : removed string :
added string :
asaveljevs CLOSED |