monitoringartist / dockbix-agent-xxl

:whale: Dockerized Zabbix agent with Docker metrics and host metrics support for CoreOS, RHEL, CentOS, Ubuntu, Debian, Fedora, Boot2docker, Photon OS, Amazon Linux, ...
https://hub.docker.com/r/monitoringartist/dockbix-agent-xxl-limited/
Other
182 stars 54 forks source link

Zabbix / DockAgent issue #55

Closed arturslogins closed 4 years ago

arturslogins commented 4 years ago

Hello,

I came across with two problems:

  1. In agent container logs i see failed process, and i can't figure out, what's the problem it is ..

    61:20200714:140428.312 execl() failed for [who | wc -l]: [2] No such file or directory 25:20200714:140428.312 Process exited with code: 1.

  2. In Zabbix console, importing template, template status is showing, that it's not supported And info message is "Unsupported item key"

image Zabbix version 4.2

jangaraj commented 4 years ago

execl() failed for [who | wc -l] - You are importing/assigning template, which is not provided by this project. I guess you are using official Zabbix Agent template, where who | wc -l is used. Of course commands wc, who are not available in the dockbix-agent-xxl image, so they are failing.

Unsupported item key - check your dockbix-agent-xxl container logs, pls to see why docker.discovery is unsupported.

arturslogins commented 4 years ago

Soled problem 1

But get another 2 problems

` 18:20200714:151319.527 Cannot find the [Id] item in the received JSON object

18:20200714:151319.527 Cannot open metric file: '/rootfs/sys/fs/cgroup/cpu,cpuacct/docker//dockbix-agent-xxl_dockbix-agent-xxl.1.pfwveqazjr8rzmqmhugon9ik5/cpuacct.stat'

25:20200714:151333.035 Cannot find the [Id] item in the received JSON object

25:20200714:151333.035 Cannot open metric file: '/rootfs/sys/fs/cgroup/memory/docker//dockbix-agent-xxl_dockbix-agent-xxl.1.pfwveqazjr8rzmqmhugon9ik5/memory.stat'

20:20200714:151333.137 Cannot find the [Id] item in the received JSON object

`

jangaraj commented 4 years ago

Please check the logs from the start. If discovery is not working correctly (maybe because you didn't read readme about permissions - I don't know), then all items will be requesting incorrect Id.

https://github.com/monitoringartist/dockbix-agent-xxl#support

arturslogins commented 4 years ago

But these logs to docker container comes from Zabbix? What you mean about permissions?

arturslogins commented 4 years ago

i would like to know, why i get this message in my logfile now:

dockbix-agent-xxl_1 | 24:20200715:092546.471 Sending back [ZBX_NOTSUPPORTED: Cannot find a line with requested metric in memory.stat file] dockbix-agent-xxl_1 | 24:20200715:092638.297 Sending back [ZBX_NOTSUPPORTED: Cannot find information for this network interface in /proc/net/dev.] dockbix-agent-xxl_1 | 19:20200715:092639.489 Sending back [ZBX_NOTSUPPORTED: Cannot find information for this network interface in /proc/net/dev.]

jangaraj commented 4 years ago

Sorry, I'm closing this issue, because you are not providing correct issue description.

I recommend to read https://stackoverflow.com/help/how-to-ask

There can be milions reasons why you have problem, but you did not provide reproducible example, so you can't get answer and I'm not going to iterate all millions possible issues, which you may have.