Zabbix+telegram Alarm

Source: Internet
Author: User

1. Install Telegram client:

Yum Install Telegram-y

2. Activation API:

Https://my.telegram.org/apps

Then copy the public keys locally and name them as Tg-server.pub

3. Start the local listening port:

/usr/bin/telegram-cli-u root-vvvvrc-k/home/tg-server.pub-w-dl/home/tg.log-p 9999 &


4. Test send:

echo "msg sa tesddddd" | NC 127.0.0.1 9999 # # #说明sa can be a group, can also say personal, then the content msg for telegram send Message command


5. Zabbix Send Script

VI telegram.sh#!/bin/shto=$1subject=$2body=$3echo "msg sa $subject $body" | NC 127.0.0.1 9999

Description: MSG is send message, SA is group or user, I am here Group

6. Reference Address:

Https://www.domoticz.com/wiki/Installing_Telegram_Notification_System


Zabbix+telegram Alarm

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.