Ad Widget

Collapse

zabbix docker template needs both active and passive agent connections?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pva
    Junior Member
    • Jun 2022
    • 4

    #1

    zabbix docker template needs both active and passive agent connections?

    I'm trying zabbix-agent2 with the following template: https://www.zabbix.com/ru/integrations/docker

    I've managed to make it work having both Server and ServerActive in zabbix_agent2.conf. Without Server, I've got no data and as I read documentation discovery does not work without passive polling (which means Server, right?):

    Template Docker by Zabbix agent 2 — collects metrics by polling zabbix-agent2.
    This requirement for passive connection looks strange. It breaks out architecture wherbe hosts are sending all their monitoring items to zabbix-server and we don't have a reverse connection on our infrastructure. Is there a way to avoid passively polling zabbix-agent2 and use only ServerActive connection?
  • Moonshine
    Junior Member
    • Jul 2022
    • 7

    #2
    Ugg... this is a killer. Is there any workaround?

    Comment

    • kamrava
      Junior Member
      • Jan 2023
      • 1

      #3
      I have this problem too. Does anyone have a solution?​

      Comment

      • cyber
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2006
        • 4807

        #4
        All the agent items that work as passive, can work also as active... Just change them to active and be done with it...

        Comment

        • bryanoptm
          Junior Member
          • Oct 2023
          • 1

          #5
          Originally posted by cyber
          All the agent items that work as passive, can work also as active... Just change them to active and be done with it...
          What do you mean by this? Is this a setting somewhere?

          Comment

          • semen.a
            Junior Member
            • Jul 2022
            • 5

            #6
            Originally posted by bryanoptm

            What do you mean by this? Is this a setting somewhere?
            Just change the item types (as shown on the screenshot) and do the same for discovery rules. Then the query will be done by the active agent.
            Click image for larger version

Name:	img.jpg
Views:	703
Size:	269.4 KB
ID:	486567

            Comment

            • itops
              Junior Member
              • May 2025
              • 2

              #7
              Hi,
              I changed zabbix agent type to active - and it still doesn't work.

              context:
              I have zbx-server and all agents2 in active type. We don't have internal / vpn network so we dont want to open ports in public.
              All hosts works fine in active type. (linux by zabbix agent 2 active temaplate for example )
              When I try to add docker by zabbix agent 2 - It require to add host interface.
              So i add it - public IP and port 10050 (default)

              Now - active metrics works fine - still.
              but Docker by Zabbix agent 2 template don't discover dockers and don't collect metrics.
              Agent have access to docker and I tried to change agent type to active in docker by zabbix agent 2 temaplate like on the up screen shoot.

              Plz help

              Comment

              • cyber
                Senior Member
                Zabbix Certified SpecialistZabbix Certified Professional
                • Dec 2006
                • 4807

                #8
                Saying "it does not work" is not enough... Do you have any error messages? In UI or in logs?

                Comment

                Working...