LXC CPU Issue

liberodark

Active Member
Apr 26, 2021
113
25
33
Hi,

With last update on PVE 7.4 & PVE 8.0 Beta have issue on All CT Debian 10 / Alma 9.2 / Alma 8.8.
But same OS with same version in VM is working.

My issue is with a software check_cpu for Nagios Suppervision
Actually some CT is return a bad result.

Example of bad result :
Bash:
Floating point exception
KO
Example of correct result :
Bash:
CPU OK - Used = 0.00% |'Core 0'=0.00%;
OK

Have try with :
pve-container 4.4-4
pve-container 4.4-5
pve-container 5.0.1


Have try with last Kernel : 5.15.107-2-pve & 6.2.16-2-pve

Other test is to compare output of /proc/stat :
Bash:
cat /proc/stat
https://paste.yunohost.org/ekizalaxeb.nginx (Alma 9.2 LXC)
https://paste.yunohost.org/jedoxewora.nginx (Alma 8.8 LXC)
https://paste.yunohost.org/qotemuqaba.nginx (Alma 8.8 VM)

Steps to Reproduce :

Install Dependency :
Bash:
apt install -y wget gcc
(DEB)
Bash:
yum install -y wget gcc
(RHEL)

Download
check_cpu :
Bash:
wget https://raw.githubusercontent.com/liberodark/nrpe-installer/master/src/check_cpu.c

Compile check_cpu :
Bash:
gcc check_cpu.c -o check_cpu -std=gnu99

Run check_cpu :
Bash:
./check_cpu -w 70 -c 90


PS : Im not sure is PVE issue but have see this issue on last update only.

Best Regards
 
Last edited: