Ad Widget

Collapse

Q: how to set up agent2 in a container to monitor host network interfaces?

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • d0d0
    Member
    • May 2023
    • 41

    #1

    Q: how to set up agent2 in a container to monitor host network interfaces?

    When agent2 is run in a container in the most basic way it is not able to monitor the network interfaces AND bridges of the Docker host. Also providing the Docker socket to the container and running it as privileged does not help.

    I have not found the information about how we can run agent2 in a container and still having it monitor the Docker host's network interfaces AND bridges
    How can this be achieved?

    Background: unraid server use a bridge br0 to allow VMs to receive an IP address via DHCP from the network. The unraid server's IP is bound to the bridge br0, not to he actual network interface. The agent2 would need to discover the bridge to make it visible.
    Last edited by d0d0; 26-01-2025, 21:22.
  • Answer selected by d0d0 at 27-01-2025, 00:27.
    d0d0
    Member
    • May 2023
    • 41

    I found how to fix this. The reason that the container does not see the host interfaces is that the container runs in network bridge mode.
    If the container runs in network host mode it does see all interfaces (the actual interface name filtering can be changed in the LLD macros).

    Comment

    • d0d0
      Member
      • May 2023
      • 41

      #2
      I found how to fix this. The reason that the container does not see the host interfaces is that the container runs in network bridge mode.
      If the container runs in network host mode it does see all interfaces (the actual interface name filtering can be changed in the LLD macros).

      Comment

      Working...