Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-8830

LXC containers report host load avg in zabbix-agent2

XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • 6.4.8
    • Agent (G)
    • None
    • Linux 6.2.16-14
      Debian 12 Bookworm
      lxcfs 5.0.3

      LXC supports container metrics within the container, so that the container has independent load avg metrics. This was introduced July 2019 in LXCFS 3.1.2, see https://discuss.linuxcontainers.org/t/lxcfs-3-1-2-has-been-released/5321

      On my LXC systems, /proc/loadavg represents expected load for the processes running in each container, whilst the hosts, with many VMs, have an expected higher load as they are handling all systems.

      zabbix-agent2, reports the host load on each LXC. I put some examples at https://www.zabbix.com/forum/zabbix-troubleshooting-and-problems/473153-proxmox-8-lxc-container-running-debian-12-zabbix-reports-load-average-of-hostcp -a /

       

      LXC#> uptime; cat /proc/loadavg
       11:56:31 up 11:03,  2 users,  load average: 0.08, 0.04, 0.01
      0.08 0.04 0.01 0/681 4114539
      ZBX#> zabbix_get -s lxc -k system.cpu.load
      3.521484
      

       

      Note: Tested same issue on zabbix-agentd

            vso Vladislavs Sokurenko
            stalks Steve Allison
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: