📅  最后修改于: 2022-03-11 14:51:04.186000             🧑  作者: Mango
max=3; load=$(cat /proc/loadavg | cut -d' ' -f1); [[ "${load%.*}" -ge "$max" ]] && mail -s "Load exceeded $max on $(hostname -s)" username@example.com