[project @ peter@palfrader.org-20080522111929-5az25xoycwmdtc58]
authorPeter Palfrader <peter@palfrader.org>
Thu, 22 May 2008 11:19:29 +0000 (11:19 +0000)
committerPeter Palfrader <peter@palfrader.org>
Thu, 22 May 2008 11:19:29 +0000 (11:19 +0000)
Do not use set -e when we run "offline" nagios checks
use --timeout=600 in the apt check to give it a bit more time than just 20 seconds which is too little on slow or loaded machines

dsa-nagios-nrpe-config/debian/cron.daily

index a0bbbec..cdb700f 100644 (file)
                 exit 1
        fi
 
-       set -e
        tmp=`tempfile`
        trap "rm -f '$tmp'" exit
-       /usr/share/dsa/apt-status-check --noupdate > "$tmp"
+       /usr/share/dsa/apt-status-check --noupdate --timeout=600 > "$tmp"
        result="$?"
        case "$result" in
          0)