cpu load for LXC container

1 votes

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.

Under consideration Checks&Agents Suggested by: ggripp Upvoted: 09 Jul, '24 Comments: 0

Comments: 0