Update dsmon.sh
This commit is contained in:
4
dsmon.sh
4
dsmon.sh
@@ -171,7 +171,7 @@ CHECK(){
|
|||||||
# echo
|
# echo
|
||||||
|
|
||||||
if [ "${1}" != "report" ]; then
|
if [ "${1}" != "report" ]; then
|
||||||
c=0; cw=30; spcA=''
|
c=0; cw=20; spcA=''
|
||||||
spc1=`expr ${cw} - 5`
|
spc1=`expr ${cw} - 5`
|
||||||
until [ $c = ${spc1} ]; do spcA="${spcA} "; c=`expr $c + 1`; done
|
until [ $c = ${spc1} ]; do spcA="${spcA} "; c=`expr $c + 1`; done
|
||||||
c=0; cw=10; spcB=''
|
c=0; cw=10; spcB=''
|
||||||
@@ -196,7 +196,7 @@ CHECK(){
|
|||||||
CRITICAL_LEVEL=$(printf "%0.2f" $(jq -n $WARNING_LEVEL-$WARNING_LEVEL/2))
|
CRITICAL_LEVEL=$(printf "%0.2f" $(jq -n $WARNING_LEVEL-$WARNING_LEVEL/2))
|
||||||
|
|
||||||
if [ "${1}" != "report" ]; then
|
if [ "${1}" != "report" ]; then
|
||||||
c=0; cw=30; spcA=''
|
c=0; cw=20; spcA=''
|
||||||
spc1=`expr ${cw} - ${#DRIVEINFO_SHORTNAME[$DRIVE]}`
|
spc1=`expr ${cw} - ${#DRIVEINFO_SHORTNAME[$DRIVE]}`
|
||||||
until [ $c = ${spc1} ]; do spcA="${spcA} "; c=`expr $c + 1`; done
|
until [ $c = ${spc1} ]; do spcA="${spcA} "; c=`expr $c + 1`; done
|
||||||
c=0; cw=10; spcB=''
|
c=0; cw=10; spcB=''
|
||||||
|
|||||||
Reference in New Issue
Block a user