From: Alexander Barton Date: Thu, 3 Feb 2011 15:45:21 +0000 (+0100) Subject: Disks.tst: don't gather information for unused variables X-Git-Tag: rel-3~18 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=nagcollect.git;a=commitdiff_plain;h=e949266062778f8113eafd40db6db45014de32ad;ds=sidebyside Disks.tst: don't gather information for unused variables --- diff --git a/client/lib/tests/Disks.tst b/client/lib/tests/Disks.tst index 99695cb..1ea83a1 100644 --- a/client/lib/tests/Disks.tst +++ b/client/lib/tests/Disks.tst @@ -1,5 +1,5 @@ # NagCollect -- Nagios Data Collector for Passive Checks -# Copyright (c)2009 Alexander Barton, alex@barton.de +# Copyright (c)2009-2011 Alexander Barton, alex@barton.de # Check free space on local filesystems @@ -14,9 +14,9 @@ TEMP="/tmp/$$.tmp" df -l -P -m | grep "^/" >"$TEMP" while read x; do - fs=`echo $x | cut -d' ' -f1` - blocks=`echo $x | cut -d' ' -f2` - used=`echo $x | cut -d' ' -f3` + #dev=`echo $x | cut -d' ' -f1` + #blocks=`echo $x | cut -d' ' -f2` + #used=`echo $x | cut -d' ' -f3` free=`echo $x | cut -d' ' -f4` capacity=`echo $x | cut -d' ' -f5 | sed 's/%//'` declare -i capacity2=100-$capacity