I currently running a small icinga test instance on ubuntu 20.04 in a vm and I want the service “check_apt” to warn if there are more than 10 packages available instead of 1.
Monitoring-Plugins 2.3.1 offers the parameter “-w” for this (Monitoring Plugins - check_apt), yet my version of this package is 2.2.x
So I pinned the 2.3.1 version according to this guide: PinningHowto - Community Help Wiki
Both apt-cache and apt policy show that the 2.3.1 version is being available and the terminal output when installing monitoring-plugins also indicates that it is indeed the desired version.
According to vim /etc/icinga2/constants.conf icinga uses the /usr/lib/nagios/plugins/ directory.
However “/usr/lib/nagios/plugins/check_apt -V” says that it is the 2.2.x version that is being used by icinga.
My question is: How do I update monitoring-plugins in a way that icinga actually uses the newer version?
Updating “common” and “basic” does not seem to be as easy as just “monitoring-plugins”. Both require a more recent version of libc6, which comes with its own slew of problems.
Is there a simpler way to set a warning threshold for check_apt?