shell脚本监控https证书到期时间,并支持钉钉和企业微信通知
#!/bin/bash ################ Version Info ################## # DAte: 2023/2/27 # Author: rocdk890 # Version: 2.0 ...
#!/bin/bash ################ Version Info ################## # DAte: 2023/2/27 # Author: rocdk890 # Version: 2.0 ...
#!/bin/bash QMPATH="/usr/sbin/qm" MAX_FAILURES=3 # 连续失败的最大次数 RESET_AFTER_SUCCESS=2 # 连续成功后重置失败计数的阈值 FAILURE_FILE="/pa...
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- from urllib import request import requests import json from datetime import datetime from dingtalkchatbot....
#!/bin/bash ################ Version Info ################## # Author: ...
#!/bin/bash mysql_binfile=/usr/local/mysql/bin/mysql m...
#!/usr/bin/env python #coding=utf-8 import os,datetime,pyinotify,logging class MyEventHandler(pyinoti...
目前网上关于网站存活监控的脚本很多,本站也放过几个,今天给大家再来个ping+curl监控网站并发邮件报警的脚本,我觉得这个脚本的思路很不错,大家有兴趣的可以下来看看.
脚本内容:
cat /root/soft_shell/check-www.sh
#!/bin/bash #Created by haiyun #set -x while true do list=(blog.slogra.com slogra.com) mail=rocdk@163.com date=$(date -d "today" +"%Y-%m-%d-%H:%M:%S") i=0 id=${#list[*]} while [ $i -lt $id ]...