Monitor Regular/Security Updates on Ubuntu Using APT in Zabbix


What is zabbix ? Zabbix this is a free and open source network monitoring tool which is used to monitor availability and performance of your infrastructure: servers, network devices and rest assets.

In this article I would like to show how to monitor available updates using Zabbix on Ubuntu Servers.


Root access is required when we updating APT repositories, zabbix is run under a dedicated user, so we can do it on two ways:

  • Using sudo in agent configuration
  • Using a crontab to invoke apt-get update periodically or use APT::Periodic functionality bundled inside the APT system itself

In this case we are use APT::Periodic 😊 because APT::Periodic is executed via already existing APT maintenance script which are located cron.daily.


  • Clone source
  • Copy APT configuration from apt.conf.d/02periodic to /etc/apt/apt.conf.d
  • Copy Zabbix agent configuration from zabbix_agentd.d/apt.conf to /etc/zabbix/zabbix-agent.d/apt.conf
  • Import templates/apt-updates.xml to Zabbix frontend.


I hope this tutorial was helpful and with its help you will be able to better monitor the amount of updates we should install on our servers.

Thanks for reading!



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store