apt update apt install -y wget wget https://repo.zabbix.com/zabbix/6.4/debian/pool/main/z/zabbix-release/zabbix-release_6.4-1+debian10_all.deb dpkg -i zabbix-release_6.4-1+debian10_all.deb apt update apt install -y zabbix-agent2 zabbix-agent2-plugin-* service zabbix-agent2 start source /etc/os-release LOGFILE="${ID}-${VERSION_ID}-${VERSION_CODENAME}_`date +'%Y%b%d'`.log" (cat /etc/os-release; uname -a) | tee $LOGFILE zabbix_agent2 --version | head -n 3 | tee -a $LOGFILE zabbix_agent2 -c /etc/zabbix/zabbix_agent2.conf -t system.sw.packages.get -v | tee -a $LOGFILE cat /etc/zabbix/zabbix_agent2.conf | tee -a $LOGFILE zabbix_agent2 -c /etc/zabbix/zabbix_agent2.conf -t system.sw.packages -v | tee -a $LOGFILE history -a; history -c; history -r exec bash