Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-22660

Zabbix Proxy not execute scripts

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 6.0.15
    • Proxy (P)
    • 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) 

       

       

       

       

       

       

       

       

       

            neogan Andrei Gushchin (Inactive)
            dulin Marcin Dulinski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: