From 2aed337a375174e4194072528e0ce3de1ae02416 Mon Sep 17 00:00:00 2001 From: kai Date: Sun, 26 Apr 2026 15:19:21 +0000 Subject: [PATCH] =?UTF-8?q?failover.sh=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit für benachrichtigungen --- failover.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 failover.sh diff --git a/failover.sh b/failover.sh new file mode 100644 index 0000000..7c2bb40 --- /dev/null +++ b/failover.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +STATE=$1 +HOST=$(hostname) + +curl -s -X POST "https://api.telegram.org/bot8101319618:AAHboFVVgmLPccJB0MDr_R2g0K90hkGqkRw/sendMessage" \ + -d chat_id="581059353" \ + -d text="🧠 Pi-hole Cluster Event: +Host: $HOST +State: $STATE" \ No newline at end of file