Zabbix use a third party API SMS alarm

Before tried to e-mail alerts, micro-channel alarm. However, for some important business enterprise server, may be stored in the network in isolation, can not be properly connected to external networks. This time, it is necessary to consider the use of SMS alerts. In fact, this is the need to be able to connect to a server outside the network, but we are just testing the SMS function, so do not pay attention so much. Normal isolated environment, we also need to build internal messaging platform. . . (This is something, usually some large companies will do this)

Before no contact, I feel a lot of trouble using SMS alerts, after used, only to find it easily. Here are my steps.

I. First, you need to find a third-party messaging platform SMS test interface, contact the online customer service, apply a test account used to send text messages

Here, I'm using http://www.loktong.com/gywm

Second, provide customer service using the account password to login his website message, as follows. My demand is to send warning messages to use Python in a Linux environment, so click below the API access, download Python's demo, this is what we need API

 

 

 

 Third, modify the Python API

 

 The script reads as follows

 

Which gwid as follows:

 

 

 Fourth, the script example

 

 Execute Python scripts, suggesting success

 

 V. successfully received text messages

 

 Six specific we can also customize the message content according to the situation, such as adding ip variables, alarms and other details. Follow-up time to play with it

Guess you like

Origin www.cnblogs.com/biaopei/p/11758650.html