Ad Widget

Collapse

Host and ConfigurationCache management

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • db100
    Member
    • Feb 2023
    • 61

    #1

    Host and ConfigurationCache management

    2 Questions here:

    * how can one reduce used configurationCache ? if i got it right that one increases lineraly with the number of hosts (like x kB are kept in cache per every host). How can one reduce the configuration cache need WITHOUT deleting hosts ? Do disabled hosts count on the config cache, or is it possible to instruct zabbix to use less memory per host somehow ? I have tried moving some hosts onto a proxy but that did not change anything on the configCache utilization on the server
    * i am using host discovery to create all these hosts. Is it possible to change the status of some discovered host (enabled(disabled) according to some discovery variable ? --> i mean to disable it, not to delete it, i.e. the historical data needs to be preserved


    P.S. btw, while moving the hosts to the proxy i have noticed that the Active mode on the host was failing because the server was probably timing out when sending the configuration. i had to use passive mode to send the configuration to the proxy. During the test i have moved about 5000 hosts to a single proxy and the configuration transmitted in passive mode was about 55MB large.
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4806

    #2
    You got it right, it depends on amount of hosts and it does not really matter if those are monitored by proxy or server directly. It is global config. And you cannot really do much about its size (only allow more to be used.. ).

    Based on discoveryt, it shoudl be possible to just disable host. If you look under discovery actions there is operation "disable host" and you can select condiftions to it... like specific check returns specific value.

    Comment

    • db100
      Member
      • Feb 2023
      • 61

      #3
      Originally posted by cyber
      You got it right, it depends on amount of hosts and it does not really matter if those are monitored by proxy or server directly. It is global config. And you cannot really do much about its size (only allow more to be used.. ).
      ok so also disabling host would not reduce configurationCache consumption is taht right? if so, i believe the only possibility i have to reduce the cache usage is to move those hosts on a completely separate zabbix server ... or do you see alternatives ?

      Originally posted by cyber
      Based on discoveryt, it shoudl be possible to just disable host. If you look under discovery actions there is operation "disable host" and you can select condiftions to it... like specific check returns specific value.
      i dont happen to find this option, is this something available on 7.2 or 7.4 version ?

      Click image for larger version  Name:	image.png Views:	1 Size:	36.0 KB ID:	507545

      Comment

      • cyber
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2006
        • 4806

        #4
        different discoveries here.. I think I was referring to network discovery and related actions.

        But there is "create enabled/disabled" in overrides of discovery rule... TBH, I have not used it much ...
        Click image for larger version

Name:	image.png
Views:	29
Size:	29.5 KB
ID:	507547

        Comment

        • db100
          Member
          • Feb 2023
          • 61

          #5
          ok i was able to find that part to, but the naming "create enabled" suggest to me that the enabled/disabled state is applied only when the host is created and not when it exists already, or am i wrong ?

          i might be giving it a try though, thanks for sharing

          Comment

          Working...