[project @ steve@lobefin.net-20090204141102-wur8e1o9t90gb6wc]
[mirror/dsa-nagios.git] / dsa-nagios-nrpe-config / dsa-update-apt-status
index a6b5b8a..401eb57 100755 (executable)
@@ -23,7 +23,7 @@ run_required() {
        local last_mod
        last_mod=`stat -c "%Y" "$STATUS"`
        now=`date +%s`
-       age=$(( "$now" - "$last_mod" ))
+       age=$(( $now - $last_mod ))
        [ "$age" -gt "$MAX_AGE" ] && return $run
 
        return $norun
@@ -54,7 +54,8 @@ fi
 # 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)