Search code examples
zabbix

How to increase maximum dependent item in Zabbix?


I get this error: Cannot create item "kube.pod.containers.limits.cpu[***/###]": maximum dependent item count reached. I think this parameter is set to 29999 in default. How can i increase this parameter?


Solution

  • This is hardcoded in the source: release/6.0 zabbix_server/lld/lld_item.c

    typedef zbx_lld_item_full_t zbx_lld_item_t;
    
      #define ZBX_DEPENDENT_ITEM_MAX_COUNT    29999
      #define ZBX_DEPENDENT_ITEM_MAX_LEVELS   3
    

    So changing this requires a recompile and some testing. The limits sometimes have a reason.