Ad Widget

Collapse

Zabbix proxy with active agents?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bbrendon
    Senior Member
    • Sep 2005
    • 870

    #1

    Zabbix proxy with active agents?

    It seems zabbix doesn't support active agents with proxy servers. Is this correct? If so, when will it be supported?

    If I'm incorrect, what am I doing wrong?

    In the proxy server log:
    Code:
     10047:20081223:190005 Send list of active checks to [172.x.x.36] failed: host [hostWithActiveAgent] not found
    Unofficial Zabbix Expert
    Blog, Corporate Site
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Originally posted by bbrendon
    It seems zabbix doesn't support active agents with proxy servers. Is this correct? If so, when will it be supported?
    Proxy does support items of all types including active items, SNMP, external (simple) checks, everything. Check if your host is defined and configured to be monitored by the proxy.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • bbrendon
      Senior Member
      • Sep 2005
      • 870

      #3
      Ah ha!
      Found the problem. I needed to restart the proxy once I added the agent to the proxy in the GUI.
      Unofficial Zabbix Expert
      Blog, Corporate Site

      Comment

      • Alexei
        Founder, CEO
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2004
        • 5654

        #4
        Originally posted by bbrendon
        Found the problem. I needed to restart the proxy once I added the agent to the proxy in the GUI.
        You don't have to restart anything. ZABBIX Proxy automatically refreshes configuration every one hour by default, the period can be changed.
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • bbrendon
          Senior Member
          • Sep 2005
          • 870

          #5
          Hmmm. Can you make this dynamic? So if the proxy gets a new agent request then it goes and fetches its configuration?

          I would hate to set ConfigFrequency=60.

          Basically, I see the problem when you add a new agent to be monitored, its not going to work AND will be marked as down for an hour until the proxy grabs the new data. I also don't see the efficiency in setting ConfigFrequency=60.

          Put that on the wishlist
          Unofficial Zabbix Expert
          Blog, Corporate Site

          Comment

          • Alexei
            Founder, CEO
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • Sep 2004
            • 5654

            #6
            Originally posted by bbrendon
            Hmmm. Can you make this dynamic? So if the proxy gets a new agent request then it goes and fetches its configuration?
            Well, what happens if the agent is not known to ZABBIX? It would trigger configuration refresh forever...
            Alexei Vladishev
            Creator of Zabbix, Product manager
            New York | Tokyo | Riga
            My Twitter

            Comment

            • bbrendon
              Senior Member
              • Sep 2005
              • 870

              #7
              I have an answer for everything...

              Just ignore the agent if the proxy doesn't find a reference in 3 tries.
              Unofficial Zabbix Expert
              Blog, Corporate Site

              Comment

              • exkg
                Senior Member
                Zabbix Certified Trainer
                Zabbix Certified Specialist
                • Mar 2007
                • 718

                #8
                It's ok but ....

                Alexei,


                Actually (I undesrtood that) zabbix_agentd ask for active itens to first server in 'Server" (directive in zabix_agentd.conf).

                If we change proxy to monitoried hosts we need change 'servers order' in zabbix_agentd.conf to get active checks working.

                Is it a feature or a bug ?



                []s,
                Luciano
                --
                Luciano Alves
                www.zabbix.com
                Brazil | México | Argentina | Colômbia | Chile
                Zabbix Performance Tuning

                Comment

                • richlv
                  Senior Member
                  Zabbix Certified Trainer
                  Zabbix Certified SpecialistZabbix Certified Professional
                  • Oct 2005
                  • 3112

                  #9
                  zabbix agent always asks first server in the option "Server" for active item list.
                  thus if you want for the agent to ask & report to a proxy, proxy ip must be the forst one specified in that parameter.

                  edit : forgot to mention that it "works as expected", thus in your terminology it's a feature
                  Last edited by richlv; 20-08-2009, 18:56.
                  Zabbix 3.0 Network Monitoring book

                  Comment

                  • exkg
                    Senior Member
                    Zabbix Certified Trainer
                    Zabbix Certified Specialist
                    • Mar 2007
                    • 718

                    #10
                    OK but ...

                    If we have two or more proxies and want switch hosts between this proxies ... we need change 'zabbix_agentd.conf' too. It's expected ? Sounds bad if zabbix_agent ask for all 'servers' about active items ?



                    []s,
                    Luciano
                    --
                    Luciano Alves
                    www.zabbix.com
                    Brazil | México | Argentina | Colômbia | Chile
                    Zabbix Performance Tuning

                    Comment

                    • richlv
                      Senior Member
                      Zabbix Certified Trainer
                      Zabbix Certified SpecialistZabbix Certified Professional
                      • Oct 2005
                      • 3112

                      #11
                      as i noted, it should ask only the first server (and only if active checks are enabled, of course).
                      Zabbix 3.0 Network Monitoring book

                      Comment

                      • NOB
                        Senior Member
                        Zabbix Certified Specialist
                        • Mar 2007
                        • 469

                        #12
                        Originally posted by exkg
                        OK but ...

                        If we have two or more proxies and want switch hosts between this proxies ... we need change 'zabbix_agentd.conf' too. It's expected ? Sounds bad if zabbix_agent ask for all 'servers' about active items ?



                        []s,
                        Luciano
                        Just use virtual IPs and you're all set.

                        And you need to change the config just for the active checks.

                        If the agents are configured right they'll allow access from all
                        zabbix servers (for passive checks).
                        Just put the real IP addresses of your proxies
                        after the first one in the same text line of zabbix_agentd.conf.

                        Edit: Don't change the implementation. It's OK for now.
                        What would be an idea is to use broadcasts to find the zabbix server.

                        HTH,

                        Norbert.
                        Last edited by NOB; 13-10-2009, 13:22. Reason: Add the proposal to use broadcast to find a ZABBIX server in the network.

                        Comment

                        Working...