Enterprise micro-channel robot push alarms

# QQ450433231 

Enterprise micro-channel group chat inside the robot increases, the robot will send the information provided URL.

image.png

image.png

According to the corresponding key writing shell written here convenient function call 


wx_web(){
#WEB监控机器人 政务云二狗
cat > sendweb.sh<< EOF
curl 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=d51ce794-4ec7-44b8-aef2-4e28b4703b' \
   -H 'Content-Type: application/json' \
   -d '
   {
        "msgtype": "text",
        "text": {
            "content": "$info",
            "mentioned_mobile_list":["$people"]
        }
   }'
EOF
sh sendweb.sh && rm -rf sendweb.sh
}
# / bin / bash 
# script to send test 

. /root/weixin.sh # call the function just written 
info = "" # send 
people = "" # @ in the group who can fill the other contact number is empty 
wx_web

image.png

Ip monitor script combine to achieve micro-channel transmit alarm information. 



Guess you like

Origin blog.51cto.com/junhai/2424374