当前位置:网站首页>How does ZABBIX configure alarm SMS? (alert SMS notification setting process)
How does ZABBIX configure alarm SMS? (alert SMS notification setting process)
2022-07-01 01:49:00 【Sky breaking】
zabbix It's based on WEB The interface provides enterprise level open source solutions for distributed system monitoring and network monitoring ., Ensure the safe operation of the server system ; And provide a flexible notification mechanism to allow system administrators to quickly locate / Solve all kinds of problems .
More accurately push the alarm notification to the operation and maintenance personnel and other designated personnel , Short message because of its fast speed 、 The advantages of strong presentation , It has become an important notification method in alarm . This article will introduce zabbix How to configure SMS alarm service .
Zabbix SMS process configuration
One 、 Create send script
Create a sendsms.py Of Python Script , Put it in zabbix Script path , Please open... In the configuration file AlertScriptsPath= route .
# matters needing attention :
* Interface type : Trigger SMS interface , Support sending verification code SMS 、 Order notification SMS , Holiday blessings, etc .
* Account registration : Please open an account through this address http://user.ihuyi.com/?exClaO
#(1) During commissioning , Please test with the default template , See the interface document for the default template ;
#(2) Please use user name And APIkey To call the interface ,APIkey Available at the member center ;
#(3) This code is only for reference when accessing the mutual wireless short message interface , Customers can write their own according to their actual needs ;
#!/usr/local/bin/python
#-*- coding:utf-8 -*-
import urllib2
import urllib
# user name To view the user name, please log in to the user center -> Verification Code 、 Notice text message -> Account and signature settings ->APIID
account = " user name "
# password To view the password, please log in to the user center -> Verification Code 、 Notice text message -> Account and signature settings ->APIKEY
password = " password "
mobile = "138xxxxxxxx"
text = " Your verification code is :121254. Please don't leak the CAPTCHA to others ."
data = {'account': account, 'password' : password, 'content': text, 'mobile':mobile,'format':'json' }
req = urllib2.urlopen(
url= 'http://106.ihuyi.com/webservice/sms.php?method=Submit',
data= urllib.urlencode(data)
)
content =req.read()
Log in to Huyi wireless console , On the verification code notification overview page , Get mutual wireless APIID And APIKEY:

stay zabbix Set in to pass two parameters to the script , One is the cell phone number , One is content , The content part will be later Of Media types To configure .
边栏推荐
- Understanding and application of Qt5 layout in creation
- Analysis on user behavior loss of data exploration e-commerce platform
- 小程序中实现excel数据的批量导入
- AS400 entretien d'usine
- 如何选择券商?另外,手机开户安全么?
- 软件开发中的上游和下游
- 思特奇加入openGauss开源社区,共同推动数据库产业生态发展
- 一站式洞察行业热点,飞瓜数据B站新功能「流量大盘」上线!
- Fast understanding of forward proxy and reverse proxy
- org.redisson.client.RedisResponseTimeoutException: Redis server response timeout (3000 ms)错误解决
猜你喜欢

3dsmax plug-in development traversal node object and object acquisition and inode transformation matrix description

工作八年的程序员,却拿着毕业三年的工资,再不开窍就真晚了...
2022年最新csdn涨薪技术栈-app自动化测试概述

go导入自建包

Gin configuration file

Lecun, a Turing Award winner, pointed out that the future of AI lies in self-learning, and the company has embarked on the journey

New opportunities for vr/ar brought by metauniverse

Necessary tools for testing - postman practical tutorial
![[fundamentals of wireless communication-15]: illustrated mobile communication technology and application development-3-overview of digital communication 2G GSM, CDMA, 3G wdcma/cdma200/td-scdma, 4G LTE](/img/22/1efa444220131359b06005f597c9db.png)
[fundamentals of wireless communication-15]: illustrated mobile communication technology and application development-3-overview of digital communication 2G GSM, CDMA, 3G wdcma/cdma200/td-scdma, 4G LTE

Upstream and downstream in software development
随机推荐
Relationship between ASCII, Unicode, GBK, UTF-8
Composants de la grille de données portatifs
Some items of OCR
哪有什么未来可期,不过是打工人临死前最后的幻想罢了
3500字归纳总结:一名合格的软件测试工程师需要掌握的技能大全
[simulation] 922 Sort Array By Parity II
Necessary tools for testing - postman practical tutorial
Laravel+redis generates an order number - automatically increase from 1 on the same day
Batch import of Excel data in applet
[dynamic planning] path dp:931 Minimum Falling Path Sum
laravel+redis 生成订单号-当天从1开始自增
Neo4j installation, operation, project construction and function realization
The argument type 'function' can't be assigned to the parameter type 'void function()‘
数学知识:求组合数 IV—求组合数
[stack] 921 Minimum Add to Make Parentheses Valid
MYSQL 数据库查看磁盘占用情况
What are the functions of soil microorganisms in microbial detection?
VirtualBox 安装增强功能
[problem handled] -nvidia SMI command cannot obtain the GPU process number of its own container and the external GPU process number
Electron pit Addon