monitoringartist / zabbix-docker-monitoring

:whale: Docker/Kubernetes/Mesos/Marathon/Chronos/LXC/LXD/Swarm container monitoring - Docker image, Zabbix template and C module
https://hub.docker.com/r/monitoringartist/zabbix-agent-xxl-limited/
GNU General Public License v2.0
1.19k stars 268 forks source link

Issues starting agent after adding docker module #137

Closed mariuszkopowski closed 4 years ago

mariuszkopowski commented 4 years ago

Hi I have added a docker module to agent and when I try to start it I get fallowing result.

docker.discovery[<parameter 1>, <parameter 2>, <parameter 3>] [s|{"data":[{"{#FCONTAINERID}":"081d28d6a684c6f52f442698279a10806433d23e45f3603241bd36936661bfc4","{#SCONTAINERID}":"081d28d6a684","{#SYSTEM.HOSTNAME}":"lo-docker01.2000farma.local","{#HCONTAINERID}":"titanCalcServices_dev"},{"{#FCONTAINERID}":"7496736e727256ab489d2dda47f0db34b0b0dd4f8dc959be07488c50ad722d7c","{#SCONTAINERID}":"7496736e7272","{#SYSTEM.HOSTNAME}":"lo-docker01.2000farma.local","{#HCONTAINERID}":"talend-esb-dev"},{"{#FCONTAINERID}":"bef4fcb11d0ac988fa2077f2aaad04c7d8ee44521c0cf10b2e5779c1617a8b67","{#SCONTAINERID}":"bef4fcb11d0a","{#SYSTEM.HOSTNAME}":"lo-docker01.2000farma.local","{#HCONTAINERID}":"titanhealthchecker"},{"{#FCONTAINERID}":"b688ab5ac4e86229d7b9c66b9234c804a12c7c37ac493aa869467fc23436a0d7","{#SCONTAINERID}":"b688ab5ac4e8","{#SYSTEM.HOSTNAME}":"lo-docker01.2000farma.local","{#HCONTAINERID}":"TalendESB-Test"},{"{#FCONTAINERID}":"864ef039fc161ad882c41c817ef90cffc97089296319a6eb6bd776f320787668","{#SCONTAINERID}":"864ef039fc16","{#SYSTEM.HOSTNAME}":"lo-docker01.2000farma.local","{#HCONTAINERID}":"titanCalcServices_prod"},{"{#FCONTAINERID}":"9ed41376f4408c5c815b1dc409e88a67e28550ade490138db9d9583d5f5bdc0c","{#SCONTAINERID}":"9ed41376f440","{#SYSTEM.HOSTNAME}":"lo-docker01.2000farma.local","{#HCONTAINERID}":"TitanForms"},{"{#FCONTAINERID}":"ee218f739c0028feae65fa48b8adc92df0af6edfc8f988ba63753f20f53807ee","{#SCONTAINERID}":"ee218f739c00","{#SYSTEM.HOSTNAME}":"lo-docker01.2000farma.local","{#HCONTAINERID}":"SonarCubeDB"},{"{#FCONTAINERID}":"dd6030c11d7d8a2b2787a0154d0db16b59eae25ffb2371e01565e7c26e96f943","{#SCONTAINERID}":"dd6030c11d7d","{#SYSTEM.HOSTNAME}":"lo-docker01.2000farma.local","{#HCONTAINERID}":"SonarCube"},{"{#FCONTAINERID}":"723c2b74215694246aea17978330afc3ebf4fc80235db60f1cd5b4d83d668ef4","{#SCONTAINERID}":"723c2b742156","{#SYSTEM.HOSTNAME}":"lo-docker01.2000farma.local","{#HCONTAINERID}":"TitanCalcServices_Overpayment_dev"}]}]
zabbix_agentd [14156]: Warning: Cannot find the [parameter 1] item in the received JSON object
docker.inspect[full container id, parameter 1, <parameter 2>] [m|ZBX_NOTSUPPORTED] [Cannot find the [parameter 1] item in the received JSON object]
zabbix_agentd [14156]: Warning: Not defined container status: status
jangaraj commented 4 years ago

docker.discovery[<parameter 1>, <parameter 2>, <parameter 3>] and docker.inspect[full container id, parameter 1, <parameter 2>] => <parameter 1>, <parameter 2>, <parameter 3>, full container id, parameter 1, <parameter 2> are only placeholders, not real parameters, which you can use. Your problem is your configuration issue. Please read readme.