Ad Widget

Collapse

Zabbix Proxy Active or Passive ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wyang
    Member
    • Mar 2016
    • 93

    #1

    Zabbix Proxy Active or Passive ?

    Hello,

    The standalone Zabbix server experiences performance limitations. Thus, we plan to set up Zabbix proxies to offload Zabbix server, on which all checks are passive.

    Would you please recommend to set up active proxy or passive proxy? What is the reason behind?

    Any help would be much appreciated.
  • kloczek
    Senior Member
    • Jun 2006
    • 1771

    #2
    Originally posted by wyang
    The standalone Zabbix server experiences performance limitations. Thus, we plan to set up Zabbix proxies to offload Zabbix server, on which all checks are passive.
    So start using active checks and you will fix your performance issues.
    You need to change agents set up to the active one and change items type from "zabbix agent" to "zabbix agent (active)".
    Passive monitoring does not scale.

    Would you please recommend to set up active proxy or passive proxy? What is the reason behind?
    Type of the proxy (active or passive) has nothing to do with the type of the monitored items. These are two independent things.
    Using active proxies scales better for the same reasons as using passive/active monitoring.

    More or less the reason is the same: each passive item or proxy uses the separate process on the server (in case of items or proxies) or proxy (in case of the proxies) which handles only one proxy/item.
    This is not the precise description but it is enough close to what really happens but more important is that active proxies and monitoring (using agent active items) scales better and uses fewer CPU resources on all three zabbix stack parts (server, proxy and agent).
    http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
    https://kloczek.wordpress.com/
    zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
    My zabbix templates https://github.com/kloczek/zabbix-templates

    Comment

    • wyang
      Member
      • Mar 2016
      • 93

      #3
      Thanks very much kloczek. It will result in a fundamental change on our Zabbix architecture to offload Zabbix server. Greatly appreciated!

      Comment

      • Chausse
        Junior Member
        • Dec 2019
        • 1

        #4
        Zabbix proxies can operate in two different modes, active and passive. The default setup is the active proxy. In this setup, the proxy initiates all connections to the Zabbix server, the one used to retrieve configuration information on monitored objects, and the connection to send measurements back to the server Krogerfeedback
        Last edited by Chausse; 21-12-2019, 07:15.

        Comment

        • MickeyPM
          Junior Member
          • Apr 2020
          • 13

          #5

          A Zabbix Agent can handle both Active and Passive requests similtaneously from the Zabbix Server.
          Why can't a Zabbix Proxy do the same?
          Is the only way then around this is to install 2 Zabbix Proxies, one active and passive, each in a docker container, and let the agent connect to both proxies?

          Comment

          • Hamardaban
            Senior Member
            Zabbix Certified SpecialistZabbix Certified Professional
            • May 2019
            • 2713

            #6
            I can't think of a reason why the proxy needs to work in both modes at the same time.... Perhaps you don't understand why and how the proxy works?

            Comment

            • MickeyPM
              Junior Member
              • Apr 2020
              • 13

              #7
              Txs. I do understand the function of the Proxy, and the difference of Active and Passive.

              For the majority of my checks, Active is perfect, as it gathers the information and sends it back to the Server, where it is then processed accordingly.
              But for some specific items I initiated a Passive check from the server, and if this check fails, trigger specific processes.

              For a Host configured to connect direct to the Server and not via a Proxy,
              I can allocate a template with Active items, as well as a template with Passive items.
              And both will run accordingly.
              But why can I not do that when I process via a Proxy?

              If an agent can run active/passive, the proxy should also be able to do that.
              Last edited by MickeyPM; 17-07-2020, 12:32.

              Comment

              • Hamardaban
                Senior Member
                Zabbix Certified SpecialistZabbix Certified Professional
                • May 2019
                • 2713

                #8
                You can use both passive and active elements in the agent configuration at the same time, regardless of the proxy type. The agent will interact with the proxy exactly as it does with the server, and the agent doesn't care how the proxy interacts with the server.

                Comment

                • parrot
                  Junior Member
                  • Dec 2020
                  • 1

                  #9
                  Zabbix proxies can operate in two different modes, active and passive. The default setup is the active proxy. In this setup, the proxy initiates all connections to the Zabbix server, the one used to retrieve configuration information on monitored objects, and the connection to send measurements back to the server
                  myaarpmedicare

                  Comment

                  Working...