Send SMS notifications through the LabsMobile platform from the Zabbix application. Configure your open source instance of Zabbix so that you can send alerts and notifications via SMS with LabsMobile.
Labsmobile API documentation can be found here.
- Send SMS messages.
- Zabbix app installed and working. More information in zabbix.com.
- A user account with LabsMobile. Click on the link to create an account here.
-
Download the LabsMobile SMS Module for Zabbix in .zip file.
-
Move all file to your Zabbix AlertScripts path
-
Set permissions and ownership
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
-
copy
config.php.dist
toconfig.php
, edit and uncomment the provider of your choice -
In Zabbix admin go to Administration > Media Types add new media of type
Script
with script namesms.php
with the following parameters{ALERT.SENDTO}
{ALERT.SUBJECT}
{ALERT.MESSAGE}
-
In Zabbix GUI, go to Administration > Users, edit a user, make sure it has a mobile phone number and assign the new SMS media.
-
Test the message from cli
su -l zabbix -s /bin/bash
cd /usr/lib/zabbix/alertscripts
./sms.php 31123451234 "test" "this is a test"
If you have questions, you can contact us through the support chat or through the support email [email protected].