-
Problem report
-
Resolution: Unresolved
-
Trivial
-
None
-
6.0.15
-
None
Zabbix proxy not execute scripts, the scripts are run on zabbix server instead of proxy.
We have enabled EnableRemoteCommands=1 on proxy but seems it doesn't work.
The execute on is not working for proxy:
The script is run on zabbix server instead:
Steps to reproduce:
We apply the patch from: https://support.zabbix.com/projects/ZBX/issues/ZBX-22613
We try to run script using api:
proxy_reload_script_id = zapi.script.get(filter={"name": "Reload Proxy Config Cache"}, output="extend")[0].get("scriptid") proxy_reload_result = zapi.script.execute( scriptid=proxy_reload_script_id, hostid=backup_proxy_id )
I did try both ids as proxy is monitored by zabbix so:
I did try both ids proxy id and host id, when I use proxy id I get error:
Catch exception: ('Error -32500: Application error., No permissions to referred object or it does not exist!', -32500)