cpu load for LXC container
Right now, the checkmk agent disables the cpu load check for lxc container. However, there's a well tested lxd/lxc option to enable lxc load virtualization.
snap set lxd lxcfs.loadavg=true
I would love to see the cpu load check not being disabled. For environments where the lxd option is disabled, it's always possible to add a custom rule to disable the check.
Code from the agent:
if [ -z "${IS_DOCKERIZED}" ] && [ -z "${IS_LXC_CONTAINER}" ]; then
echo '<<<cpu>>>'
echo "$(cat /proc/loadavg) ${NUM_CPUS}"
Background: we are running a mixed openvz/lxc environment, but only on openvz the cpu load is enabled.