-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker.cstatus[Up] value 1 when you don't have any container #74
Comments
Please start zabbix agent in debug mode and then provide agent logs. Please test it with zabbix_get utility. |
Hi @jangaraj
|
Could you add more log lines please? There is docker query and docker response, which is good. I would like to see there also agent response. Thanks. |
I had two containers but i deleted them to check this issue, i only use active checks, but all checks for docker.cstatus[Up] have been done with zabbix_get
We found that issue, is with json parser and in src/libs/zbxjson/json.c
value is compared to 1 but the value is 2 that's why it's returning 1 as value for checks when answer from docker is [] |
You are right. I can replicate it as well.
|
For other statuses like all etc.. when you have this empty answer [], it returns 0 as well due this parser |
Please test
|
Works fine |
Fixed in the v0.6.7 release - #76 |
Whan any container is running
you get info from key docker.cstatus[Up] that one container is running
Info from docker.socket
The text was updated successfully, but these errors were encountered: