We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 292ba7c commit de37872Copy full SHA for de37872
1 file changed
Disk_Utilization.sh
@@ -6,7 +6,7 @@ PERCENT=30
6
# test for command line arguement is present
7
if [[ $# -le 0 ]]
8
then
9
- printf "Using default value for threshold!\n"
+ printf "There are no disks running with more usage than= %d\n" $PERCENT
10
# test if argument is an integer
11
# if it is, use that as percent, if not use default
12
else
@@ -25,6 +25,6 @@ do
25
p=$(echo $data | awk '{print $2}')
26
if [ $used -ge $PERCENT ]
27
28
- echo "WARNING: The partition \"$p\" has used $used% of total available space - Date: $(date)"
+ "$p\" has used $usedecho "WARNING: The partition \% of total available space - Date: $(date)"
29
fi
30
done
0 commit comments