Adicionado alertas whatsapp.
This commit is contained in:
parent
06b0328701
commit
7aefaeb317
12
zabbix-alert.sh
Normal file
12
zabbix-alert.sh
Normal file
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
#Desenvolvido por: Bee Solutions
|
||||
#Autor: Fernando Almondes
|
||||
#Data: 29/05/2023
|
||||
# Modificado por: William Grando (INSTANT Tecnologia)
|
||||
URL="http://<gtw>:14212/api/send"
|
||||
PHONE="$1"
|
||||
TITULO="$2"
|
||||
MESSAGE="$TITULO$3"
|
||||
|
||||
wget -q -O- --post-data "{\"number\": \"${PHONE}\", \"message\": \"${MESSAGE}\"}" "$URL" --header "content-type: application/json"
|
||||
Loading…
x
Reference in New Issue
Block a user