Update zabbix_agent.sh
This commit is contained in:
@@ -12,6 +12,18 @@ fi
|
|||||||
DIRECTORY="/tmp/zabbix_install"
|
DIRECTORY="/tmp/zabbix_install"
|
||||||
mkdir ${DIRECTORY}
|
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
|
# download the correct file for the correct OS
|
||||||
FILENAME="zabbix_repo.deb"
|
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"
|
DEBIAN_URL="http://repo.zabbix.com/zabbix/3.4/debian/pool/main/z/zabbix-release/zabbix-release_3.4-1+stretch_all.deb"
|
||||||
|
|||||||
Reference in New Issue
Block a user