发布时间:2016-03-29 13:46:01
#!/bin/shM=`date +"%b %d"`F=/home/yuzf/a`date +"%Y-%m-%d"`DAY=`date +"%Y-%m-%d"`IP=`ifconfig xenbr0 | grep inet | awk '{print $2}' | awk -F ':' '{print $2}'`sender=""senderpwd=""smtp=""title="xenserver syslog"receiver=""#cc=""cat /var/log/secure | grep "$M" | grep "session opened for user.........【阅读全文】
发布时间:2016-03-29 13:43:40
#!/bin/shSPACE=`df -h | sed -n '2p' | awk '{print $5}' | sed 's/%$//'`IP=`ifconfig xenbr0 | grep inet | awk '{print $2}' | awk -F ':' '{print $2}'`DAY=`date +"%Y-%m-%d %H:%M"`sender=""senderpwd=""smtp=""title="disk space alarm"receiver=""cc=""if [ $SPACE -gt 60 ]then/opt/sendEmail-v1.56/.........【阅读全文】