Skip to content

Instantly share code, notes, and snippets.

@te-online
te-online / smartd-telegram-notify.md
Last active January 4, 2024 15:27
How to make smartmontools send errors to you via Telegram messenger.

###Step by step

Installing smartmontools

  1. Install smartmontools with sudo apt-get install smartmontools

Create your new bot

  1. Create a new telegram bot via the botfather (see https://core.telegram.org/bots#3-how-do-i-create-a-bot). You will need the token of the bot from botfather.
  2. Initiate a chat with your new bot.
  3. Send a GET to https://api.telegram.org/bot{YOUR_TOKEN}/getUpdates.