Umbrel continues to onboard superior initiatives to their platform — most just lately an software referred to as “Uptime Kuma.” Self-described as “a fancy self-hosted monitoring tool,” Uptime Kuma is a challenge by Louis Lam that endeavors to ship a self-hosted model of “Uptime Robot.” For these of you who’ve began house mining and need to arrange a self-hosted answer to distant uptime monitoring (with Telegram notifications!), Uptime Kuma in your Umbrel is unbelievable. Here’s how to set it up.
Requirements:
- Umbrel node working with Uptime Kuma downloaded, on the identical community that the miners you would like to monitor are on
- Telegram
- 5 minutes of your time
Start by downloading Uptime Kuma from the Umbrel app retailer after which open it up on a pc on the identical community as your Umbrel and your miner(s). Click “Add New Monitor” within the prime left nook of the web page.
Fill out the shape as relevant.
For “Friendly Name” you can put something like “Garage S9” for example. For the URL, put in the IP address of your miner such as “http://192.168.0.xxx“. If you already have a miner running on your home network, I hope it’s safe to assume you know where to find this information. Set the “Heartbeat Interval” to your liking. This is how frequently Uptime Kuma will ping your machine to check that it is online. “Retries” represents the number of times Uptime Kuma will reattempt to ping your machine after an initial failed ping. “Heartbeat Retry Interval” represents the amount of time Uptime Kuma will wait between reattempted pings to your machine after an initial failed ping.
Now, for the Telegram notifications.
In the top right corner of the “Add New Monitor” form, there is a “Setup Notification” button.
Click that button and you’ll open the notification settings form.
From right here, select Telegram from the dropdown checklist and select a reputation to your Telegram alert. Again, you possibly can put one thing like “Garage S9”, for instance. You’ll want a Telegram Bot Token, which you may get from right here: https://t.me/BotFather. In the Telegram chat with the BotFather, sort “/newbot” and hit enter. It will reply with a couple of questions: “Alright, a brand new bot. How are we going to name it? Please select a reputation to your bot.” Here, again, you can put something like “Garage S9” for example. “Good. Now let’s select a username to your bot. It should finish in `bot`. Like this, for instance: TetrisBot or tetris_bot”. Here, again, you can put something like “Garage S9 Bot”. Then the bot will say you are done, and provide you with an API key.
Take that API key and paste it into the “Bot Token” field on the Uptime Kuma notification form.
Click the link below the empty chat ID field to get the chat ID information.
That link should take you to a new webpage for the API which looks like a bunch of shadowy super coder text but all you need from here is the chat ID. For me, this was the eighth row of text on the page. Note: You need to send a Telegram message to your bot to initiate the chat and generate a chat ID before the chat ID will show at the link in the form. Send a test message to whatever your newly-created bot name is before clicking the link below the empty chat ID field.
Paste that chat ID into the Telegram notification form on Uptime Kuma and hit Test. You should receive a Telegram message from your newly created bot. Save the notification form on Uptime Kuma and then scroll down and save the “Add New Monitor” form.
Boom! If that all worked, you should have a functioning Telegram notification bot for your miners. Test this by disconnecting for a couple minutes and see if you get a Telegram message from your bot. You can also monitor uptime on any browsing device that can access your Umbrel via the Uptime Kuma web GUI.
Happy Hashing.
This is a visitor publish by Scott Marmoll. Opinions expressed are solely their personal and don’t essentially replicate these of BTC Inc or Bitcoin Magazine.