Send a message to your bot (not the /start message, but another after that) and refresh the API page.
For the bot to know where to send the notifications we need our own Telegram ID. Here you will get the URL to the bot and most important your API-Key (the one in the screenshot won’t work, so don’t even try to use it).
Now your bot is almost done and you will get a confirmation from the botfather, which will look something like this: We will name the bot “NagiosNotification20191219_bot” for example. The username needs to be unique, so adding a timestamp or at least the day will help. This will make the bot searchable by anyone, so make it something only you know. It must end in “bot”, and this will be the ID of the bot (just like BotFather). Next you will need to provide a username for the bot. So make it something like “Nagios notifications” Give the bot a name (this is not the username of the bot, we will come to this later). To create a new bot, use the command /newbot To do so, go to your Telegram (I recommend using the web interface for this), search for the user and start a conversation with the bot. Step 1 – Set up a Telegram botįirst we need a bot to send out our notifications, so we just set up one. I found some tutorials, but none of them were really complete from start to finish, so I will just make one on my own.
#NAGIOS GROWL NOTIFICATION HOW TO#
Since I didn’t want to set up mail notifications for this, I was on the search for some tutorials how to set up Telegram notifications easily. I’m using a little Nagios core server at home to monitor my systems (are updates available for my NAS or my Raspberry Pis and so on).