From b82ca6a01ee39b6d903b8059d45b38c877efb438 Mon Sep 17 00:00:00 2001 From: "Gaunt, John" Date: Tue, 18 Dec 2018 13:58:52 -0500 Subject: [PATCH] Update zabbix_agent.sh --- zabbix_agent.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zabbix_agent.sh b/zabbix_agent.sh index 180627a..b9038b0 100644 --- a/zabbix_agent.sh +++ b/zabbix_agent.sh @@ -24,7 +24,7 @@ elif [ -f /etc/redhat-release ]; then rpm -ivh https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm # install the zabbix agent yum install -y zabbix-agent - cat << EOF >> /etc/firewalld/services/zabbix.xml + cat << EOF >> /etc/firewalld/services/zabbix-agent.xml zabbix agent @@ -33,7 +33,7 @@ elif [ -f /etc/redhat-release ]; then EOF - firewall-cmd --add-service=zabbix --permanent + firewall-cmd --add-service=zabbix-agent --permanent firewall-cmd --reload else echo "Unable to determine linux distro"