File | Date | Author | Commit |
---|---|---|---|
Pipfile | 2019-11-27 |
![]() |
[fca571] Initial commit |
README.md | 2019-11-27 |
![]() |
[fca571] Initial commit |
d7sms.py | 2019-11-27 |
![]() |
[fca571] Initial commit |
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.
These instructions will get you a copy of the script and configuration guidelines for setting it up in Zabbix
D7SMS Subscription
Signup at https://d7networks.com for subscription and FREE sms credits.
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
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
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