From d6719e9d490d4d9ab2471532d9f5a6e6341fff23 Mon Sep 17 00:00:00 2001 From: William Grando Date: Mon, 9 Jun 2025 16:34:37 -0300 Subject: [PATCH] Adicionada a service walert. --- docker-compose.yml | 17 +++++++++++++++++ zabbix-alert.sh | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 9ce887f..682e9d5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -85,5 +85,22 @@ services: - zbx-agent-passive - zbx-agent-ubuntu + zbx-walert: + container_name: zbx-walert + image: grandow/walert + restart: always + ports: + - 14211:4000 + volumes: + - "./tokens:/opt/whatsapp/tokens" + environment: + - TZ=America/Sao_Paulo + healthcheck: + test: ["CMD", "bash", "-c", "curl -s http://localhost:4000/status | grep -o 'successChat' || exit 1"] + interval: 10s + timeout: 5s + start_period: 60s + retries: 5 + networks: zbx-net: diff --git a/zabbix-alert.sh b/zabbix-alert.sh index a498bb8..bb6979b 100644 --- a/zabbix-alert.sh +++ b/zabbix-alert.sh @@ -4,7 +4,7 @@ #Autor: Fernando Almondes #Data: 29/05/2023 # Modificado por: William Grando (INSTANT Tecnologia) -URL="http://:14212/api/send" +URL="http://zbx-walert:4000/api/send" PHONE="$1" TITULO="$2" MESSAGE="$TITULO$3"