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

Zabbix preprocessing JavaScript not being executed on proxies

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • None
    • Proxy (P), Server (S)
    • None
    • Zabbix frond end and server running 7.0.3 in a Kubernetes Cluster and the active proxy running on 7.0.2 in a VM on prem. The proxy and the servers' images are based on Ubuntu.
    • S24-W44/45, S24-W46/47, S24-W48/49, S24-W50/51/52
    • 0.5

      Steps to reproduce:

      1. Create an HTTP Agent Item.
      2. Add a JavaScript preprocessing step that does an HTTP get to an endpoint that can only resolve within the proxy network (OpenShift in my case).
      3. Get Value And Test.
      4. The initial HTTP Agent works and can talk to the OpenShift endpoint from the proxy.
      5. The preprocessing step using the obtained token does not work with the error "Couldn't resolve host name"

      There has been a bug reported ZBX-24800 called "Remote command not executed on proxy but on server" which sounds like almost the same problem but that has been fixed in 7.0.3rc1, this however has not solved it as I upgraded after reading this bug and fix.

      Result:
      Please see the screen shot attached for the item test output.
      Expected:
      I would expect that both the HTTP agent and JavaScript preprocessing step be initiated from the proxy on site instead of the main Zabbix instance which would then allow the DNS to resolve in the preprocessing step as well as the HTTP agent request.

        1. screenshot-1.png
          screenshot-1.png
          29 kB
        2. Test Output.jpg
          Test Output.jpg
          81 kB
        3. zabbix repo.PNG
          zabbix repo.PNG
          107 kB

            wiper Andris Zeila
            boshoffjb Johannes
            Team A
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: