-
Type:
Incident report
-
Resolution: Won't fix
-
Priority:
Critical
-
None
-
Affects Version/s: 3.2.7
-
Component/s: Server (S)
-
Environment:Client : Debian 9 with version 3.0.7
Server : Docker Zabbix-XXL
Running the script in the client working fine:
??./rancher.sh stats Traefik-nginx-1 .cpu.usage.user 215940000000??
Running the script from zabbix_agent_d working fine :
??zabbix_agentd -t rancher[stats,Traefik-nginx-1,.cpu.usage.user] rancher[stats,Traefik-nginx-1,.cpu.usage.user] [t|215950000000]??
Running from the server returned empty string
??zabbix_get -s 172.30.101.12 -k rancher[stats,Traefik-nginx-1,.memory.usage]??
The script works perfectly with other argument
??root@5e2b6f34a9b3 /]# zabbix_get -s 172.30.101.12 -k rancher[discovery,hosts]
{
"data" :
[
{"{#ID}":"1h60","{#NAME}":"infra-l1.labs.napalmlabs.fr"},{"{#ID}":"1h65","{#NAME}":"ross-galdo.labs.napalmlabs.fr"},{"{#ID}":"1h66","{#NAME}":"heidi-benesch.labs.napalmlabs.fr"},{"{#ID}":"1h68","{#NAME}":"beth-lourence.labs.napalmlabs.fr"},{"{#ID}":"1h69","{#NAME}":"infra-l2.labs.napalmlabs.fr"}
]
}??
At the end of the script, if I return fixed value (like echo 1) it's working.