From 7aefaeb3175e0e73895b579f204dca39b915f742 Mon Sep 17 00:00:00 2001 From: William Grando Date: Mon, 9 Jun 2025 13:03:01 -0300 Subject: [PATCH] Adicionado alertas whatsapp. --- zabbix-alert.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 zabbix-alert.sh diff --git a/zabbix-alert.sh b/zabbix-alert.sh new file mode 100644 index 0000000..a498bb8 --- /dev/null +++ b/zabbix-alert.sh @@ -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://: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" \ No newline at end of file