Proxmox 8.0.4
LXCFS on host using the "-l" argument so that container OS shows accurate load average
Debian 12 LXC container
In Container: /proc/loadavg is ~0.00 (idle)
Zabbix Agent 2 6.4.7 reports loadavg >0, mimicking host
Example, script to pull info from host and an LXC container
So LXCFS is doing the right thing, and load average is reported correctly in the Linux container, but Zabbix is pulling loadavg from elsewhere and it reporting host.
How can I get Zabbix to report load average correctly?
LXCFS on host using the "-l" argument so that container OS shows accurate load average
Code:
# ps aux|grep lxcfs root 17265 0.1 0.0 600832 1728 ? Ssl Oct08 42:31 /usr/bin/lxcfs /var/lib/lxcfs -lā
In Container: /proc/loadavg is ~0.00 (idle)
Zabbix Agent 2 6.4.7 reports loadavg >0, mimicking host
Example, script to pull info from host and an LXC container
Code:
# echo; echo PVE HOST; ssh pve1 "uptime; cat /proc/loadavg"; docker exec -it zabbix-server zabbix_get -s 10.10.10.200 -k system.cpu.load; echo; echo LXC; ssh nm0 "uptime; cat /proc/loadavg"; docker exec -it zabbix-server zabbix_get -s 10.10.10.206 -k system.cpu.load PVE HOST 23:15:27 up 20 days, 3:09, 2 users, load average: 6.33, 6.73, 5.80 6.33 6.73 5.80 3/1106 2435565 6.333984 LXC 22:15:27 up 25 min, 0 user, load average: 0.02, 0.01, 0.00 0.02 0.01 0.00 0/41 1161721 6.333984ā
How can I get Zabbix to report load average correctly?
Comment