mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-22 22:36:06 +08:00
修改资源提示
This commit is contained in:
parent
af48bc378b
commit
6ec6e25855
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user