Ad Widget

Collapse

docker zabbix agent with limited network interface

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zhengyao365
    Junior Member
    • Aug 2020
    • 5

    #1

    docker zabbix agent with limited network interface

    I have multiple network interface on the host (vm) machine since I'm using docker.

    Click image for larger version

Name:	Screenshot from 2020-08-20 15-33-07.png
Views:	414
Size:	10.2 KB
ID:	407372

    But I'm unable to detect the network other than eth0 and lo, my guess is that zabbix agent is only detecting local docker network.

    Click image for larger version

Name:	Screenshot from 2020-08-20 15-31-30.png
Views:	471
Size:	61.2 KB
ID:	407371

    When I try to mount
    Code:
    -v /proc/net/dev:/proc/net/dev:ro
    it throws
    Code:
    starting container process caused "Cannot start service zabbix-agent: OCI runtime create failed: container_linux.go:349: container init caused \"rootfs_linux.go:58: mounting \\\"/proc/net/dev\\\" to rootfs ...... cannot be mounted because it is inside /proc\\\"\"": unknown
    Any suggestions ?
    Thanks.
  • zhengyao365
    Junior Member
    • Aug 2020
    • 5

    #2
    I guess I need to start agent container with
    Code:
    --net host

    Comment

    Working...