Ad Widget

Collapse

Zabbix-agent2 docker plugin not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TDex96
    Junior Member
    • Jan 2021
    • 14

    #1

    Zabbix-agent2 docker plugin not working

    Hey guys!

    I have a problem with the built in docker plugin. My server version is 7.2.5, i use zabbix-agent2 with version 7.2.5.
    I use Active checks, the base metrics works fine, but the docker plugin not.
    I tried a lot of workaround, i added the zabbix user to the docker group, i also tried the debug logging on the agent side but nothing.
    I also added this two line of config in the zabbix config file:
    Plugins.Docker.Endpoint=unix:///var/run/docker.sock
    Plugins.Docker.Timeout=10
    I use the official template:


    Log file:
    2025/04/16 13:02:10.404122 using configuration file: /etc/zabbix/zabbix_agent2.conf
    2025/04/16 13:02:10.404191 using plugin 'Agent' (built-in) providing following interfaces: exporter, maximum capacity: 1000, active checks on start enabled: false
    2025/04/16 13:02:10.404202 using plugin 'Ceph' (built-in) providing following interfaces: exporter, runner, configurator, maximum capacity: 1000, active checks on start enabled: false
    2025/04/16 13:02:10.404212 using plugin 'Cpu' (built-in) providing following interfaces: exporter, collector, runner, maximum capacity: 1000, active checks on start enabled: false
    2025/04/16 13:02:10.404220 using plugin 'DNS' (built-in) providing following interfaces: exporter, maximum capacity: 1000, active checks on start enabled: false
    2025/04/16 13:02:10.404228 using plugin 'Docker' (built-in) providing following interfaces: exporter, configurator, maximum capacity: 1000, active checks on start enabled: false
    2025/04/16 13:02:10.404244 using plugin 'File' (built-in) providing following interfaces: exporter, maximum capacity: 1000, active checks on start enabled: false
    2025/04/16 13:02:10.404254 using plugin 'Hw' (built-in) providing following interfaces: exporter, configurator, maximum capacity: 1000, active checks on start enabled: false
    2025/04/16 13:02:10.404261 using plugin 'Kernel' (built-in) providing following interfaces: exporter, maximum capacity: 1000, active checks on start enabled: false
    2025/04/16 13:02:10.404269 using plugin 'Log' (built-in) providing following interfaces: exporter, configurator, maximum capacity: 1000, active checks on start enabled: false
    2025/04/16 13:02:10.404276 using plugin 'MQTT' (built-in) providing following interfaces: watcher, configurator, maximum capacity: 1000, active checks on start enabled: false
    2025/04/16 13:02:10.404283 using plugin 'Memcached' (built-in) providing following interfaces: exporter, runner, configurator, maximum capacity: 1000, active checks on start enabled: false
    2025/04/16 13:02:10.404291 using plugin 'Memory' (built-in) providing following interfaces: exporter, maximum capacity: 1000, active checks on start enabled: false
    2025/04/16 13:02:10.404298 using plugin 'Modbus' (built-in) providing following interfaces: exporter, configurator, maximum capacity: 1000, active checks on start enabled: false
    2025/04/16 13:02:10.404309 using plugin 'Mysql' (built-in) providing following interfaces: exporter, runner, configurator, maximum capacity: 1000, active checks on start enabled: false
    2025/04/16 13:02:10.404319 using plugin 'NetIf' (built-in) providing following interfaces: exporter, maximum capacity: 1000, active checks on start enabled: false
    2025/04/16 13:02:10.404327 using plugin 'Oracle' (built-in) providing following interfaces: exporter, runner, configurator, maximum capacity: 1000, active checks on start enabled: false
    2025/04/16 13:02:10.404344 using plugin 'Proc' (built-in) providing following interfaces: exporter, collector, maximum capacity: 1000, active checks on start enabled: false
    2025/04/16 13:02:10.404352 using plugin 'ProcExporter' (built-in) providing following interfaces: exporter, maximum capacity: 1000, active checks on start enabled: false
    2025/04/16 13:02:10.404360 using plugin 'Redis' (built-in) providing following interfaces: exporter, runner, configurator, maximum capacity: 1000, active checks on start enabled: false
    2025/04/16 13:02:10.404368 using plugin 'Smart' (built-in) providing following interfaces: exporter, configurator, maximum capacity: 1000, active checks on start enabled: false
    2025/04/16 13:02:10.404376 using plugin 'Sw' (built-in) providing following interfaces: exporter, configurator, maximum capacity: 1000, active checks on start enabled: false
    2025/04/16 13:02:10.404393 using plugin 'Swap' (built-in) providing following interfaces: exporter, maximum capacity: 1000, active checks on start enabled: false
    2025/04/16 13:02:10.404402 using plugin 'SystemRun' (built-in) providing following interfaces: exporter, configurator, maximum capacity: 1000, active checks on start enabled: false
    2025/04/16 13:02:10.404419 using plugin 'Systemd' (built-in) providing following interfaces: exporter, maximum capacity: 1000, active checks on start enabled: false
    2025/04/16 13:02:10.404428 using plugin 'TCP' (built-in) providing following interfaces: exporter, maximum capacity: 1000, active checks on start enabled: false
    2025/04/16 13:02:10.404437 using plugin 'UDP' (built-in) providing following interfaces: exporter, maximum capacity: 1000, active checks on start enabled: false
    2025/04/16 13:02:10.404444 using plugin 'Uname' (built-in) providing following interfaces: exporter, maximum capacity: 1000, active checks on start enabled: false
    2025/04/16 13:02:10.404452 using plugin 'Uptime' (built-in) providing following interfaces: exporter, maximum capacity: 1000, active checks on start enabled: false
    2025/04/16 13:02:10.404458 using plugin 'Users' (built-in) providing following interfaces: exporter, configurator, maximum capacity: 1000, active checks on start enabled: false
    2025/04/16 13:02:10.404466 using plugin 'VFSDev' (built-in) providing following interfaces: exporter, collector, maximum capacity: 1000, active checks on start enabled: false
    2025/04/16 13:02:10.404473 using plugin 'VFSDir' (built-in) providing following interfaces: exporter, maximum capacity: 1000, active checks on start enabled: false
    2025/04/16 13:02:10.404480 using plugin 'VfsFs' (built-in) providing following interfaces: exporter, maximum capacity: 1000, active checks on start enabled: false
    2025/04/16 13:02:10.404488 using plugin 'WebCertificate' (built-in) providing following interfaces: exporter, maximum capacity: 1000, active checks on start enabled: false
    2025/04/16 13:02:10.404495 using plugin 'WebPage' (built-in) providing following interfaces: exporter, maximum capacity: 1000, active checks on start enabled: false
    2025/04/16 13:02:10.404502 using plugin 'ZabbixAsync' (built-in) providing following interfaces: exporter, maximum capacity: 1000, active checks on start enabled: false
    2025/04/16 13:02:10.404509 using plugin 'ZabbixStats' (built-in) providing following interfaces: exporter, configurator, maximum capacity: 1000, active checks on start enabled: false
    2025/04/16 13:02:10.404515 lowering the plugin ZabbixSync capacity to hard limit 1 as the configured capacity 1000 exceeds limits
    2025/04/16 13:02:10.404521 using plugin 'ZabbixSync' (built-in) providing following interfaces: exporter, maximum capacity: 1, active checks on start enabled: false
    2025/04/16 13:02:10.404574 [Modbus] Config is valid
    2025/04/16 13:02:10.404613 Plugin communication protocol version is 6.4.0
    2025/04/16 13:02:10.404646 Zabbix Agent2 hostname: [jenkins]
    2025/04/16 13:02:10.404902 [101] starting memory cache
    2025/04/16 13:02:10.404977 starting manager
    2025/04/16 13:02:10.405027 [101] starting server connector for 192.168.0.239:10051
    2025/04/16 13:02:10.405351 listening for control connections on /run/zabbix/agent.sock
    2025/04/16 13:02:12.000441 [101] In refreshActiveChecks() from 192.168.0.239:10051
    2025/04/16 13:02:12.000648 connecting to 192.168.0.239:10051 [timeout:3s, connection timeout:3s]
    2025/04/16 13:02:12.001295 sending [{"request":"active checks","host":"jenkins","version":"7.2.5","varian t":2,"session":"d2569c3c08d4178a9fa2d76653e846a 7", "config_revision":0}] to [192.168.0.239:10051]
    2025/04/16 13:02:12.001903 receiving data from [192.168.0.239:10051]​
    Have you any suggestion, what can i try?
  • kyus
    Senior Member
    • Feb 2024
    • 171

    #2
    Well, the items that collect docker metrics are from the "Zabbix agent" type, not "Zabbix agent (active)" so I presume it doesn't work with active checks.
    Maybe you could change all items to "Zabbix agent (active)" and see if it works (I've never done it, so I'm not sure it'll work).

    Comment

    Working...