Zypper update info
Overview
For Zabbix version: 5.2
This template monitors a host for available patches and general package updates by repository. Using discovery it will create items and triggers for all required patch categories/severities and/or package repositories, configurable using macro's. Additionally it will feed Zabbix with a list of known vulnerabilities (as known by Zypper) and package names of the available updates.
This template was tested on:
- Zabbix 5.2
- openSUSE Leap 15.2 but should work on any SLES/openSUSE Leap 15.x
Accompanying script requires Python >= 3.4
Setup
On all hosts you want to monitor:
- Install packages
python3
andzabbix-sender
- Copy
scripts/zypper-updateinfo.py
to/etc/zabbix/scripts
- Check
zabbix_sender_bin
,zabbix_agent_config
paths and thehostname_name
variable inscripts/zypper-updateinfo.py
and adapt if required - Copy Systemd unit files
systemd/zabbix-template-module-zypper-updateinfo.service
andsystemd/zabbix-template-module-zypper-updateinfo.timer
to/etc/systemd/system
- By default the systemd timer will execute the script every hour. Change this in the
.timer
-file to your needs. - If you chose to put the
zypper-updateinfo.py
script somewhere else than/etc/zabbix/scripts
, adjust the path in the.service
-file - Enable and start the Systemd timer:
systemctl daemon-reload systemctl enable zabbix-template-module-zypper-updateinfo.timer systemctl start zabbix-template-module-zypper-updateinfo.timer
On Zabbix server:
- Import the
template_module_zypper_updateinfo.yaml
template into Zabbix - Assign the template "Template Module Zypper updateinfo by Zabbix trapper" to the host(s) you want to monitor
Zabbix configuration
No specific Zabbix configuration is required. Eventually adjust Macro's to filter on patch categories/severities and/or package repositories.
Feedback
Please report any issues with the template at https://github.com/RobinR1/zbx-template-zypper-updateinfo/issues
Listing Details
1 version, '2021-03-22 22:43' modified