Changes between Version 12 and Version 13 of NSM2021/Agenda/AlertsLibrenms


Ignore:
Timestamp:
May 16, 2021, 4:00:03 PM (4 years ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NSM2021/Agenda/AlertsLibrenms

    v12 v13  
    6767Here we will add the BOT to a Telegram Group so that many users can be included into this group.
    6868
    69 Telegram BOT and Group creation can be found from [wiki:NSM2021/Agenda/TelegramGuide here].
     69==== Create Telegram BOT ====
     70
     71Install Telegram app in to your PC. ( If you are not a Telegram user, download Telegram app to your mobile phone and create an account). Log in using your account.
     72
     73* Add BOT Father to your account. `https://t.me/botfather`
     74* Generate a new bot with the command "/newbot" !BotFather is then asking for a username and a normal name. After that your bot is created and you get a HTTP token. (for more options for your bot type "/help")
     75* Add your bot to telegram with the following url: `http://telegram.me/<botname>` to use app or `https://web.telegram.org/<botname>` to use in web, and send some text to the bot.
     76* The !BotFather should have responded with a token, copy your token code and go to the following page in chrome: `https://api.telegram.org/bot<tokencode>/getUpdates` (this could take a while so continue to refresh until you see something similar to below)
     77* You see a json code with the message you sent to the bot. Note the Chat id. In this example that is “-9787468” within this example: `"message":{"message_id":7,"from":"id":656556,"first_name":"Joo","last_name":"Doo","username":"!JohnDoo"},"chat":{"id":-9787468,"title":"Telegram Group"},"date":1435216924,"text":"Hi"}}]}`.
     78
     79* Create a group with your BOT and add you and few of your colleagues who you needs to be notified. Add some sample messages to the group. Refresh `https://api.telegram.org/bot<tokencode>/getUpdates` pick the Chat ID of the group chat (which is not of the Bot itself we received earlier).
     80
    7081
    7182Next, Setup the Telegram Transport on LibreNMS.
     
    8798
    8899== Alert Rules ==
     100
     101[wiki:Cnbp2019/Agenda/LibreNMSAlertrules Custom Alert Rules Guide]