17 lines
271 B
Bash
17 lines
271 B
Bash
#!/bin/bash
|
|
|
|
alarm="$1"
|
|
|
|
curl 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=ddea3f5f-fbfc-4c21-994a-71e9fc50e4ef' \
|
|
-H 'Content-Type: application/json' \
|
|
-d '
|
|
{
|
|
"msgtype": "text",
|
|
"text": {
|
|
"content": "'"$alarm"'"
|
|
}
|
|
}' > /dev/null 2>&1
|
|
|
|
|
|
|