Page 1 of 1
check_apt on Nagios is ok, but it's not true
Posted: Tue Aug 25, 2020 9:08 am
by sslimani
check_apt on Nagios gives "APT OK: 0 packages available for upgrade (0 critical updates). |available_upgrades=0;;;0 critical_updates=0;;;0". However I've checked manually, this it not true, there are available update. How can I fix this please?
Re: check_apt on Nagios is ok, but it's not true
Posted: Tue Aug 25, 2020 5:22 pm
by ssax
Try running it with the
-u:
Code: Select all
su - nagios
cd /usr/local/nagios/libexec
./check_apt -u
Does that show them?
Re: check_apt on Nagios is ok, but it's not true
Posted: Tue Aug 25, 2020 9:38 pm
by sslimani
@ssax I tried run it with -u, but now it displays "APT WARNING: 0 packages available for upgrade (0 critical updates). warnings detected.|available_upgrades=0;;;0 critical_updates=0;;;0"
Re: check_apt on Nagios is ok, but it's not true
Posted: Wed Aug 26, 2020 3:51 pm
by jbrunkow
What about the
-l option? This is supposed to "list packages available for upgrade."
The
-h option is usually pretty useful for showing a help page for a given plugin. Give it a try to see if any of them suit your needs!