I managed to configure the Zabbix server to monitor a Docker environment running as Docker rootless.
I am using the template: 'Docker by Zabbix agent 2'. On the Zabbix client side, I have the plugin 'Plugins.Docker'.
However, on the server, I have many rootless Docker configurations, which means I have multiple Docker sockets:
unix:////run/user/1007/docker.sock
unix:////run/user/1008/docker.sock
unix:////run/user/1009/docker.sock
How can I specify multiple Docker sockets for the Zabbix client to monitor?
The plugin only has a configuration for a single socket:
Plugins.Docker.Endpoint=unix:////run/user/1007/docker.sock
I am using the template: 'Docker by Zabbix agent 2'. On the Zabbix client side, I have the plugin 'Plugins.Docker'.
However, on the server, I have many rootless Docker configurations, which means I have multiple Docker sockets:
unix:////run/user/1007/docker.sock
unix:////run/user/1008/docker.sock
unix:////run/user/1009/docker.sock
How can I specify multiple Docker sockets for the Zabbix client to monitor?
The plugin only has a configuration for a single socket:
Plugins.Docker.Endpoint=unix:////run/user/1007/docker.sock
nor items or plugin config support multiple sockets, as it seems (as DB plugins allow session names, for example). Running multiple instances of agent on different ports and with slightly different config (pointing to different socket) and having separate host configured for each in zabbix... that would be a workaround..
Comment