Ad Widget

Collapse

Proxy data sending after network outage

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • heaje
    Senior Member
    Zabbix Certified Specialist
    • Sep 2009
    • 325

    #1

    Proxy data sending after network outage

    I've been experiencing an interesting issue lately whenever a network outage between our Zabbix proxies and the Zabbix server. When an outage occurs, the proxy caches the historical data like it is supposed to and then starts sending that data to the server as intended, however, here's where the problem comes in....

    We have many checks that use the "nodata" function for triggers. For instance, because Proxies do not support the internal check to see if a Zabbix agent is up, we check to see if no data has been received from a Zabbix agent for over 5 minutes. If no data has been received, then a trigger is set off. Here's where the problem comes in.

    Let's say that there is a network outage between the server and proxy for 20+ minutes. When the connections are re-established, the proxy starts sending data to the Server. From the best I've been able to ascertain, it is only able to send a very finite amount of data every second (I'm not sure which daemon process controls sending data to the server). As a result of that, it takes a long while for the Proxy to "catch up" on the data it is sending. Now, remember those triggers that use the "nodata" function? It appears that while the proxy is sending data to the server, it sends the OLDEST data first. Because of that it takes a long while (read 10+ minutes) for the proxy to catch back up enough for recent values to appear on the server. During that entire time, the various "nodata" triggers all remain in the PROBLEM state because the old data comes in first.

    I hope that makes sense to someone. My real questions here are - How can I increase the rate at which the poller sends data and is there any way to make the Proxy send the NEWEST data first and simply catch up on the older data in the background?

    Please keep in mind that the Zabbix Proxy in question is never overloaded. CPU remains low and so does disk I/O. The proxy uses SQLite for its database (and it works totally fine except in the instance mentioned above).
  • heaje
    Senior Member
    Zabbix Certified Specialist
    • Sep 2009
    • 325

    #2
    I had forgotten that the StartProxyPollers configuration variable exists in zabbix_server.conf. We use passive proxies in our setup, so I'm increasing this number from 25 to 100. We'll see if that helps the next time we have a network hiccup like that.

    Comment

    • jamesh
      Junior Member
      • Mar 2008
      • 22

      #3
      I have the same problem using an active proxy. I increased the nodata(sec) value to consider data for a period equal to or greater than the period that's configured for ProxyOfflineBuffer in the proxy config. I still get an "agent unreachable" alert (uses nodata) for each of my proxied hosts when the proxy reconnects but they no longer flap so it's an improvement.

      The problem is described in https://support.zabbix.com/browse/ZBX-3541 though I'm running 2.0.9 and it isn't fixed.

      Comment

      • jhenry
        Junior Member
        • Jul 2013
        • 11

        #4
        I can't offer much help, but we experienced this too when we upgraded to Zabbix 2.2.1 from 2.0. Our database is pretty large so it took quite a while to update. When it finally finished, the dashboard totally lit up with "nodata" alarms for a long time. Made it very hard to see if there were any actual issues with all the noise.

        One suggestion: make sure to monitor all of the Zabbix internal items, both on the master and on proxies. For us the magic one was "zabbix[process,poller,avg,busy]" on the proxies. After upgrading for some reason, our proxy pollers were always pegged at 100% busy where previously they had been fine. We had to dramatically increase the StartPollers option on the proxy to get that down to 80% busy. Once we did that, the queues drained almost instantly and all the nodata alerts cleared.

        Zabbix should come with a template for proxies, but if it doesn't, it's not hard to add all the internal checks yourself.

        Comment

        • Starko
          Member
          Zabbix Certified SpecialistZabbix Certified Professional
          • Aug 2012
          • 93

          #5
          But there is a template for the Proxy for Zabbix 2.2?
          Join the friendly and open Zabbix community on our forums and social media platforms.

          Comment

          Working...