Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 1.07 KB

README.md

File metadata and controls

40 lines (32 loc) · 1.07 KB

send_smsglobal_zabbix

On Zabbix you can send an alert through a SMS gateway. On this case, we'll be using SMSGLOBAL (www.smsglobal.com)

What you'll need:

  1. Curl;
  2. SMS Global Master API Key; you can get that here: https://mxt.smsglobal.com/integrations;
  3. Credits in your account.

How to add the script to Zabbix (Tested on Zabbix Server 3.4):

  1. Administration > Media Types
  2. Add a new "Script" media Type
		Name: SMS Global - SMS
		Type: Script
		Script name: send_sms.sh
		Script parameters:
		PARAMETER 1: {ALERT.SENDTO}
		PARAMETER 2: {ALERT.MESSAGE}
  1. Create an action and make sure it has the "SEND SMS" enabled on it.
  2. Copy the script send_sms.sh to your Zabbix server on: /usr/lib/zabbix/alertscripts
  3. Add permission to the file:
		chmod +x /usr/lib/zabbix/alertscripts/send_sms.sh
		chown zabbix:zabbix /usr/lib/zabbix/alertscripts/send_sms.sh
  1. Your user's Media should look like (Assuming their Mobile phone is +61 28 555111):
Type: SMS Global - SMS
Send to: 6128555111

If you have any questions/improvements please, get in touch!