当前位置:网站首页>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 .
边栏推荐
- 【JS给元素添加属性:setAttribute;classList.remove;classList.add;】
- 【Proteus仿真】Arduino UNO +74C922键盘解码驱动4X4矩阵键盘
- After working for 6 years, let's take stock of the golden rule of the workplace where workers mix up
- 工作八年的程序员,却拿着毕业三年的工资,再不开窍就真晚了...
- Selenium classic interview question - multi window switching solution
- [Office PDF] PDF merging and splitting will free us from the functional limitations of paid software, OK
- 面对产业互联网的时候,甚至还用消费互联网的方式和方法去落地和实践产业互联网
- 1500w播放下还藏着什么热点?B站2个未来趋势你不得错过
- 3500字归纳总结:一名合格的软件测试工程师需要掌握的技能大全
- Matlab farthest point sampling (FPS improved version)
猜你喜欢

3500 word summary: a complete set of skills that a qualified software testing engineer needs to master

思特奇加入openGauss开源社区,共同推动数据库产业生态发展

正向代理和反向代理快速理解

KS009基于SSH实现宠物管理系统

For the sustainable development of software testing, we must learn to knock code?
![[fundamentals of wireless communication-14]: illustrated mobile communication technology and application development-2-the first generation mobile analog communication big brother](/img/fa/f9bad44147ba9af21183b7bd630e32.png)
[fundamentals of wireless communication-14]: illustrated mobile communication technology and application development-2-the first generation mobile analog communication big brother

Fast understanding of forward proxy and reverse proxy

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

医疗HIS行业短信发送解决方案
随机推荐
Try new possibilities
3500字归纳总结:一名合格的软件测试工程师需要掌握的技能大全
electron之坑addon
Electron pit Addon
Laravel event & Monitoring
Institute of Microbiology, commonly used biochemical reactions in microbiological testing
Complete software development process
计算特殊奖金
聚焦绿色低碳,数据中心散热进入“智能冷却”新时代
Microbiological health, why is food microbiological testing important
laravel+redis 生成订单号-当天从1开始自增
MYSQL 数据库查看磁盘占用情况
Sort custom function
Factory + strategy mode
How to select securities companies? In addition, is it safe to open a mobile account?
[Qt5 basic \u 1] starting from 0, Mr. Detian will study with you - Introduction to the window
What are the preferential activities for stock account opening? In addition, is it safe to open a mobile account?
C # customize and dynamically switch cursor
Mathematical knowledge: 01 sequence satisfying conditions - find combinatorial number
(翻译)使用眉状文本提高标题点击率