Zabbix agent : monitor Debian updates

Enable periodic updates

Edit the file:

vim /etc/apt/apt.conf.d/10periodic

And check that it as follow:

APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "0";

Zabbix agent configuration


Create a new configuration file on the agent :

sudo vim /etc/zabbix/zabbix_agentd.conf.d/system_updates.conf

And fill it with it :

UserParameter=apt.upgradable, aptitude search '~U' | wc -l

Then, on the Zabbix server, create a item :

And finally a trigger :

The expression must use the template item and not an host item :

Happy upgrades !

Leave a Reply

Your email address will not be published. Required fields are marked *