Commit 6a605f39 authored by devteam's avatar devteam

Update zabbix_install_with_repo.sh

parent 5d284250
......@@ -9,10 +9,13 @@ NOVO_IP=$1
NOVO_HOSTNAME=$2
CONFIG_FILE="/etc/zabbix/zabbix_agent2.conf"
rpm -Uvh https://repo.zabbix.com/zabbix/7.0/rhel/7/x86_64/zabbix-release-latest.el7.noarch.rpm
rpm -Uvh http://repo.zabbix.com/zabbix/7.0/rhel/7/x86_64/zabbix-release-latest.el7.noarch.rpm
sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/zabbix.repo
sed -i 's/https/http/g' /etc/yum.repos.d/zabbix.repo
echo "instalando zabbix-agent2..."
yum -y -q install zabbix-agent2 zabbix-agent2-plugin-* zabbix-get zabbix-sender
yum -y -q install --enablerepo=zabbix zabbix-agent2 zabbix-agent2-plugin-* zabbix-get zabbix-sender
echo "Configurando..."
sed -i "s/^Server=.*/Server=$NOVO_IP/" "$CONFIG_FILE"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment