If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to REGISTER before you can post. To start viewing messages, select the forum that you want to visit from the selection below.
Friends, My question:
Remote commands configured in an action, are executed on hosts monitored by proxy? The proxy who executes the commands? And any version, or is it from a specific one...
Remote commands can be executed by Zabbix server, proxy or agent. Remote commands on Zabbix agent can be executed directly by Zabbix server or through Zabbix proxy. Both on Zabbix agent and Zabbix proxy remote commands are disabled by default.
The way I see it, remote commands can be executed on either Server, Proxy or Agent. That will depend on where you're trying to execute an action.
I want to run the command on the final host, a windows for example... Monitored via proxy...
Today when I try to run a remote command, Zabbix is ignoring the proxy and trying to run the command directly from Zabbix Server... But it needs to go through the proxy to see the host
The screenshot above was taken from a 4.4 server.
But I see what you mean.
Looking at a 5.4 server, my "operation" tab from "Actions" configuration does not show any "remote command" option. It is locked at "send message".
For me, the only operation available for "trigger actions" is "Send message", wich is quite odd.
I only noticed that now.
<remote command name> - execute a remote command. Commands are available for execution if previously defined in global scripts with Action operation selected as its scope.
So, it seems remote commands are available through "scripts" configuration under "administration".
You must configure a script setting its scope as "action operation" and its type as "script", which then shows "execute on" option.
After that, your new script should appear at "operation" box under "operation details".
Remote commands are not supported to be executed on Zabbix agents monitored by Zabbix proxy, so for commands from Zabbix server to agent a direct connection is required.
Comment