Skip to content

Log scrapper for Strange Love Labs Horcrux MPC signer for Cosmos SDK chains that echoes log content to a Discord webhook

License

Notifications You must be signed in to change notification settings

kohola-io/horcrux-disco-mon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

horcrux-disco-mon

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

Horcrux Disco Mon

Installing on each signer

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

Make executable:

sudo chmod a+x horcrux-disco-mon.sh

Change the top portion of the script with your sentry IP:port information (order matters):

sentries=( "10.0.0.1:1234" "10.0.0.2:1234" )

Change the sentry labels (use the same order as above):

sentryLabels=( "sentry1" "sentry2" )

Label each signer:

whoami="signer1"

Give each signer an emoji:

whoamiEmoji="1️⃣"

Create a Discord Webhook in your channel and paste the webhook url into the script:

url="https://discord.com/api/webhooks/..."

Move service file to systemd directory:

sudo mv horcrux-disco-mon.service /etc/systemd/system/horcrux-disco-mon.service

Reload systemd and enable and start

sudo systemctl daemon-reload && sudo systemctl enable horcrux-disco-mon && sudo systemctl start horcrux-disco-mon

About

Log scrapper for Strange Love Labs Horcrux MPC signer for Cosmos SDK chains that echoes log content to a Discord webhook

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages