Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/theranger/zabbix-apt
APT updates monitoring plugin for Zabbix
https://github.com/theranger/zabbix-apt
apt zabbix
Last synced: about 2 months ago
JSON representation
APT updates monitoring plugin for Zabbix
- Host: GitHub
- URL: https://github.com/theranger/zabbix-apt
- Owner: theranger
- Created: 2017-01-28T09:44:08.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-05-16T10:29:35.000Z (over 3 years ago)
- Last Synced: 2023-03-02T11:56:46.680Z (almost 2 years ago)
- Topics: apt, zabbix
- Size: 4.88 KB
- Stars: 41
- Watchers: 6
- Forks: 17
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Zabbix template for monitoring APT package updates.
This template uses `-s` simulation option when invoking `apt-get`, so no root access is needed for Zabbix user during polling.
# Notes
However, root access is required for updating APT repositories. Since Zabbix runs under a dedicated user, it can be done either by using `sudo` in agent configuration script below, using a dedicated `crontab` entry to invoke `apt-get update` periodically or use `APT::Periodic` functionality bundled inside the APT system itself. Support for the `APT::Periodic` is included in this setup.Since `APT::Periodic` is executed via already existing APT maintenace script located in `cron.daily`, the minimum period of updating repositories is once a day. If shorter period is required, a spearate `cron.hourly` script is needed instead.
# Installation
1. Copy `apt.conf.d/02periodic` script to `/etc/apt/apt.conf.d` directory to configure daily automatic package repository updates using `APT::Periodic`.
2. Copy `zabbix_agentd.d/apt.conf` to the Zabbix agent's configuration directory (usually located in `/etc/zabbix`).
3. Import `templates/apt-updates.xml` to Zabbix frontend.