This 2 days to achieve Zabbix SMS alarm, a lot of effort, the first summary of the deployment process, make a record, hoping to help some friends.
1. New Media types
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/58/B5/wKioL1S4-9KwB1NlAAIw7DnLBac154.jpg "style=" float: none; "title=" 1.jpg "alt=" Wkiol1s4-9kwb1nlaaiw7dnlbac154.jpg "/>
2. Fill in the name of the texting script
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/58/B5/wKioL1S4_LTSLEuvAAHGQczAf_I582.jpg "title=" 2.png " alt= "Wkiol1s4_ltsleuvaahgqczaf_i582.jpg"/>
3. Note the configuration inside the zabbix_server.conf, specifying where the script is placed and giving the script execution and master Zabbix permissions. The attachment has a script.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/58/B8/wKiom1S4-_PhwlfgAADSrV_2qwI232.jpg "title=" 3.png " alt= "Wkiom1s4-_phwlfgaadsrv_2qwi232.jpg"/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/58/B8/wKiom1S4_KHgqIK_AACUqDRlWcw328.jpg "title=" 4.png " alt= "Wkiom1s4_khgqik_aacuqdrlwcw328.jpg"/>
4. Associated Zabbix system users, I do is to create a new user test01, and define the way the alarm is sent, the mobile phone number of the notification, the definition of the time of notification and the type of event.
4.1 New User
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/58/B8/wKiom1S5ATyQL7XqAAM2funUyr8054.jpg "title=" 9.jpg " alt= "Wkiom1s5atyql7xqaam2funuyr8054.jpg"/>
4.2 Setting up user information
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/58/B5/wKioL1S5AkvxFEHcAAHU1Lxycgk521.jpg "title=" 11.jpg "alt=" Wkiol1s5akvxfehcaahu1lxycgk521.jpg "/>
4.3 Set alarm notification mode, notify phone number, notification time
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/58/B5/wKioL1S5AtThhrh9AALV0P_SCwI029.jpg "title=" 12.png "alt=" Wkiol1s5atthhrh9aalv0p_scwi029.jpg "/>
4.4 Define permissions to change users
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/58/B8/wKiom1S5AkrgWXqAAAGrmll21iQ595.jpg "title=" 13.jpg "alt=" Wkiom1s5akrgwxqaaagrmll21iq595.jpg "/>
5. Configure the actions, when the value of the monitoring item reaches the set threshold, activate the trigger, and then make an alarm notification based on the action defined.
5.1 Creating actions
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/58/B8/wKiom1S4_pvjJcD5AAInIZPH-8g101.jpg "title=" 5.png " alt= "Wkiom1s4_pvjjcd5aainizph-8g101.jpg"/>
5.2action Content
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/58/B5/wKioL1S4_63RnmZaAAKYNm291sU312.jpg "title=" 6.jpg " alt= "Wkiol1s4_63rnmzaaakynm291su312.jpg"/>
5.3action conditions
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/58/B8/wKiom1S4_vzRhH_sAAHYdXDctw0946.jpg "title=" 7.png " alt= "Wkiom1s4_vzrhh_saahydxdctw0946.jpg"/>
5.4 Execute the operation, define the sending method, send to which user, alarm upgrade and so on.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/58/B5/wKioL1S5AA_wXLfjAANrhJH1UUg056.jpg "title=" 8.jpg " alt= "Wkiol1s5aa_wxlfjaanrhjh1uug056.jpg"/>
6. Trigger the event to test if you can receive an alert SMS.
6.1 Debugging, you can modify the zabbix_server.conf debuglevel=4, restart Zabbix_server make the configuration effective.
6.2 Fetching log information is critical to troubleshooting. Default log location:/tmp/zabbix_server.log
This article from "Hanyun.fang" blog, reproduced please contact the author!
Zabbix SMS Alarm Call SMS Interface