rpsedlak / zabbix-docker

This repository contains monitoring code for Zabbix to discover and monitor Docker instances on Linux platforms.
30 stars 27 forks source link

Received value [] is not suitable for value type [Numeric (float)] #37

Open alvarobacelar opened 6 years ago

alvarobacelar commented 6 years ago

The value of item docker.container.stats[{#DZ_ID},pmem] not suported the error Received value [] is not suitable for value type [Numeric (float)]

rpsedlak commented 6 years ago

Can you give me the version numbers of Zabbix, Docker, and the OS that you're using?

aihaozhe123 commented 5 years ago

2784:20181203:034009.819 error reason for "10.1.4.26:docker.container.stats[bc1534cbd5c4,pmem]" changed: Value "" of type "string" is not suitable for value type "Numeric (float)" 2786:20181203:034019.912 error reason for "10.1.4.26:docker.container.stats[a6d558957be7,pcpu]" changed: Value "my-tomcat-container" of type "string" is not suitable for value type "Numeric (float)" 2784:20181203:034109.861 error reason for "10.1.4.26:docker.container.stats[bc1534cbd5c4,pmem]" changed: Value "17kB" of type "string" is not suitable for value type "Numeric (float)" 2783:20181203:034220.904 error reason for "10.1.4.26:docker.container.stats[51ac4445be95,pcpu]" changed: Value "" of type "string" is not suitable for value type "Numeric (float)" 2787:20181203:034309.935 error reason for "10.1.4.26:docker.container.stats[bc1534cbd5c4,pmem]" changed: Value "" of type "string" is not suitable for value type "Numeric (float)" 2783:20181203:034321.943 error reason for "10.1.4.26:docker.container.stats[51ac4445be95,pcpu]" changed: Value "nginx" of type "string" is not suitable for value type "Numeric (float)" 2787:20181203:034409.970 error reason for "10.1.4.26:docker.container.stats[bc1534cbd5c4,pmem]" changed: Value "17kB" of type "string" is not suitable for value type "Numeric (float)" 2786:20181203:034610.034 error reason for "10.1.4.26:docker.container.stats[bc1534cbd5c4,pmem]" changed: Value "" of type "string" is not suitable for value type "Numeric (float)" 2784:20181203:034621.041 error reason for "10.1.4.26:docker.container.stats[51ac4445be95,pcpu]" changed: Value "" of type "string" is not suitable for value type "Numeric (float)"

aihaozhe123 commented 5 years ago

Docker version 18.06.1-ce ,zabbix3.0,awslinux

ahrar25 commented 4 years ago

hi, did you resolved the issue? because now i am having this one. any help?

Tom-Burton commented 4 years ago

I think the columns for docker stats change slightly in different versions. For my docker v18.09.7 I replaced the zabbix-docker-stats.py with this file: https://github.com/Tom-Burton/zabbix-docker/blob/Tom-Burton-list-index-change/zabbix-docker-v18-stats.py and it works for me.