Log scrapper for Strangelove Labs Horcrux MPC signer for Cosmos SDK chains that echoes log content to a Discord webhook
Tested on Ubuntu 22.04
This script and service assumes that the horcrux signer is running under a user called horcrux
with a home directory /home/horcrux
with the script located here: /home/horcrux/horcrux-disco-mon.sh
sudo chmod a+x horcrux-disco-mon.sh
sentries=( "10.0.0.1:1234" "10.0.0.2:1234" )
sentryLabels=( "sentry1" "sentry2" )
whoami="signer1"
whoamiEmoji="1️⃣"
url="https://discord.com/api/webhooks/..."
sudo mv horcrux-disco-mon.service /etc/systemd/system/horcrux-disco-mon.service
sudo systemctl daemon-reload && sudo systemctl enable horcrux-disco-mon && sudo systemctl start horcrux-disco-mon