/zabbix-smsru

Zabbix SMS alerting module via SMS.ru

Primary LanguageShell

SMS.ru SMS alerting module for Zabbix

Author: Vladimir Stackov <amigo.elite@gmail.com>,
Igor A. Perminov <igor.a.perminov@gmail.com>
License: GPL v2+

Installation steps (tested for Ubuntu 14.04, CentOS 7.1)

0. Prerequisites:

0.1. It is assumed that Zabbix server is installed and running.

0.2. The directory for Zabbix alert scripts is /usr/lib/zabbix/alertscripts.

0.3. Curl and sed are installed.

1. Download and unpack the distribution archive zabbix-smsru-<version>.tar.gz
(replace <version> with the actual version of the module):

    sudo tar xvzf zabbix-smsru-<version>.tar.gz -C /

2. Secure the configuration file to keep credentials in secret:

    sudo chown root:zabbix /usr/local/etc/zabbix-smsru.conf
    sudo chmod 640 /usr/local/etc/zabbix-smsru.conf

3. Specify your SMS.ru api_id in /usr/local/etc/zabbix-smsru.conf
(API_ID variable).

4. Register the media type in Zabbix:

4.1. Into Zabbix web GUI navigate to Administration > Media types.

4.2. Create the media type:

    Name:        SMS.ru
    Type:        Script
    Script name: sms_ru.sh
    Enabled:     <checked>

5. Use this media type in your notifications.