Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Latest commit 00608b0 Jun 25, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Pipfile initial project commit Nov 7, 2018
README.md update Jun 25, 2019
d7sms.py Update d7sms.py Mar 2, 2019

README.md

Zabbix SMS Plugin

Zabbix SMS notification via D7SMS allows to send worldwide SMS notifications for each hosts and services.

For FREE sms credits signup at https://d7networks.com.

We used Python script for sending SMS notifications in zabbix platfrom using D7SMS gateway.

Getting Started

These instructions will get you a copy of the script and configuration guidelines for setting it up in Zabbix

Prerequisites

Zabbix Setup

  • Get "AlertScriptsPath" of zabbix setup from zabbix_server.conf and navigate to same.

    Default AlertScriptsPath is /usr/lib/zabbix/alertscripts
    
  • Download D7SMS script from here and make it executable

cd /usr/lib/zabbix/alertscripts
wget https://raw.githubusercontent.com/d7networks/zabbix/master/d7sms.py
chmod +x /usr/lib/zabbix/alertscripts/d7sms.py
  • Update "API_Username" and "API_Password" inside the script with the credentials recieved from https://d7networks.com
vim /usr/lib/zabbix/alertscripts/d7sms.py

Update line number 7 and 8
    USERNAME = 'API_Username'# d7 sms gateway API Username
    PASSWORD =  'API_Password'# d7 sms gateway API Password

Change to 
    USERNAME = 'my_username'# d7 sms gateway API Username
    PASSWORD =  'my_password'# d7 sms gateway API Password
  • Open Zabbix panel and go to Administration > Media Types and click on Create media type and input following details
Name:D7SMS
    Type:Script
    Script name:d7sms.py
    Script parameters
        {ALERT.SENDTO}
        {ALERT.MESSAGE}
  • Once created media type, Goto Administration > Users click on the desired User > Media and click on Add

  • Enter Mobile number with international prefix at "Send to" option

    Select type of alerts (severity) required and enable it.

You can get the latest version of this script from GUTHUB : https://github.com/d7networks/zabbix

For all queries and help on installation please contact zabbix@d7networks.com

You can’t perform that action at this time.