|
@@ -26,12 +26,9 @@ if [ ! -d "$_assets" ]; then
|
|
|
fi
|
|
|
fi
|
|
|
|
|
|
-# not necessary anymore zabbix-agent 4 is in apt
|
|
|
-# https://packages.debian.org/fr/buster/zabbix-agent
|
|
|
-# TODO downgrade zabbix-agent to 3.4
|
|
|
|
|
|
-wget -P /tmp/ http://repo.zabbix.com/zabbix/3.4/debian/pool/main/z/zabbix-release/zabbix-release_3.4-1+stretch_all.deb
|
|
|
-dpkg -i /tmp/zabbix-release_3.4-1+stretch_all.deb
|
|
|
+wget -P /tmp/ wget https://repo.zabbix.com/zabbix/6.4/debian/pool/main/z/zabbix-release/zabbix-release_6.4-1+debian11_all.deb
|
|
|
+dpkg -i /tmp/zabbix-release_6.4-1+debian11_all.deb
|
|
|
|
|
|
apt-get update -y
|
|
|
|
|
@@ -57,6 +54,10 @@ sed -i "s#Server=127.0.0.1#Server=$_ip#g" /etc/zabbix/zabbix_agentd.conf
|
|
|
sed -i "s#ServerActive=127.0.0.1#ServerActive=$_ip#g" /etc/zabbix/zabbix_agentd.conf
|
|
|
sed -i "s#Hostname=Zabbix server#Hostname=$_host_name#g" /etc/zabbix/zabbix_agentd.conf
|
|
|
|
|
|
+
|
|
|
+# todo ask if LXC container, if yes install this script
|
|
|
+# https://github.com/kvaps/zabbix-linux-container-template
|
|
|
+
|
|
|
# APT
|
|
|
# check for debian security updates
|
|
|
# not working : https://www.osso.nl/blog/zabbix-counting-security-updates
|