diff options
Diffstat (limited to 'linhes/linhes-system/diskspace.sh')
-rwxr-xr-x | linhes/linhes-system/diskspace.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linhes/linhes-system/diskspace.sh b/linhes/linhes-system/diskspace.sh index f28cf46..1ab6dd7 100755 --- a/linhes/linhes-system/diskspace.sh +++ b/linhes/linhes-system/diskspace.sh @@ -17,7 +17,7 @@ AWK='/usr/bin/awk' CUT='/usr/bin/cut' HOSTNAME='/usr/bin/hostnamectl hostname' DATE='/usr/bin/date' -MSG_CLIENT='/usr/bin/notify-send' +MSG_CLIENT='/usr/bin/lh_notify-send' # # Static System Variables @@ -59,7 +59,7 @@ $DF -HPl | $GREP -E "^/dev/" | $AWK '{ print $5 " " $6 " " $1 }' | while read OU if [ ${USED_PCENT} -ge $ALERT ]; then echo "WARNING: Partition (${PARTITION}) on (${DEVICE}) is ${USED_PCENT}% full on ${THIS_HOST}" if [ $OSD = true ] && { [ ${PARTITION} = / ] || [ ${PARTITION} = /home ] || [ ${PARTITION} = /data/srv/mysql ]; } then - $MSG_CLIENT "Disk Space WARNING" "Partition (${PARTITION}) on (${DEVICE}) is ${USED_PCENT}% full." + $MSG_CLIENT --app-name="Disk Space WARNING" "Partition (${PARTITION}) on (${DEVICE}) is ${USED_PCENT}% full." fi fi done |