Compare commits

..

No commits in common. "d6719e9d490d4d9ab2471532d9f5a6e6341fff23" and "06b0328701f7dfecde071d25b6d3ce55eefbb2d3" have entirely different histories.

2 changed files with 0 additions and 29 deletions

View File

@ -85,22 +85,5 @@ 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:

View File

@ -1,12 +0,0 @@
#!/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"