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:
- Curl;
- SMS Global Master API Key; you can get that here: https://mxt.smsglobal.com/integrations;
- Credits in your account.
How to add the script to Zabbix (Tested on Zabbix Server 3.4):
- Administration > Media Types
- 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}
- Create an action and make sure it has the "SEND SMS" enabled on it.
- Copy the script
send_sms.sh
to your Zabbix server on:/usr/lib/zabbix/alertscripts
- Add permission to the file:
chmod +x /usr/lib/zabbix/alertscripts/send_sms.sh
chown zabbix:zabbix /usr/lib/zabbix/alertscripts/send_sms.sh
- 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!