From 90cb41ec533851472e11160c6d1772e30f5ca333 Mon Sep 17 00:00:00 2001 From: Alvis Date: Sun, 22 Feb 2026 10:51:35 +0000 Subject: [PATCH] Fix zabbix agent hostnames for correct host assignment - Container agent: rename from AgapHost to 'Zabbix server' so it monitors the Zabbix server container (was conflicting with the host agent) - Enable passive listeners in container agent (remove ZBX_STARTAGENTS=0) - Update 'Zabbix server' host interface from 127.0.0.1 to DNS zabbix-agent so the server can reach the agent over the backend Docker network Host zabbix-agent2 (systemd) keeps hostname AgapHost for host monitoring. Co-Authored-By: Claude Sonnet 4.6 --- zabbix/.env | 2 +- zabbix/docker-compose.yml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/zabbix/.env b/zabbix/.env index 8cc7610..3737340 100644 --- a/zabbix/.env +++ b/zabbix/.env @@ -3,7 +3,7 @@ WEB_PORT=81 PHP_TZ=Europe/Amsterdam # Agent -AGENT_HOSTNAME=AgapHost +AGENT_HOSTNAME=Zabbix server # PostgreSQL POSTGRES_DATA_DIR=/mnt/ssd/dbs/zabbix diff --git a/zabbix/docker-compose.yml b/zabbix/docker-compose.yml index e3187b6..7bc0c26 100644 --- a/zabbix/docker-compose.yml +++ b/zabbix/docker-compose.yml @@ -77,7 +77,6 @@ services: ZBX_HOSTNAME: ${AGENT_HOSTNAME} ZBX_SERVER_HOST: zabbix-server ZBX_SERVER_ACTIVE: zabbix-server - ZBX_STARTAGENTS: "0" volumes: - /etc/localtime:/etc/localtime:ro privileged: true