[Bug 1031680] Re: check_apt always report 0 critical updates

Robie Basak 1031680 at bugs.launchpad.net
Wed Aug 1 12:19:49 UTC 2012


It looks like this is due to how check_apt is checking for "critical"
updates. Since Ubuntu publishes security updates in both the -updates
and -security pockets, it only works if the security pocket is listed
first in sources.list.

Workaround: move the security lines in /etc/apt/sources.list to the top.

Now I get:

ubuntu at precise-test:~$ /usr/lib/update-notifier/apt-check --human-readable
17 packages can be updated.
12 updates are security updates.
ubuntu at precise-test:~$ /usr/lib/nagios/plugins/check_apt
APT CRITICAL: 14 packages available for upgrade (9 critical updates). 

Not an exact match, but better. This is probably due to how exactly
check_apt is checking apt-get's output.

It seems suboptimal to me. Now that /usr/lib/update-notifier/apt-check
exists, check_apt could use it instead. But this would be a fundamental
change in how check_apt works, so this should probably be sent for
discussion upstream.

Changing to Importance: Medium as a workaround is available.

** Changed in: nagios-plugins (Ubuntu)
       Status: Confirmed => Triaged

** Changed in: nagios-plugins (Ubuntu)
   Importance: High => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nagios-plugins in Ubuntu.
https://bugs.launchpad.net/bugs/1031680

Title:
  check_apt always report 0 critical updates

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nagios-plugins/+bug/1031680/+subscriptions



More information about the Ubuntu-server-bugs mailing list