A Webhook to get your servers/monitors notifications on Telegram with NIXStats
- A NIXStats account
- NIXStats agent installed on your server
- A Telegram Bot (see here how to create a new Telegram bot)
- Your Telegram user ID (you can get it here)
- Download the Webhook
cd /var/www/html/
mkdir NIXStats && cd NIXStats/
wget https://raw.githubusercontent.com/Punk--Rock/NIXStats-Webhook-Telegram/master/webhook.php
mkdir functions && cd functions/
wget https://raw.githubusercontent.com/Punk--Rock/NIXStats-Webhook-Telegram/master/functions/telegram.php
- Edit
$telegrambot
and$telegramchatid
variables in webhook.php with your Telegram bot token and your Telegram user ID
- On your account go to "Settings" and in "NOTIFICATION CONTACTS" tab add the URL of your Webhook in "Webhook URI" field
- On your server in "NOTIFICATIONS" tab and "Manage Notifications" click on "recipients" and check "Webhook"
Martin Bouillaud and his NIXStats-Webhook-Telegram version
Vincent from NIXStats for json samples