From b09bcf909bb18c42f75ae19495a3860729f1ba94 Mon Sep 17 00:00:00 2001 From: Robin Sonnabend <robin@fsmpi.rwth-aachen.de> Date: Mon, 4 Mar 2019 19:14:45 +0100 Subject: [PATCH] zabbixservers -> zabbixserver Although the config formats allows for it, we do not want to have more than one zabbix server. Not having a list containing just one element simplifies the configuration. --- zabbix-agent/templates/zabbix_agentd.conf.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zabbix-agent/templates/zabbix_agentd.conf.j2 b/zabbix-agent/templates/zabbix_agentd.conf.j2 index d7cc1ba..12400dd 100644 --- a/zabbix-agent/templates/zabbix_agentd.conf.j2 +++ b/zabbix-agent/templates/zabbix_agentd.conf.j2 @@ -92,7 +92,7 @@ EnableRemoteCommands=1 # Default: # Server= -Server={% for server in zabbixservers %}{{ server }}, {% endfor %} +Server={{zabbixserver}} ### Option: ListenPort # Agent will listen on this port for connections from the server. @@ -133,7 +133,7 @@ Server={% for server in zabbixservers %}{{ server }}, {% endfor %} # Default: # ServerActive= -ServerActive={% for server in zabbixservers %}{{ server }}, {% endfor %} +ServerActive={{zabbixserver}} ### Option: Hostname # Unique, case sensitive hostname. -- GitLab