PDA

View Full Version : Action. Remote command


andem
13-02-2007, 09:04
Hi, all
I have a strange problem with actions.
I use 1.1.6 version of server (on the server with Solaris 10) and the same version of agent (on the servers with Solaris 8 and 9)
I have created an action. Type is "Remote command".
All works correctly, but only IF COMMAND LENGHT IS NOT LONGER THAN 44 CHARACTERS.
For example if Remote command is "kabira-new:/testdir/abcdefghij1234567890abcdefg/mailerU" it will be execute successfully.
But if it will be "kabira-new:/testdir/abcdefghij1234567890abcdefg/mailerUU" or "kabira-new:/testdir/abcdefghij1234567890abcdefghij/mailerU"
The trigger switches correctly, but the command is not fulfilled.
Of course I have checked up correspondence of "Remote command" and real script's location.
Please prompt somebody, if I can do something to use Actions with remote command with lengths longer than 44 characters.

dsipe
13-02-2007, 10:05
i've encountered some weeks ago the same problem on 1.1.4.

the only workaround i found @ the moment is to create a new shell script [that contains the full path to the one you want to execute] in a short length path.

Another problem with remote action is that it is not logged inside Zabbix. No one known that zabbix has [ successfully or not ] submit somathing.

andem
13-02-2007, 10:35
The problem is I have root permission not on the all monitored servers, and I have to place zabbix directory in the homedir of my user :(

James Wells
15-02-2007, 05:41
Greetings,

This is a known issue that Alexei has stated he will not fix. Having said that, however, I have posted a PATCH (http://www.zabbix.com/forum/showthread.php?t=4133) that addresses this issue.

andem
15-02-2007, 13:04
James, I have a problem with Action but not with Items.
Can this patch fix the problem with length of remote command in Action?

James Wells
15-02-2007, 14:07
Yep. The remoteAction uses the same item key information from what I can tell in the source code.