Ad Widget

Collapse

Monitoring stops when Proxy is switched to passive mode.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vivetech
    Junior Member
    • Jul 2024
    • 7

    #1

    Monitoring stops when Proxy is switched to passive mode.

    Hi All,

    I am monitoring a remote site via proxy, and i have added multiple hosts using Zabbix and SNMP Agents.
    But i am only able to monitor them when the proxy is in Active mode, when i switch the Proxy to Passive mode, the readings from hosts stops.
    I have tried various things i found in forum discussions online but no success.

    What am i doing wrong, Kindly suggest what to check in zabbix_proxy.conf and zabbix_server.conf to resolve this issue.

    TIA..
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1781

    #2
    If the proxy connection works one way (from proxy to server) but not the other way (from server to proxy), usually it is a firewall or address translation problem.

    What does the server log say when it is unable to connect to the passive proxy?

    Markku

    Comment

    • vsergione
      Junior Member
      • Oct 2023
      • 28

      #3
      In active checks mode the proxy is sending the data to the server on port 10051. This case seems to be working fine for you.
      With passive checks, the Zabbix server is querying the proxy for data on port 10050. Check all the firewalls in the transmission chain (including the one on the proxy, if there is any) and make sure that incoming traffic on port 100050 on proxy is allowed.

      Comment


      • Markku
        Markku commented
        Editing a comment
        Proxy does not listen on port 10050, it listens on 10051 for the incoming connections from server (in passive mode) and agents.

        Only agents listen on port 10050 by default, it is used for passive agent items only.

        Markku
    • vivetech
      Junior Member
      • Jul 2024
      • 7

      #4
      Hi All..

      I checked everything regarding firewall or address translation problem, and ports 10050-10051 are allowed both ways, i am getting these in my proxy log:

      cannot send proxy data to server at "xxx.xxx.xxx.xxx": proxy "Zabproxy123" is configured for passive mode
      cannot send proxy data to server at "xxx.xxx.xxx.xxx": proxy "Zabproxy123" is configured for passive mode
      ​cannot obtain configuration data from server at "xxx.xxx.xxx.xxx": empty string received

      Any idea why ?

      TIA..

      Comment

      • Markku
        Senior Member
        Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
        • Sep 2018
        • 1781

        #5
        cannot send proxy data to server at "xxx.xxx.xxx.xxx": proxy "Zabproxy123" is configured for passive mode
        This means that your zabbix_proxy.conf is configured with ProxyMode=0 (= active proxy) but in your Zabbix server you have created the proxy as passive proxy. Fix either setting as you want.

        Markku

        Comment


        • vivetech
          vivetech commented
          Editing a comment
          Dear Sir,

          It is configured as it should be, as you said- zabbix_proxy.conf is configured with ProxyMode=1 (= passive proxy) and in the server frontend it is configured as passive proxy. It is working fine when i configure it in active mode on both ends.

          I think i should re-check configuration of my Firewall/ Load balancer, i'll update if anything is out of order.

          Thanks so much for your support..
      Working...