Running a base install of Ubuntu 22.04 using Nagios and NRPE to monitor hosts, all running 22.04. My issue is with check_apt returning two different results:
$# /usr/lib/nagios/plugins/check_apt
APT OK: 0 packages available for upgrade (0 critical updates). |available_upgrades=0;;;0 critical_updates=0;;;0
$# /usr/lib/nagios/plugins/check_nrpe -H 127.0.0.1 -c check_apt
APT WARNING: 9 packages available for upgrade (0 critical updates). |available_upgrades=9;;;0 critical_updates=0;;;0
One reports 0 packages, the other 9 even though they are the same server. Having checked in depth there are no updates
Has anyone come across this before?
check_apt
command in thenrpe.cfg
is not actually exactly as you run it yourself. Please include the definition in your question. – pzkpfw Jun 25 '22 at 12:53