# 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
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