|
From: Javi L. <ja...@le...> - 2020-12-07 15:46:41
|
Hi there. I would like to monitor a host without having to install zabbix agent. I would like to run a docker container. The only thing that I've found is this project <https://github.com/digiapulssi/docker-zabbix-agent>. I tried below approach, but no items are supported: docker run \ --name test \ --network=host \ --privileged \ --hostname=host1.example.com \ -e ZBX_HOSTNAME=host1.example.com \ -e ZBX_SERVER_HOST=server.example.com \ -e ZBX_TLSPSKIDENTITY=host1.example.com \ -e ZBX_TLSPSKFILE=psk_file.psk \ -e ZBX_TLSCONNECT=unencrypted \ -e ZBX_TLSACCEPT=unencrypted \ -e ZBX_REFRESHACTIVECHECKS=60 \ -e ZBX_DEBUGLEVEL=3 \ -v /proc:/host/proc:ro \ -v /sys:/host/sys:ro \ -v /dev:/host/dev:ro \ -v /etc:/host/etc:ro \ -v /home/kedu/zabbix/enc:/var/lib/zabbix/enc \ -d zabbix/zabbix-agent The host is even autoregistered, but after get the host added to some templates no Linux items are supported. Thanks. Javier |