Umbrel continues to make awesome projects on its platform – most recently an application called “Uptime Kuma”. Self-described as “a fancy self-hosted monitoring tool,” Uptime Kuma is a project by Louis Lam that attempts to ship a self-hosted version of “Uptime Robot.” For those of you who have just started home mining and want to set up a self-hosted solution for remote uptime monitoring (with Telegram notifications!), Uptime Kuma is great on your umbrella. Here’s how to set it up.
Requirements:
- Umbrella node running with uptime kuma download, running on the same network as the miners you want to monitor
- wire
- 5 minutes of your time
Start by downloading Uptime Kuma from the Umbrel App Store and then open it on a computer on the same network as your Umbrel and your miner. Click “Add New Monitor” in the top left corner of the page.
Fill the form as applicable.
For example for “Friendly name” you can put something like “Garage S9”. For URL, enter your miner’s IP address such as “http://192.168.0.xxx”. If you already have a miner running on your home network, I hope it is safe to assume that you know where to find this information. Set the “Heartbeat Interval” to your liking. Uptime is the number of times Kuma will ping your machine to check that it is online. “Retry” represents the number of times Kuma will retry to ping your machine after the initial failed ping. The “Heartbeat Retry Interval” refers to the amount of time uptime Kuma will wait between retried pings on your machine after an initial failed ping.
Now, for the Telegram Notifications.
In the upper right corner of the “Add New Monitor” form, there is a “Setup Notification” button.
Click on that button and you will open notification setting form.
From here, choose Telegram from the dropdown list and choose a name for your Telegram alerts. Again, you can put something like “Garage S9” for example. You will need Telegram bot token, which you can get from here: https://t.me/BotFather. In the Telegram chat with botfather, type “/newbot” and press Enter. It will answer with a few questions: “Okay, a new bot. How are we going to call it? Please choose a name for your bot.” Here, again, you can put something like “Garage S9”, for example. “Okay. Now choose a username for your bot. It should end in ‘bot’. Like this, for example: TetrisBot or tetris_bot”. Here, again, you can put something like “Garage S9 bot”. The bot will then say you’re 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 on the link below the blank Chat ID field to get the Chat ID information.
That link should take you to a new webpage for the API that looks like a bunch of shady Super Coder text but all you need is the chat ID from here. For me, it was the eighth line of text on the page. Note: To start a chat you need to send a Telegram message to your bot and generate a Chat ID before it is shown on the link in the Chat ID form. Send a test message to your newly created bot name before clicking on the link below the empty Chat ID field.
Paste that chat id in telegram notification form on uptime kuma and hit test. You should receive a Telegram message from your newly created bot. Save the notification form at Uptime Kuma and then scroll down and save the “Add New Monitor” form.
Boom! If that all works out, you should have a working Telegram information bot for your miners. Test it out by disconnecting for a few minutes and see if you get a Telegram message from your bot. You can monitor uptime on any browsing device that can access your umbrella via the Uptime Kuma web GUI.
Happy hashing.
This is a guest post by Scott Marmol. The opinions expressed are solely their own and do not necessarily reflect the views of BTC Inc. bitcoin magazine,