Update zabbix_agent.sh

This commit is contained in:
2018-12-18 13:06:06 -05:00
parent 63f03fe2bc
commit 0b2ae55663

View File

@@ -12,6 +12,18 @@ fi
DIRECTORY="/tmp/zabbix_install"
mkdir ${DIRECTORY}
if [ -f /etc/debian_version ]; then
apt update
apt install -y snmpd curl
elif [ -f /etc/redhat-release ]; then
yum install -y net-snmp net-snmp-utils
firewall-cmd --zone=public --add-service=snmp --permanent
firewall-cmd --reload
else
echo "Unable to determine linux distro"
exit
fi
# download the correct file for the correct OS
FILENAME="zabbix_repo.deb"
DEBIAN_URL="http://repo.zabbix.com/zabbix/3.4/debian/pool/main/z/zabbix-release/zabbix-release_3.4-1+stretch_all.deb"