在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:monitor-http-server开源软件地址:https://gitee.com/yeetrack/monitor-http-server开源软件介绍:monitor-http-serverSimple script to monitor if servers are responding (status 200) or not. ScreenshotDependenciesYou need to have a mail server configured to be able to send notification. InstallThe project use two submodules, the instructions below cover an out of the box installation process: git clone [email protected]:edouard-lopez/monitor-http-server.gitcd monitor-http-servergit submodule init && git submodule update # install the submodules UsageFirst you need to edit the file Note that lines starting with a # ignored hosts# http://wont-be.tested.com/# testhttp://my.website.com/ Then you are good to go and run your first test bash ./monitor-servers.sh [email protected] ./monitor-list-default.txt ##微信报警 当检测到非200的请求时,会触发邮件和微信报警。微信报警需要自己维护weixin-send.sh、和weixin-heart.sh这两个文件。 这两个shell文件其实就是两条curl命令,send文件用来发送微信消息,heart文件用于向腾讯服务器发送心跳,否则时间久了,会踢掉改sid。 |
请发表评论