Update zabbix_agent.sh
This commit is contained in:
@@ -13,12 +13,12 @@ DIRECTORY="/tmp/zabbix_install"
|
|||||||
mkdir ${DIRECTORY}
|
mkdir ${DIRECTORY}
|
||||||
|
|
||||||
if [ -f /etc/debian_version ]; then
|
if [ -f /etc/debian_version ]; then
|
||||||
apt update
|
#apt update
|
||||||
apt install -y snmpd curl
|
#apt install -y snmpd curl
|
||||||
elif [ -f /etc/redhat-release ]; then
|
elif [ -f /etc/redhat-release ]; then
|
||||||
yum install -y net-snmp net-snmp-utils
|
#yum install -y net-snmp net-snmp-utils
|
||||||
firewall-cmd --zone=public --add-service=snmp --permanent
|
#firewall-cmd --zone=public --add-service=snmp --permanent
|
||||||
firewall-cmd --reload
|
#firewall-cmd --reload
|
||||||
else
|
else
|
||||||
echo "Unable to determine linux distro"
|
echo "Unable to determine linux distro"
|
||||||
exit
|
exit
|
||||||
|
|||||||
Reference in New Issue
Block a user