Zabbix template to monitor Debian/Ubuntu package updates and upgrade health.
Works with Zabbix 7.0 Active Agent.
- Available package updates (security and non-security)
- Upgradable package list
- Held packages and autoremove candidates
- Broken/problematic
dpkgpackage states needrestartkernel/services/processes statusreboot-requiredflagdpkg.logactivity (logrt)unattended-upgrades.logactivity (logrt)
Unattended-upgrades installed updates in last 1h(INFO)- Expression: detects
INFO All upgrades installedin the last hour.
- Expression: detects
Everything is executed by only a few basic deploy scripts.
cd /usr/local/src
git clone https://github.com/Futur-Tech/futur-tech-zabbix-apt.git
cd futur-tech-zabbix-apt
./deploy.sh
# Main deploy script
./deploy-update.sh -b main
# This script will automatically pull the latest version of the branch ("main" in the example) and relaunch itself if a new version is found. Then it will run deploy.sh. Also note that any additional arguments given to this script will be passed to the deploy.sh script.Finally import the template YAML in Zabbix Server and attach it to your host.
Forked from https://github.com/sergiotocalini/custix