Installed Netdata Container 1:33:1 - missing qemu/cgroups

I recently installed netdata on KVM host using netdata image version 1.33.1… Cannot see any VM guest data in charts. I checked cgroup:plugins and it is enabled… tried to search through community but could not find anything

[plugins]
cgroups = yes

Seems this may be the problem… but not sure how to get the date command of alpine linux.

bash-5.1# ./cgroup-name.sh
./cgroup-name.sh: line 20: /usr/bin/date: No such file or directory
: cgroup-name.sh: FATAL: called without a cgroup name. Nothing to do.
bash-5.1#

Is there a container with Redhat image

Hi there,

Could you share some more info?

  1. access the netdata conf: <node_ip>:19999/netdata.conf and share the [plugin:cgroups] config
  2. kernel version uname -r
  3. Host OS distr/version
  4. ( it might be useful later) Selinux status on the host: /etc/selinux/config
  5. Install method (from what I see you are trying to monitor you host with netdata via a docker container). Have you create the container with the exact command in our docs? Install Netdata with Docker | Learn Netdata

Tasos.

Thanks and appreciate you looking into this…

[plugin:cgroups]
# cgroups plugin resource charts = yes
# update every = 1
# check for new cgroups every = 10
# use unified cgroups = auto
# containers priority = 40000
# enable cpuacct stat (total CPU) = auto
# enable cpuacct usage (per core CPU) = auto
# enable memory = auto
# enable detailed memory = auto
# enable memory limits fail count = auto
# enable swap memory = auto
# enable blkio bandwidth = auto
# enable blkio operations = auto
# enable blkio throttle bandwidth = auto
# enable blkio throttle operations = auto
# enable blkio queued operations = auto
# enable blkio merged operations = auto
# enable cpu pressure = auto
# enable io some pressure = auto
# enable io full pressure = auto
# enable memory some pressure = auto
# enable memory full pressure = auto
# recheck zero blkio every iterations = 10
# recheck zero memory failcnt every iterations = 10
# recheck zero detailed memory every iterations = 10
# enable systemd services = yes
# enable systemd services detailed memory = no
# report used memory = yes
# path to /sys/fs/cgroup/cpuacct = /host/host/sys/fs/cgroup/cpu,cpuacct
# path to /sys/fs/cgroup/cpuset = /host/host/sys/fs/cgroup/cpuset
# path to /sys/fs/cgroup/blkio = /host/host/sys/fs/cgroup/blkio
# path to /sys/fs/cgroup/memory = /host/host/sys/fs/cgroup/memory
# path to /sys/fs/cgroup/devices = /host/host/sys/fs/cgroup/devices
# max cgroups to allow = 1000
# max cgroups depth to monitor = 0
# enable new cgroups detected at run time = yes
# enable by default cgroups matching = !/init.scope !/system.slice/run-.scope .scope /machine.slice/.service /kubepods/pod*/* /kubepods//pod/* !/kubepods* !/vcpu !/emulator !.mount !.partition !.service !.socket !.slice !.swap !.user !/ !/docker !/libvirt !/lxc !/lxc// !/lxc.monitor* !/lxc.pivot !/lxc.payload !/machine !/qemu !/system !/systemd !/user *
# search for cgroups in subpaths matching = !/init.scope !-qemu !.libvirt-qemu !/init.scope !/system !/systemd !/user !/user.slice !/lxc//* !/lxc.monitor !/lxc.payload// !/lxc.payload.* *
# script to get cgroup names = /usr/libexec/netdata/plugins.d/cgroup-name.sh
# script to get cgroup network interfaces = /usr/libexec/netdata/plugins.d/cgroup-network
# run script to rename cgroups matching = !/ !.mount !.socket !.partition /machine.slice/.service !.service !.slice !.swap !.user !init.scope !.scope/vcpu !.scope/emulator .scope docker lxc qemu kubepods .libvirt-qemu *
# cgroups to match as systemd services = !/system.slice/
/
.service /system.slice/
.service

From the host - [root@adckvm644a ~]# uname -r
4.18.0-193.60.2.el8_2.x86_64

From the container -
bash-5.1# uname -a
Linux xxxkvmxxxa 4.18.0-193.60.2.el8_2.x86_64 #1 SMP Wed Jul 7 07:08:14 EDT 2021 x86_64 Linux

[root@adckvm644a ~]# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.2 (Ootpa)

[root@adckvm644a ~]# cat /etc/selinux/config
SELINUX=enforcing
SELINUXTYPE=targeted

Install Method – pulled the image from docker hub.

Will check your docs… but i believe the docker hub image has date command missing, which is causing cgroup script to fail.

[root@adckvm644a ~]# grep -w date r
2022-06-01 18:54:19: charts.d: WARNING: main: command ‘date’ is not found in /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin.
2022-06-01 18:54:29: charts.d: WARNING: main: command ‘date’ is not found in /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin.
2022-06-01 18:54:40: charts.d: WARNING: main: command ‘date’ is not found in /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin.
2022-06-01 18:54:50: charts.d: WARNING: main: command ‘date’ is not found in /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin.
2022-06-01 18:55:00: charts.d: WARNING: main: command ‘date’ is not found in /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin.
2022-06-01 18:55:11: charts.d: WARNING: main: command ‘date’ is not found in /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin.
2022-06-01 18:55:21: charts.d: WARNING: main: command ‘date’ is not found in /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin.
2022-06-01 18:55:31: charts.d: WARNING: main: command ‘date’ is not found in /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin.
2022-06-01 18:55:42: charts.d: WARNING: main: command ‘date’ is not found in /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin.
2022-06-01 18:55:52: charts.d: WARNING: main: command ‘date’ is not found in /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin.
2022-06-01 18:56:02: charts.d: WARNING: main: command ‘date’ is not found in /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin.

Install Method – pulled the image from docker hub.

Will check your docs… but i believe the docker hub image has date command missing, which is causing cgroup script to fail.

So you just ran docker run netdata/netdata?

This won’t work as expected . Please remove the container and create it with this Install Netdata with Docker | Learn Netdata command

I did follow the process, but it seems the image is not compatible on redhat… I used the whole command line as mentioned in Netdata docs. just curious if you have a working environment with kvm guests on redhat running with this image.