#!/bin/bash
for i in `cat /opt/sh/Ip.txt |grep -v "#"`
  do
   Bai1=`curl -o /dev/null -s -w "%{http_code}" https://$i`
   #echo $Bai1 
   #echo $i
#exit
      if  [  $Bai1 -eq 200  ];
        then
            echo "$i 当前域名正常"
        else
          curl -s  -X POST   "https://api.telegram.org/bot8144523704:AAFs4emTMutsF5cfrL2eOf2SGYPqZTKQmPk/sendmessage?chat_id=-1001457494622&text=$i 当前域名状态不正常%0A状态码为: $Bai1 %0A请立即更换%0A @licu6668 @dongchen999 @licu6668 @alang123011 @tuzihoutai @wonidie168 @qh888222 @df996699"
          #curl -s  -X POST   "https://api.telegram.org/bot8144523704:AAFs4emTMutsF5cfrL2eOf2SGYPqZTKQmPk/sendmessage?chat_id=-1002408675254&text=$i 当前域名状态不正常%0A状态码为: $Bai1 %0A请立即更换%0A @licu6668 @dongchen999 @licu6668 @alang123011 @tuzihoutai @wonidie168 @qh888222 @df996699"
       fi
done
