Hi folks!
On my CMK RAW Installation (2.0.0p7), I’m monitoring multiple Docker nodes, 2 of them are Debian 11, Kernel 5.10, Docker 20.10.7, Python 3.9, python3-docker 4.1.0. The agent Plugin is delivering more data and other keys in the JSON dict, than on the older Docker nodes.
This leads to the following issue on container level running on the newer machine:
The mk_docker agent on Debian 11 produces following output:
<<<docker_container_mem:sep(0):cached(1626459022,90)>>>
@docker_version_info{"PluginVersion": "0.1", "DockerPyVersion": "4.1.0", "ApiVersion": "1.41"}
{"usage": 164048896, "stats": {"active_anon": 0, "active_file": 10813440, "anon": 142491648, "anon_thp": 0, "file": 17977344, "file_dirty": 0, "file_mapped": 15273984, "file_writeback": 0, "inactive_anon": 144404480, "inactive_file": 7299072, "kernel_stack": 393216, "pgactivate": 3168, "pgdeactivate": 0, "pgfault": 58740, "pglazyfree": 0, "pglazyfreed": 0, "pgmajfault": 5643, "pgrefill": 0, "pgscan": 0, "pgsteal": 0, "shmem": 0, "slab": 790440, "slab_reclaimable": 525872, "slab_unreclaimable": 264568, "sock": 0, "thp_collapse_alloc": 0, "thp_fault_alloc": 0, "unevictable": 0, "workingset_activate": 0, "workingset_nodereclaim": 0, "workingset_refault": 0}, "limit": 16786518016}
Example of Agent output of a correctly working Host (Debian 10):
<<<docker_container_mem:sep(0):cached(1626459061,90)>>>
@docker_version_info{"PluginVersion": "0.1", "DockerPyVersion": "3.4.1", "ApiVersion": "1.41"}
{"usage": 230289408, "max_usage": 232685568, "stats": {"active_anon": 185704448, "active_file": 8626176, "cache": 15503360, "dirty": 0, "hierarchical_memory_limit": 9223372036854771712, "hierarchical_memsw_limit": 0, "inactive_anon": 0, "inactive_file": 6766592, "mapped_file": 12435456, "pgfault": 934560, "pgmajfault": 297, "pgpgin": 864765, "pgpgout": 815662, "rss": 185839616, "rss_huge": 0, "total_active_anon": 185704448, "total_active_file": 8626176, "total_cache": 15503360, "total_dirty": 0, "total_inactive_anon": 0, "total_inactive_file": 6766592, "total_mapped_file": 12435456, "total_pgfault": 934560, "total_pgmajfault": 297, "total_pgpgin": 864765, "total_pgpgout": 815662, "total_rss": 185839616, "total_rss_huge": 0, "total_unevictable": 0, "total_writeback": 0, "unevictable": 0, "writeback": 0}, "limit": 16821669888}
I already tested multiple versions of the docker python api (3.7.3,4.1.0 and 5.0.0), but this does not affect the output of the mk_docker plugin.
Do you have any ideas how to fix this issue?