I cannot get a remote script to run on agent with zabbix 3.
I did the following:
I have added this line to the agent config file:
EnableRemoteCommands=1
I have added this line with visudo on the host running the agent:
zabbix ALL=NOPASSWD: ALL

Here is the confirmation from zabbix:

What am missing? I know my command work if I execute it directly on the remote linux which is Centos 6 by the way.
For some reason the file must exist in the directory otherwise the remote command dos not create it like the command in the console would.
It's working now.
I did the following:
I have added this line to the agent config file:
EnableRemoteCommands=1
I have added this line with visudo on the host running the agent:
zabbix ALL=NOPASSWD: ALL

Here is the confirmation from zabbix:

What am missing? I know my command work if I execute it directly on the remote linux which is Centos 6 by the way.
For some reason the file must exist in the directory otherwise the remote command dos not create it like the command in the console would.
It's working now.
Comment