Ad Widget

Collapse

Zabbix agent 2 docker makes all other templates stop working.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wti
    Junior Member
    • Dec 2018
    • 4

    #1

    Zabbix agent 2 docker makes all other templates stop working.

    I have been testing the docker monitoring for a while now. It works and would be great to use it in PROD. Now I have some issues with it. I have an Unbuntu 18.04 and a Centos 8 host zabbix_agent2 where this happens:
    • If I enable the docker monitoring it works FINE, but all other templates like basic linux monitoring stop working. I am talking about all other templates items here.
    • If I disable the docker monitoring then everything starts working again.

    We have to use active mode, so I had to change the items on all templates to Active. (this is a HARD requirement)

    I have zabbix_agent2 that is able to give all the data I ask for from console. Code:

    Code:
    # sudo -u zabbix zabbix_agent2 -t agent.hostname. # normal templates in active mode.
    agent.hostname [s|srv-prod-myhost1]
    
    # sudo -u zabbix zabbix_agent2 -t docker.containers #docker template
    docker.containers [s|[{"Id":"93c254385aaea136eda4b9feaf73b6b6ddecd0ef42f 680381a7412b2de19bacf","Image":"name
    (...)
    "Destination":"/var/log/mysql","Driver":"local","Mode":"","RW":true,"Propa gation":"","Type":"volume"}]}]]



    Then the end result is when I have docker is like the Zabbix server does not request that information about the host etc. Or is expecting it in a different format? I am nor sure what could be wrong, that is why I am asking. Any type of help is welcome.
    Last edited by wti; 05-09-2020, 15:42.
  • wti
    Junior Member
    • Dec 2018
    • 4

    #2
    Ended up having to create 2 hosts. One for OS with all the templates that are not docker and another running on a container with the docker monitoring. This is no solution, but can somewhat "use" it that way.

    If I asked the wrong question, please let me know or is it that the community is so inactive?

    Comment

    Working...