Skip to content

Zabbix module to execute SMS notification via LabsMobile SMS API.

License

Notifications You must be signed in to change notification settings

labsmobile/sms-zabbix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LabsMobile-Zabbix

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.

Documentation

Labsmobile API documentation can be found here.

Features

  • Send SMS messages.

Requirements

  • Zabbix app installed and working. More information in zabbix.com.
  • A user account with LabsMobile. Click on the link to create an account here.

Installation

  1. Download the LabsMobile SMS Module for Zabbix in .zip file.

  2. Move all file to your Zabbix AlertScripts path

  3. 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
  1. copy config.php.dist to config.php, edit and uncomment the provider of your choice

  2. In Zabbix admin go to Administration > Media Types add new media of type Script with script name sms.php with the following parameters

    • {ALERT.SENDTO}
    • {ALERT.SUBJECT}
    • {ALERT.MESSAGE}

Zabbix SMS media config

  1. In Zabbix GUI, go to Administration > Users, edit a user, make sure it has a mobile phone number and assign the new SMS media.

  2. Test the message from cli

su -l zabbix -s /bin/bash
cd /usr/lib/zabbix/alertscripts
./sms.php 31123451234 "test" "this is a test"

Help

If you have questions, you can contact us through the support chat or through the support email support@labsmobile.com.