zabbix钉钉报警
·

curl地址为钉钉群webhook
robot.sh
#!/bin/bash
text=$1
curl 'https://oapi.dingtalk.com/robot/send?access_token=xxxxxxxxxx' -H 'Content-Type: application/json' -d '
{"msgtype": "text",
"text": {
"content": "'"$text"'"
},
"at":{
"atMobiles":[
"1xxxxxxxx"
],
"isAtAll":false
}
}'
转载于:https://blog.51cto.com/13740724/2359013
更多推荐

所有评论(0)