From: Peter Palfrader Date: Thu, 22 May 2008 11:19:29 +0000 (+0000) Subject: [project @ peter@palfrader.org-20080522111929-5az25xoycwmdtc58] X-Git-Url: https://wiki.adam-barratt.org.uk/gitweb/?a=commitdiff_plain;h=6db15777be2201c9f753bd51a50fe03de73a90dd;p=mirror%2Fdsa-nagios.git [project @ peter@palfrader.org-20080522111929-5az25xoycwmdtc58] 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 --- diff --git a/dsa-nagios-nrpe-config/debian/cron.daily b/dsa-nagios-nrpe-config/debian/cron.daily index a0bbbec..cdb700f 100644 --- a/dsa-nagios-nrpe-config/debian/cron.daily +++ b/dsa-nagios-nrpe-config/debian/cron.daily @@ -22,10 +22,9 @@ 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)