Ad Widget

Collapse

Zabbix server to monitor a Docker environment running as Docker rootless

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kednorg
    Junior Member
    • Nov 2024
    • 4

    #1

    Zabbix server to monitor a Docker environment running as Docker rootless

    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
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    I don't think you can.. 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..
    And submitting a use case for devs https://support.zabbix.com/projects/ZBXNEXT/ (there seems to be one https://support.zabbix.com/browse/ZBXNEXT-6560 but without much attention.. maybe it should be upvoted)

    Comment

    Working...