scripts/alert/sendmsg.sh
2023-06-05 23:04:30 +08:00

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