#!/bin/bash
##########################
# pushplus推送zabbix告警 #
#########################
topic=$1    #topic为你的群组
title=$2    #title你要的标题内容
content=$3  #你要的具体消息内容
token=6a77xxx53ab #替换自己的token
url=https://www.pushplus.plus/send #pushplus POST和PUT请求接口
json="{\"token\":  \"$token\", \"title\": \"$title\", \"content\": \"$3\", \"template\": \"html\", \"topic\": \"$topic\"}"
curl -H "Content-Type: application/json" -X POST -d "$json" $url
