#!/bin/bash
ip='10.0.101.96'
time=`date +%F-%H:%M`
tmpfile=/tmp/disk.txt
mail_address=`xxxxx@163.com`
cipan=`df -h |awk '{print $5}' |sed 's/%//g' | sed -n 5p`
touch /tmp/disk.txt
echo "From :$ip" > $tmpfile
echo "Date time:$time" >> $tmpfile
echo "df :$cipan" >> $tmpfile
if [ $cipan -gt 6 ] ;
then
echo $cipan
fi
linux下磁盘报警脚本
原创Python_Xduo ©著作权
©著作权归作者所有:来自51CTO博客作者Python_Xduo的原创作品,请联系作者获取转载授权,否则将追究法律责任
上一篇:同步163 源
下一篇:python 的学习笔记
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Linux下磁盘IO读写性能测试脚本
使用Linux自带的dd命令进行磁盘IO读写性能测试
Linux dd 性能 磁盘读写