check_apt on Nagios is ok, but it's not true

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sslimani
Posts: 10
Joined: Mon Aug 03, 2020 9:17 am

check_apt on Nagios is ok, but it's not true

Post 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?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: check_apt on Nagios is ok, but it's not true

Post 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?
sslimani
Posts: 10
Joined: Mon Aug 03, 2020 9:17 am

Re: check_apt on Nagios is ok, but it's not true

Post 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"
User avatar
jbrunkow
Posts: 441
Joined: Fri Mar 13, 2020 10:45 am

Re: check_apt on Nagios is ok, but it's not true

Post by jbrunkow »

What about the -l option? This is supposed to "list packages available for upgrade."

Code: Select all

./check_apt -l
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!

Code: Select all

./check_apt -h
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked