#!/bin/bash disk_cciss=`df -h |grep /dev/mapper/vg-root |awk '{print $5}' |cut -f 1 -d "%"` # 设置报警的免费硬盘容量是80%,如果目前的硬盘使用的80%以上,即时邮件提醒 if [ $disk_cciss -gt 80 ] then echo &q
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号