Ad Widget

Collapse

160 000+ and counting Auto Registration emails

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • syndeysider
    Senior Member
    • Oct 2013
    • 115

    #1

    160 000+ and counting Auto Registration emails

    Hi

    Zabbix 2.0.8
    MySQL 5.5.31
    Linux 64bit

    Client Configurations file
    Server=zabbix-proxy,zabbix-server
    ServerActive=zabbix-proxy,zabbix-server

    I need both servers to be in the "allowed" list for both Passive and Active checks as our VMWare environment is split across multiplesites and VMWare DRS moves servers around, when this happens I have the client agent restarted after pointing to its "local" server which is one of two above.

    I have two auto registration rules, one for windows servers, one for linux servers which Add Host, Assign Templates, Send Messages etc.

    With zabbix client in this configuration (not sure if i've completely missed the mark) my client autoregistration loops... endlessly... 160k and counting in messages. I can see events continuously firing in alerts table....

    Am i incorrectly setting Server and ServerActive in the client configuration files?
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    I experienced the same issue as you when I tried that. So now I have it set to just the proxy in ServerActive= field.

    I also have a ticket open on this to see if there is a solution.

    You can also read a blog post on how it is supposed to work here:
    Zabbix agent currently supports only one server in active mode – the first host from the Server configuration parameter is used. While for most users that is enough, some installations require a more advanced approach with the agent being able to report to multiple servers in the active mode. Current situation Currently, Zabbix active agent […]


    In the meantime, I suppose you could disable auto-registration e-mails to give you some relief from the e-mail flood.

    Comment

    • zalex_ua
      Senior Member
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Oct 2009
      • 1286

      #3
      It's a bit uncommon approach to use thing like "ServerActive=zabbix-proxy,zabbix-server" because it was no designed to use it in such a way.

      In the ServerActive we suppose to use DIFFERENT unrelated servers/proxies.
      See please https://support.zabbix.com/browse/ZBXNEXT-1267

      I believe in zabbix 2.2.0 the "ServerActive=zabbix-proxy,zabbix-server" will work differently than in 2.0.*
      I guess there should not be loop events/alerts. Supposedly two hosts should be registered, one - monitored by server, second one - monitored by proxy.

      Who wants to retest with 2.2.0 ?

      Comment

      • tchjts1
        Senior Member
        • May 2008
        • 1605

        #4
        Originally posted by zalex_ua
        Who wants to retest with 2.2.0 ?
        I have a 2.2.0 test environment set up that I will give it a try on in the next few days.

        But I think the OP and I had the same idea in mind with having ServerActive=Zabbix Server,Proxy Server setup.

        If the Proxy goes down, you could simply re-point the hosts that were assigned to the proxy, back to the Zabbix server without losing much data or time or having to mess with the zabbix_agentd.conf files.

        Comment

        • syndeysider
          Senior Member
          • Oct 2013
          • 115

          #5
          Many thanks

          Thanks for the feedback.

          I really appreciate that this is maybe not how it was designed and pending the tests done by tchjts1, I'll maybe roll forward my upgrade to 2.2 depending on the outcome. Just a bit worried as it seems there are a few issues with the upgrade for some people (forums).

          I realise now that redundancy is not a feature as yet and hopefully 2.2 see's a few changes to help me out here.

          Comment

          • tchjts1
            Senior Member
            • May 2008
            • 1605

            #6
            It will be awhile until I can test it. I don't have a 2.2.0 proxy built out yet.

            Since it isn't designed to function as I was hoping, and probably won't work that way, I am not rushing to test it.

            syndeysider - There is another unwanted effect of doing it the way we had it, that maybe you haven't noticed yet. If you check the Zabbix server that a monitored host is assigned to in the GUI under Configuration - Hosts, you will see that it continually flip-flops what server the host is reporting to.

            Comment

            • syndeysider
              Senior Member
              • Oct 2013
              • 115

              #7
              Good spot

              Yeh, thanks for that, just noticed that this morning.

              I've gone and written a windows and linux script to update the effected agent configs to get them reverted to a single activeserver for now. I guess i'll have to, at some point, implement HA for the proxy and server to get it failing over on the HA side as opposed to the Zabbix side.

              Thanks again for your help on this one.

              Comment

              • zalex_ua
                Senior Member
                Zabbix Certified Trainer
                Zabbix Certified SpecialistZabbix Certified Professional
                • Oct 2009
                • 1286

                #8
                Originally posted by zalex_ua
                I believe in zabbix 2.2.0 the "ServerActive=zabbix-proxy,zabbix-server" will work differently than in 2.0.*
                I guess there should not be loop events/alerts. Supposedly two hosts should be registered, one - monitored by server, second one - monitored by proxy.
                I probably was wrong that supposedly two hosts will be created.
                Zabbix does not allow to create two hosts with identical technical names.

                Probably will be created only one host.
                And as host's IP is the same .... I don't know how it will go
                Need to retest indeed.
                Last edited by zalex_ua; 21-11-2013, 17:44.

                Comment

                • syndeysider
                  Senior Member
                  • Oct 2013
                  • 115

                  #9
                  Active Query?

                  So here's a question.

                  With the configuration setup with my Proxy as the ActiveServer= and Proxy setup as Server=

                  How am I able to actively run administration->scripts against these servers e.g.

                  I have a list of command like sar, netstat etc. that are bundled into Administration->Scripts. These allow my administrators to run "checks" against a server that has an event e.g. Network connections > 100 Trigger and they can run "netstat -an" via Scripts.

                  The problem with above : Received empty response from Zabbix Agent at [192.168.93.63]. Assuming that agent dropped connection because of access permissions

                  So.... Scripts is useless in a Server/Proxy Setup as the proxy is the only assigned "allowed" host to run scripts?

                  Comment

                  • zalex_ua
                    Senior Member
                    Zabbix Certified Trainer
                    Zabbix Certified SpecialistZabbix Certified Professional
                    • Oct 2009
                    • 1286

                    #10
                    Originally posted by syndeysider
                    So here's a question.

                    With the configuration setup with my Proxy as the ActiveServer= and Proxy setup as Server=

                    How am I able to actively run administration->scripts against these servers e.g.

                    I have a list of command like sar, netstat etc. that are bundled into Administration->Scripts. These allow my administrators to run "checks" against a server that has an event e.g. Network connections > 100 Trigger and they can run "netstat -an" via Scripts.

                    The problem with above : Received empty response from Zabbix Agent at [192.168.93.63]. Assuming that agent dropped connection because of access permissions

                    So.... Scripts is useless in a Server/Proxy Setup as the proxy is the only assigned "allowed" host to run scripts?
                    Use zabbix Jira to search !
                    See https://support.zabbix.com/browse/ZBXNEXT-936

                    Comment

                    Working...