Zabbix SMS alert script, using an internet gateway (Clickatell, Clockwork, Budgetsms, Infobip)
example: ./sms.php +3111122333 "Subject" "Message"
chown -R zabbix:zabbix /usr/lib/zabbix/alertscripts
chown -R zabbix:zabbix /var/log/zabbix-server/sms/
chmod 755 /usr/lib/zabbix/alertscripts/sms.php
config.php.dist
to config.php
, edit and uncomment the provider of your choiceScript
with script name sms.php
with the following parameters
{ALERT.SENDTO}
{ALERT.SUBJECT}
{ALERT.MESSAGE}
su -l zabbix -s /bin/bash
cd /usr/lib/zabbix/alertscripts
./sms.php 31123451234 "test" "this is a test"