zabbix/zabbix-alert.sh

12 lines
356 B
Bash

#!/bin/bash
#Desenvolvido por: Bee Solutions
#Autor: Fernando Almondes
#Data: 29/05/2023
# Modificado por: William Grando (INSTANT Tecnologia)
URL="http://zbx-walert:4000/api/send"
PHONE="$1"
TITULO="$2"
MESSAGE="$TITULO$3"
wget -q -O- --post-data "{\"number\": \"${PHONE}\", \"message\": \"${MESSAGE}\"}" "$URL" --header "content-type: application/json"