宝塔时时监控域名

#!/bin/bash
#宝塔时时监控域名
cd /www/server/panel/data/check_domain
        for i in `ls /www/server/panel/data/check_domain | \
        grep -v 'zh.666.top' | \
        grep -v 'web.666.top' |\
        grep -v 'admin.555.vip'` 
        do 
                if [[ "`jq '.msg' $i`" = '"无法访问"' ]];then
                curl -s -o /dev/null -X POST "https://api.telegram.org/bot2133309226:AAECwiIYa-WuTtpW3S9_7U6ZwZ_z0GcBEwQ/sendMessage" -d chat_id="-771262501" -d text="$HOSTNAME++`echo "$i" | sed "s/\.pl//g"`++网络不佳++@ben_niao++@xiaoo888"
                fi
        done

Last updated