标签:not 监控 增加 执行 ble highlight gre shel 邮件
增加shell脚本
#!/bin/bash n=`curl -I -s http://127.0.0.1:8088/projectName/index.jsp | grep "HTTP/1.1 200" | wc -l` if [ $n -ne 1 ] then title=‘projectName监控通知‘ notice=‘[www.xxx.com] projectName is not available‘ echo $notice echo $notice | mail -s $title xxx@163.com fi
然后使用crontab没隔5分钟执行shell脚本
标签:not 监控 增加 执行 ble highlight gre shel 邮件
原文地址:https://www.cnblogs.com/linlf03/p/13194180.html