Skip to content

Telegram notifications Webhook for NIXStats

Notifications You must be signed in to change notification settings

DeadlockState/NIXStats-Webhook-Telegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

NIXStats-Webhook-Telegram

Description

A Webhook to get your servers/monitors notifications on Telegram with NIXStats

Screenshots

screenshot

Installation

Pre-requisites

  • 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)

On your server

  • 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 NIXStats

  • On your account go to "Settings" and in "NOTIFICATION CONTACTS" tab add the URL of your Webhook in "Webhook URI" field

Webhook_URI

  • On your server in "NOTIFICATIONS" tab and "Manage Notifications" click on "recipients" and check "Webhook"

Notification

Special thanks

Twitter GitHub Martin Bouillaud and his NIXStats-Webhook-Telegram version

Twitter GitHub Vincent from NIXStats for json samples

Contact me

Twitter @Punk__R0ck

About

Telegram notifications Webhook for NIXStats

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages