Another workaround is to reorder sources.list to have -security before -updates like this:
$ cat /etc/apt/sources.list deb http://archive.ubuntu.com/ubuntu/ precise main universe deb http://archive.ubuntu.com/ubuntu/ precise-security main universe deb http://archive.ubuntu.com/ubuntu/ precise-updates main universe
$ /usr/lib/nagios/plugins/check_apt -d APT CRITICAL: 5 packages available for dist-upgrade (4 critical updates).
Another workaround is to reorder sources.list to have -security before -updates like this:
$ cat /etc/apt/ sources. list archive. ubuntu. com/ubuntu/ precise main universe archive. ubuntu. com/ubuntu/ precise-security main universe archive. ubuntu. com/ubuntu/ precise-updates main universe
deb http://
deb http://
deb http://
$ /usr/lib/ nagios/ plugins/ check_apt -d
APT CRITICAL: 5 packages available for dist-upgrade (4 critical updates).