From 9225678fd41a4672ebc4c9ff3b063823c6018d34 Mon Sep 17 00:00:00 2001 From: "Gaunt, John" Date: Thu, 7 Jun 2018 10:51:07 -0400 Subject: [PATCH] updates --- zabbix_agent.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zabbix_agent.sh b/zabbix_agent.sh index e635ca2..9ccbad3 100644 --- a/zabbix_agent.sh +++ b/zabbix_agent.sh @@ -27,11 +27,11 @@ apt install zabbix-agent # ask for the hostname read -e -p "Enter Hostname: " -i "$(cat /etc/hostname)" hostname -sed -i 's/Hostname=Zabbix\ server/Hostname=${hostname}/' /etc/zabbix/zabbix_agentd.conf +sed -i "s/Hostname=Zabbix\ server/Hostname=${hostname}/" /etc/zabbix/zabbix_agentd.conf -sed -i 's/Server=127.0.0.1/Server=${ZABBIX_SERVER}/' /etc/zabbix/zabbix_agentd.conf +sed -i "s/Server=127.0.0.1/Server=${ZABBIX_SERVER}/" /etc/zabbix/zabbix_agentd.conf -sed -i 's/ServerActive=127.0.0.1/ServerActive=${ZABBIX_SERVER}/' /etc/zabbix/zabbix_agentd.conf +sed -i "s/ServerActive=127.0.0.1/ServerActive=${ZABBIX_SERVER}/" /etc/zabbix/zabbix_agentd.conf systemctl restart zabbix-agent