Security - Pending Updates

Description

There should be no pending security updates. This check uses aptitudes which needs to be installed.

Check Script: security-pending-updates3.sh

pkgs=$(aptitude search '?and(~U,~Asecurity)' | cut -c 5-100 | sed 's/ - .*//')
if [ "$pkgs" != "" ]; then
	result_warning "Security upgrades pending: $pkgs"
else
	result_ok
fi
Show Disqus Comments