On Zabbix you can send an alert through a SMS gateway. This tutorial explains how to setup the ClickSend SMS gateway (www.clicksend.com).
What you'll need:
- Curl
- ClickSend API Key - you can get that here: https://clicksend.com/signup
- 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: ClickSend - 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 +61411111111):
Type: ClickSend - SMS
Send to: 61411111111
If you have any questions/improvements please, get in touch!