AkuLink1 / zabbix-template-apt-upgrade-monitoring

Zabbix template that monitors a host for package upgrades available in Debian / Ubuntu / "apt" package manager distros using apt-get upgrade -s (simulation mode).
MIT License
9 stars 7 forks source link
apt apt-get debian-linux ubuntu zabbix zabbix-agent zabbix-frontend zabbix-server zabbix-templates

Zabbix Template to monitor available package upgrades in hosts

Zabbix template that monitors hosts for available package upgrades in Debian / Ubuntu / "apt" package manager distros.

The script runs apt-get update to update source lists and then runs apt-get upgrade -s in simulation mode (no upgrade is executed). Data is then send to Zabbix server in various formats. A problem will be shown in the dashboard in case there is > 1 packages to update.

Overview

Zabbix Server version: 6.0

Sample output of apt-get upgrade -s from which we extract the info for the template:

The following packages have been kept back:
  zabbix-frontend-php
The following packages will be upgraded:
  zabbix-agent zabbix-apache-conf zabbix-server-mysql zabbix-sql-scripts
4 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

Versions

This template was tested on:

Setup

On Zabbix frontend server:

On all hosts you want to monitor: