ES

SMS integration with Zabbix

Send SMS notifications through the LabsMobile platform integrated with the Zabbix network monitoring system. Configure your Zabbix application to send alerts and notifications via SMS in seconds with LabsMobile.


Functionalities

  • Sending alerts.
  • Sending notifications.

Requirements

  • Zabbix application installed and running. More information at zabbix.com .
  • A LabsMobile user account. Follow the link below to create a new account: Register.

Authentication

In the integration with Zabbix the authentication is performed with two parameters:

  • The username of the account to be entered in the username field.
  • The tokenapi to be assigned in the password field. This tokenapi can be generated from the API Settings section of your account.

Recommendation You can generate API tokens from the API Settings of the account. We recommend changing the token frequently and using different tokens for each use, connection or integration.


Installation

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

LabsMobile Module

Click on the following link and download the LabsMobile SMS Module.

  1. Unzip the .zip file and copy all files to the AlertScripts directory of your Zabbix instance.
  1. Set permissions and owner of files and folders.
Permits
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. In Zabbix admin go to Administration > Media Types and add a new Script type with the name sms.php and the following parameters {ALERT.SENDTO} {ALERT.SUBJECT} {ALERT.MESSAGE}.


  1. In Zabbix GUI go to Administration > Users, edit a user that has an associated mobile number and assign the user the new SMS Media.
  1. Test configuration and send SMS:
Send SMS
su -l zabbix -s /bin/bash
cd /usr/lib/zabbix/alertscripts
./sms.php 31123451234 "test" "this is a test"