From 6db15777be2201c9f753bd51a50fe03de73a90dd Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Thu, 22 May 2008 11:19:29 +0000 Subject: [PATCH] [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 --- dsa-nagios-nrpe-config/debian/cron.daily | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) -- 2.20.1