New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

200.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

 

Top Tags


View all Tags


Send Telegram messages from PRTG

Votes:

0

Your Vote:

Up

Down

It is possible to send Telegram messages from PRTG:

This is how we connected Telegram to our PRTG instance.

Install Cygwin64 (https://cygwin.com/)

Select the Dev part
Search for: libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev and select packages you can select install

- execute the following commands:

mkdir /home/install cd /home/install git clone https://github.com/vysheng/tg.git && cd tg ./configure —disable-libconfig make

- add these paths to the windows paths: C:\CYGWIN64\BIN;C:\CYGWIN64\USR\BIN - create the following scripts in /home/install/tg:

File send.expect

#!/usr/bin/expect cd /home/install/tg spawn ./telegram -B expect "User" send "msg $argv\r" expect "Sent:" send "quit\r" expect eof puts "Message has been sent”

File message.sh

#!/bin/bash cd /home/install/tg mkdir -p ~/.telegram cp binlog ~/.telegram/binlog ./send.expect [email protected]

File sendmessage.bat

@echo off "c:\cygwin64\bin\sh.exe" "/home/install/tg/message.sh" %* exit 0

- Install PSTools Suite (http://technet.microsoft.com/en-us/sysinternals/bb896649.aspx)
- Execute CMD as SYSTEM: psexec -i -s cmd.exe
- In the command box, execute: c:\cygwin64\home\install\tg\telegram -B
- Login in Telegram with your number.
- Quit.
- Copy sendmessage.bat to the PRTG installation folder\Notifications\EXE.
- Restart PRTG
- Create a notification with this Batch file. The first parameter must be the name of the group or user were you want to send the message to (spaces are converted to underscores).

prtg push sms telegram

Created on Aug 6, 2014 1:39:05 PM by  mgreving (20) 1



1 Reply

Votes:

0

Your Vote:

Up

Down

Wow!!! Thank you for sharing this! May I ask you to post the detailed steps in an answer to this article (like e.g. here)? This would allow users to upvote your answer as well as tagging as best answer.
Best regards

Created on Aug 6, 2014 5:53:24 PM by  Konstantin Wolff [Paessler Support]



Please log in or register to enter your reply.


Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.