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
Adapt agent script to support zabbix_agent2 config #8
Zabbix agent config file is read from /etc/zabbix directory
Zabbix agent v2 has two entries for Server (Server and ServerActive). This leads to an error when using the grep-ed value as there will be two lines. The script now picks the last line selected. This will be the ServerActive, which should be used with zabbix_sender.
Tested with Debian 12 and Zabbix Agent 2 (6.4.19).
Tested with Debian 12 and Zabbix Agent 2 (6.4.19).