Linux system If the system is at risk, you can use the zabbix telegram alarm mechanism to automatically send emails to users. This article will introduce how the Linux system configures the zabbix telegram alarm.
1, the client installed telegram:
yum install telegram -y
2, the activation api:
https: //my. Telegram.org/apps
Then rename the public keys to 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 &ldquo ;msg sa tesddddd ” |
Nc 127.0.0.1 9999 ###说明sa can be a group, can also say personal, then content msg send a message command for telegram
5, zabbix send script
vi telegram.sh< Br>
#! /bin/sh
to=$1
subject=$2
body=$3
echo “msg sa $subject $body” |
Nc 127.0.0.1 9999
Description: msg is to send a message, sa is a group or a user, I am a group here.
The above is the introduction of the zabbix telegram alarm in the Linux system. With this alarm mechanism, the Linux system can be monitored in real time. If the fault is sent, it can be processed in the first time.
In school, you usually use campus network, you need to use special software to connect to the networ
Usually we use the command to view the disk mounted in the Linux system, in fact, in addition to thi
Linux system is similar to Unix system. When there is still a big difference, users
Emacs is recognized as one of the best code editors, and many users use Emacs on Linux. However, bec
What should I do if Ubuntu is installed and restarted after VM Virtualbox?
Linux tips for viewing directory content
How to deal with the database disappeared after modifying the root password of mysql under Linux?
How to choose qcow2 and raw image format for Linux system
Linux uses GRUB to add kernel parameters
Summary of methods for getting help from Linux
Linux yum prompts Loaded plugins error?
Linux method of establishing dmg file through command line
Linux system file permissions and access mode introduction
How to use the fuser tool on Linux
How to solve the difference in the used space detected by the Linux df and du commands?
How to use Continuum to build Win10 Universal Application
Win7 method to change the boot sound
Nokia and Microsoft jointly update the Saipan Bella operating system
What is the latest discovery of Win10? Start Menu Jump List Tutorial
How to use Terminal Services resources to redirect Windows [Figure]
Win10 right-click menu Windows Defender scan item cleanup method
Which Win10 versions does Microsoft prepare for public downloads?