Open labanana34 opened 2 years ago
I am experiencing the same issue with Zabbix 6.0.10.
Module opens /proc/mounts
file and looks for lines containing cpuset cgroup
string:
https://github.com/monitoringartist/zabbix-docker-monitoring/blob/f4c80ba11ef00a02f9b3b40fbca10522d9a92e38/src/modules/zabbix_module_docker/zabbix_module_docker.c#L678
For the record, previously it used to be memory cgroup
:
https://github.com/monitoringartist/zabbix-docker-monitoring/blob/c53765be14eb6b41f820da325879d0c23e46fde0/src/modules/zabbix_module_docker/zabbix_module_docker.c#L678
and /cpuacct cgroup
:
https://github.com/monitoringartist/zabbix-docker-monitoring/blob/ae6b1f52544f978772b2db5f74febb17b32ee65a/src/modules/zabbix_module_docker/zabbix_module_docker.c#L584
On my Ubuntu 22.04 there is only one line mentioning cgroups
:
cgroup2 /sys/fs/cgroup cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot 0 0
and it does not match any of the conditions above.
So, @labanana34, @tbjornli, you can check contents of /proc/mounts
on your systems and hack the condition accordingly. But I guess we will need the wisdom of @jangaraj to properly fix the issue without breaking existing setups.
Hey there !
For the record, I'm still willing to make the module work on Ubuntu 22.04 But I have no idea about you means with: "you can check contents of /proc/mounts on your systems and hack the condition accordingly" I'll try to take a look.
By the way, is there any reason why the module is not available on Ubuntu 22.04 ?
Best regard.
Hello Jan Garaj,
If I understand correctly you are the one who's running this place :) May I have your help ?
I'm trying to make your module work on Ubuntu 22.04, so I compile the module following your docs:
I made my test with zabbix agent 4.0.40 and 5.0.17 But I end up with the same error.
Here the full log of zabbix agent startup:
And when I try to get some value :
I do have container running:
I look in this two issues but no luck: https://github.com/monitoringartist/zabbix-docker-monitoring/issues/2 https://github.com/monitoringartist/zabbix-docker-monitoring/issues/117
Do you have some lead for me ? Does your module compatible with Ubuntu 22.04 ?
Best regards