projects
/
mirror
/
dsa-nagios.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ peter@palfrader.org-20090226151247-ylbb5ki6c7a3m34k]
[mirror/dsa-nagios.git]
/
dsa-nagios-nrpe-config
/
dsa-update-apt-status
diff --git
a/dsa-nagios-nrpe-config/dsa-update-apt-status
b/dsa-nagios-nrpe-config/dsa-update-apt-status
index
19d20f7
..
3e3acef
100755
(executable)
--- a/
dsa-nagios-nrpe-config/dsa-update-apt-status
+++ b/
dsa-nagios-nrpe-config/dsa-update-apt-status
@@
-40,7
+40,7
@@
fi
# run apt-get update, retry a few times if it fails
count=0
while [ "$count" -lt "$UPDATE_RUNS" ]; do
# 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 ))"
if [ "$?" = "0" ]; then break; fi
sleep $(( $RANDOM % 600 ))
count="$(( $count + 1 ))"
@@
-55,7
+55,7
@@
fi
tmp=`tempfile`
trap "rm -f '$tmp'" exit
#/usr/share/dsa/apt-status-check --noupdate --timeout=600 > "$tmp"
tmp=`tempfile`
trap "rm -f '$tmp'" exit
#/usr/share/dsa/apt-status-check --noupdate --timeout=600 > "$tmp"
-/usr/lib/nagios/plugins/
nagios
-check-packages > "$tmp"
+/usr/lib/nagios/plugins/
dsa
-check-packages > "$tmp"
result="$?"
case "$result" in
0)
result="$?"
case "$result" in
0)