Small improvement to remove error messages from df
This commit is contained in:
parent
a5f28c3d6d
commit
0571130cbd
1 changed files with 11 additions and 9 deletions
8
dfc.sh
8
dfc.sh
|
@ -2,7 +2,7 @@
|
|||
# df (= DiskFree) with some options and colored if Alert levels are exceeded
|
||||
#
|
||||
# (c) GPL by Ulf Bartolomäus
|
||||
VERSION="$( basename $0 ) Version 0.1.2 from 03.11.2021"
|
||||
VERSION="$( basename $0 ) Version 0.1.3 from 31.12.2023"
|
||||
#
|
||||
# Input: -v : Version
|
||||
# -y YY : YY = alert level (yellow) in % (default = 80%)
|
||||
|
@ -11,6 +11,8 @@ VERSION="$( basename $0 ) Version 0.1.2 from 03.11.2021"
|
|||
# Returnvalue: 0
|
||||
#
|
||||
# Changes:
|
||||
# 0.1.3
|
||||
# Add '2> /dev/null' at df to remove error messages
|
||||
# 0.1.2
|
||||
# Some format improfements and adding from options
|
||||
# 0.1.1
|
||||
|
@ -18,8 +20,8 @@ VERSION="$( basename $0 ) Version 0.1.2 from 03.11.2021"
|
|||
|
||||
## Definitions
|
||||
#MyDfC='df -hT' ## df command: -h: human readeable, -T: show filesystem type
|
||||
MyDfC='df -hTx tmpfs -x devtmpfs' ## df -hT command: excluding *tenpfs
|
||||
#MyDfC='df -hTx tmpfs -x devtmpfs -x fuse -x nfs4' ## df -hT command: excluding *tenpfs, fusa and nfs4 filesystems
|
||||
MyDfC='df -hTx tmpfs -x devtmpfs 2> /dev/null' ## df -hT command: excluding *tenpfs
|
||||
#MyDfC='df -hTx tmpfs -x devtmpfs -x fuse -x nfs4 2> /dev/null' ## df -hT command: excluding *tenpfs, fusa and nfs4 filesystems
|
||||
|
||||
MyDfAlert1=80 ## "yellow" for alert level for out of space
|
||||
MyDfAlert2=90 ## "red" for critical alert for out of space
|
||||
|
|
Loading…
Reference in a new issue