Ad Widget

Collapse

docker.data_usage returns ZBX_NOTSUPPORTED: Cannot fetch data.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TamarNir
    Junior Member
    • Aug 2020
    • 2

    #1

    docker.data_usage returns ZBX_NOTSUPPORTED: Cannot fetch data.

    I configured zabbix agent2 with monitroing docker containers (and using the template app docker).

    I get results for zabbix_get -s 127.0.0.1 -k docker.info:
    {"Id":"3BU4:I7DQ:F3ZH:WZ4J:CAJP:7FJR:7UUW:4VIW: KSE D:PZNQ:MLAS:R2H2","Containers":48,"ContainersRunni ng":34,"ContainersPaused":0,"ContainersStopped": 14 ,"Images":390,"Driver":"overlay2","MemoryLimit" :tr ue,"SwapLimit":false,"KernelMemory":true,"KernelM e moryTCP":true,"CpuCfsPeriod":true,"CpuCfsQuota":tr ue,"CPUShares":true,"CPUSet":true,"PidsLimit":tru e ,"IPv4Forwarding":true,"BridgeNfIptables":true, "Br idgeNfIP6tables":true,"Debug":false,"NFd":299,"Oom KillDisable":true,"NGoroutines":252,"LoggingDriver ":"json-file","CgroupDriver":"cgroupfs","NEventsListener": 0,"KernelVersion":"4.19.0-6-amd64","OperatingSystem":"Debian GNU/Linux 10 (buster)","OSVersion":"","OSType":"linux","Archite cture":"x86_64","IndexServerAddress":"https://index.docker.io/v1/","NCPU":12,"MemTotal":33685606400,"DockerRoot Dir" :"/var/lib/docker","Name":"octopus-lab","ExperimentalBuild":false,"ServerVersion":"1 9 .03.5","ClusterStore":"","ClusterAdvertise":"","De faultRuntime":"runc","LiveRestoreEnabled":false,"I nitBinary":"docker-init","SecurityOptions":["name=apparmor","name=seccomp,profile=default"],"Warnings":["WARNING: No swap limit support"]}

    But this for docker.data_usage:
    # zabbix_get -s 127.0.0.1 -k docker.data_usage
    ZBX_NOTSUPPORTED: Cannot fetch data.

    I configured the zabbix to be a part of the docker group:
    # id zabbix
    uid=107(zabbix) gid=114(zabbix) groups=114(zabbix),998(docker)

    and I un-hashed this line in zabbix_agent2.conf:
    Plugins.Docker.Endpoint=unix:///var/run/docker.sock

    These are the files persmissions:
    # ls -l //var/run/docker.sock
    srw-rw---- 1 root docker 0 Oct 4 11:39 //var/run/docker.sock

    Anything else I should do?

    Thanks




Working...