I have an action which has an operation "Remote command" with target 'Current host', type 'Custom script' and Execute on 'Zabbix agent'
Commands:
When an event has happened on the Zabbix dashboard in Actions I see 'Remote command Executed', however on affected host in /tmp/test-zabbix.log I see only 'zabbix' and nothing else. The supervised process 'test' also didn't start. If I try to execute the same commands directly on the server under the user 'zabbix' they are executed without any issue.
Where I can find any debug logs or is there any way to debug it?
Commands:
Code:
echo "zabbix" >/tmp/test-zabbix.log sudo /usr/bin/pkill -9 -f test.conf >>/tmp/test-zabbix.log 2>&1 sleep 5 sudo supervisorctl start test >>/tmp/test-zabbix.log 2>&1
Where I can find any debug logs or is there any way to debug it?
Comment