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