上传文件至 /
This commit is contained in:
parent
a2872bd67f
commit
b8d802f54d
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/bash
|
||||
#
|
||||
#by fuxiaoshun 4/1
|
||||
time=`date +%F-%T`
|
||||
a=`df -h | awk NR==6'{print $5}'`
|
||||
if [ ${a%\%*} -ge 1 ];then
|
||||
echo "$time告警,/分区使用不足" >>/tmp/1.txt
|
||||
else
|
||||
echo "/分区内存足够"
|
||||
fi
|
Loading…
Reference in New Issue