From 6ec6e258551a7f26368fa972238c3e2d7b0b9acc Mon Sep 17 00:00:00 2001 From: whyour Date: Thu, 29 Sep 2022 00:59:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B5=84=E6=BA=90=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/task.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/task.sh b/shell/task.sh index 6595edd1..46486efc 100755 --- a/shell/task.sh +++ b/shell/task.sh @@ -127,7 +127,7 @@ check_server() { disk_use=$(df -P | grep /dev | grep -v -E '(tmp|boot|shm)' | awk '{print $5}' | cut -f 1 -d "%") - eval echo -e "当前CPU占用 $cpu_use% 内存占用 $mem_use% 磁盘占用 $disk_use% \\\n" $cmd + eval echo -e "\#\# 当前CPU占用 $cpu_use% 内存占用 $mem_use% 磁盘占用 $disk_use% \\\n" $cmd if [[ $cpu_use -gt $cpu_warn ]]; then notify_api "CPU异常警告" "当前CPU占用 $cpu_use%" exit 1