-
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.inspect return empty value for 3rd level JSON property #92
Comments
Hi Yevgeniy, Try to troubleshoot your problem https://github.com/monitoringartist/zabbix-docker-monitoring#troubleshooting - you will see more details in the zabbix agent log file. There will be full Docker API response. |
28219:20180328:153917.512 Docker's socket query: GET /containers/3f211afa76aa/json HTTP/1.0
28219:20180328:153917.513 Docker's socket response: { edited }
28219:20180328:153917.514 Item [State] found in the received JSON object
28219:20180328:153917.514 Array item: Status
28219:20180328:153917.514 Item [State][Health][Status] found in the received JSON object:
28219:20180328:153917.514 zbx_module_docker_inspect_exec OK:
28219:20180328:153917.514 Sending back [] It seems like docker.inspect metric expects 4th parameter (from docs: par3 - optional name of 3rd level JSON property or selector of item in the JSON array) only as json array item selector, not json property docker api output:
2nd level property works as expected
|
You are right. 3rd parameter needs improvement:
Also 4rd parameter can be usefull, e.g.:
Feel free to create PR. |
Hi,I also encountered this problem. |
Hi!
I try to use docker.inspect metric to get container health status, but it returns empty string if required value is json property, not json array item.
Accroding to docs it should return
unhealthy
The text was updated successfully, but these errors were encountered: