Bladeren bron

zabbix-agent install bug fix

Bachir Soussi Chiadmi 6 jaren geleden
bovenliggende
commit
43d32c7d86
1 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 3 3
      bin/zabbix.sh

+ 3 - 3
bin/zabbix.sh

@@ -47,9 +47,9 @@ if [ ! -d "$_agent_conf_d" ]; then
 fi
 
 # configure zabbix agent
-sed -i 's#Server=127.0.0.1#Server=$_ip#g' /etc/zabbix/zabbix_agentd.conf
-sed -i 's#ServerActive=127.0.0.1#ServerActive=$_ip#g' /etc/zabbix/zabbix_agentd.conf
-sed -i 's#Hostname=Zabbix server#Hostname=$_host_name#g' /etc/zabbix/zabbix_agentd.conf
+sed -i "s#Server=127.0.0.1#Server=$_ip#g" /etc/zabbix/zabbix_agentd.conf
+sed -i "s#ServerActive=127.0.0.1#ServerActive=$_ip#g" /etc/zabbix/zabbix_agentd.conf
+sed -i "s#Hostname=Zabbix server#Hostname=$_host_name#g" /etc/zabbix/zabbix_agentd.conf
 
 # APT
 # check for debian security updates