Skip to content

ZBX_NOTSUPPORTED: Cannot open cpuacct.stat file on AWS ECS #85

@ThomasVdBerge

Description

@ThomasVdBerge

Having an issue whit monitoring of docker containers that were started by Amazon ECS.
I am using the dockbix xxl agent

When I check the location of the file it does indeed not exist (the folder). However, the docker container is running when checked via docker ps.

Docker containers that were started on the same server, but manually (so not with ECS), are being monitored fine

This is the error that is being thrown by the agent

    15:20180102:151403.523 Docker's socket response: {"Id":"53f8b5a76026c0484948dbb720991f771106d32adca9eb75a88ce5d3afa78f0e","Created":"2 (and a lot more info....)
    15:20180102:151403.523 Item [Id] found in the received JSON object: 53f8b5a76026c0484948dbb720991f771106d32adca9eb75a88ce5d3afa78f0e
    15:20180102:151403.523 zbx_module_docker_inspect_exec OK: 53f8b5a76026c0484948dbb720991f771106d32adca9eb75a88ce5d3afa78f0e
    15:20180102:151403.523 Metric source file: /rootfs/cgroup/cpuacct/docker/53f8b5a76026c0484948dbb720991f771106d32adca9eb75a88ce5d3afa78f0e/cpuacct.stat
    15:20180102:151403.523 Cannot open metric file: '/rootfs/cgroup/cpuacct/docker/53f8b5a76026c0484948dbb720991f771106d32adca9eb75a88ce5d3afa78f0e/cpuacct.stat', container doesn't run
    15:20180102:151403.523 Sending back [0]```

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions