fixed typo added line to disable zabbix active checks
This commit is contained in:
3
debian/debian-essentials.sh
vendored
3
debian/debian-essentials.sh
vendored
@@ -60,6 +60,9 @@ if [[ ! -f /usr/bin/python ]]
|
|||||||
ln /usr/bin/python3 /usr/bin/python
|
ln /usr/bin/python3 /usr/bin/python
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# disable zabbix active checks
|
||||||
|
sed -i 's/ServerActive=192.168.1.44/#ServerActive=127.0.0.1/g' /etc/zabbix/zabbix_agent2.conf
|
||||||
|
|
||||||
# update and upgrade
|
# update and upgrade
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get upgrade -y
|
apt-get upgrade -y
|
||||||
|
|||||||
3
debian/debian-install-zabbix.sh
vendored
3
debian/debian-install-zabbix.sh
vendored
@@ -15,8 +15,7 @@ sudo systemctl restart zabbix-agent2
|
|||||||
sudo systemctl enable zabbix-agent2
|
sudo systemctl enable zabbix-agent2
|
||||||
|
|
||||||
sed -i 's/Server=127.0.0.1/Server=192.168.1.44/g' /etc/zabbix/zabbix_agent2.conf
|
sed -i 's/Server=127.0.0.1/Server=192.168.1.44/g' /etc/zabbix/zabbix_agent2.conf
|
||||||
sed -i 's/ServerActive=127.0.0.1/ServerActive=192.168.1.44/g' /etc/zabbix/zabbix_agent2.conf
|
sed -i "s/Hostname=Zabbix server/Hostname=$HOSTNAME/g" /etc/zabbix/zabbix_agent2.conf
|
||||||
sed -i "s/Hostname=Zabbix server/Server=$HOSTNAME/g" /etc/zabbix/zabbix_agent2.conf
|
|
||||||
|
|
||||||
if command -v docker &> /dev/null
|
if command -v docker &> /dev/null
|
||||||
then
|
then
|
||||||
|
|||||||
Reference in New Issue
Block a user