[ZBX-8503] Increasing limitation of command length for remote command with agent Created: 2014 Jul 21  Updated: 2017 May 30  Resolved: 2014 Oct 07

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: 2.0.12, 2.2.4
Fix Version/s: 2.0.14rc1, 2.2.7rc1, 2.4.2rc1, 2.5.0

Type: Incident report Priority: Minor
Reporter: Kodai Terashima Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: agent, item, limits, remotecommands
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate

 Description   

Remote command only can send 2048 bytes characters to agent.

It's worth to send more long characters for agent in some case, for instance complex commands, send notification message on agent side etc.

I suggest it will be increased to 65535 bytes that is action message size limitation.



 Comments   
Comment by Alexander Vladishev [ 2014 Oct 01 ]

Available in development branch svn://svn.zabbix.com/branches/dev/ZBX-8503

Comment by Aleksandrs Saveljevs [ 2014 Oct 01 ]

(1) There was a memory leak in case zbx_check_user_parameter() is not successful. Fixed that in r49531. Please take a look.

sasha Thanks! CLOSED

Comment by Alexander Vladishev [ 2014 Oct 01 ]

Available in pre-2.0.14 r49534.

Comment by Alexander Vladishev [ 2014 Oct 03 ]

@2.2 is available in the development branch svn://svn.zabbix.com/branches/dev/ZBX-8503-2.2
@2.4 is available in the development branch svn://svn.zabbix.com/branches/dev/ZBX-8503-2.4

Comment by Alexander Vladishev [ 2014 Oct 06 ]

Available in pre-2.2.7 r49604.

Comment by Alexander Vladishev [ 2014 Oct 06 ]

@trunk is available in the development branc svn://svn.zabbix.com/branches/dev/ZBX-8503-trunk

Comment by Aleksandrs Saveljevs [ 2014 Oct 07 ]

(2) For trunk branch, the new implementation of add_user_parameter() leaves "error" buffer uninitialized in some cases, which leads to a bad error message on the command line:

$ sbin/zabbix_agentd -t 'echo[1]'
zabbix_agentd [15580]: ERROR: cannot add user parameter "echo [*],echo $1": }���

It used to be like that:

$ sbin/zabbix_agentd -t 'echo[1]'
zabbix_agentd [15261]: ERROR: cannot add user parameter "echo [*],echo $1": syntax error

sasha RESOLVED in r49612.

asaveljevs CLOSED

Comment by Alexander Vladishev [ 2014 Oct 08 ]

Available in pre-2.4.2 r49646 and pre-2.5.0 (trunk) r49648.

Generated at Tue Apr 16 10:31:16 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.