Adicionados arquivos do walert.
This commit is contained in:
parent
d6719e9d49
commit
acae45303d
17
readme.md
17
readme.md
@ -100,6 +100,23 @@ services:
|
|||||||
- zbx-agent-passive
|
- zbx-agent-passive
|
||||||
- zbx-agent-ubuntu
|
- 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:
|
networks:
|
||||||
zbx-net:
|
zbx-net:
|
||||||
```
|
```
|
||||||
|
|||||||
@ -1,9 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
# Baseado em BEEZAP - Bee Solutions.
|
||||||
|
|
||||||
#Desenvolvido por: Bee Solutions
|
|
||||||
#Autor: Fernando Almondes
|
|
||||||
#Data: 29/05/2023
|
|
||||||
# Modificado por: William Grando (INSTANT Tecnologia)
|
|
||||||
URL="http://zbx-walert:4000/api/send"
|
URL="http://zbx-walert:4000/api/send"
|
||||||
PHONE="$1"
|
PHONE="$1"
|
||||||
TITULO="$2"
|
TITULO="$2"
|
||||||
31
walert.xml
Normal file
31
walert.xml
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<zabbix_export>
|
||||||
|
<version>6.0</version>
|
||||||
|
<date>2025-06-09T16:41:00Z</date>
|
||||||
|
<media_types>
|
||||||
|
<media_type>
|
||||||
|
<name>Walert</name>
|
||||||
|
<type>SCRIPT</type>
|
||||||
|
<script_name>walert</script_name>
|
||||||
|
<parameters>
|
||||||
|
<parameter>{ALERT.SENDTO}</parameter>
|
||||||
|
<parameter>{ALERT.SUBJECT}</parameter>
|
||||||
|
<parameter>{ALERT.MESSAGE}</parameter>
|
||||||
|
</parameters>
|
||||||
|
<message_templates>
|
||||||
|
<message_template>
|
||||||
|
<event_source>TRIGGERS</event_source>
|
||||||
|
<operation_mode>PROBLEM</operation_mode>
|
||||||
|
<subject>*Alerta de Novo Incidente* ❌</subject>
|
||||||
|
<message>\n\n*Iniciado em*: {EVENT.TIME}\n*Problema*: {EVENT.NAME}\n*Host*: {HOST.NAME}\n*Item*: {ITEM.NAME}\n*IP*: {HOST.IP}\n*Severidade*: {EVENT.SEVERITY}\n*Status Anterior*: {?last(//{ITEM.KEY},#2)}\n*Status Atual*: {EVENT.OPDATA}\n*Ação*: Por favor, verificar dispositivo ❌\n*By*: Bee Solutions (Beezap Bot)</message>
|
||||||
|
</message_template>
|
||||||
|
<message_template>
|
||||||
|
<event_source>TRIGGERS</event_source>
|
||||||
|
<operation_mode>RECOVERY</operation_mode>
|
||||||
|
<subject>*Alerta de Resolução de Incidente* ✅</subject>
|
||||||
|
<message>\n\n*Resolvido em*: {EVENT.RECOVERY.TIME} de {EVENT.RECOVERY.DATE}\n*Problema*: {EVENT.NAME}\n*Duração*: {EVENT.DURATION}\n*Host*: {HOST.NAME}\n*IP*: {HOST.IP}\n*Severidade*: {EVENT.SEVERITY}\n*Status Anterior*: {?last(//{ITEM.KEY},#2)}\n*Status Atual*: {EVENT.OPDATA}\n*Ação*: O Incidente foi resolvido ✅\n*By*: Bee Solutions (Beezap Bot)</message>
|
||||||
|
</message_template>
|
||||||
|
</message_templates>
|
||||||
|
</media_type>
|
||||||
|
</media_types>
|
||||||
|
</zabbix_export>
|
||||||
Loading…
x
Reference in New Issue
Block a user