# run apt-get update, retry a few times if it fails
count=0
while [ "$count" -lt "$UPDATE_RUNS" ]; do
- apt-get update -qq
+ apt-get update -qq >/dev/null >&2
if [ "$?" = "0" ]; then break; fi
sleep $(( $RANDOM % 600 ))
count="$(( $count + 1 ))"
# run the apt check itself
tmp=`tempfile`
trap "rm -f '$tmp'" exit
-/usr/share/dsa/apt-status-check --noupdate --timeout=600 > "$tmp"
+#/usr/share/dsa/apt-status-check --noupdate --timeout=600 > "$tmp"
+/usr/lib/nagios/plugins/dsa-check-packages > "$tmp"
result="$?"
case "$result" in
0)