Notification media type for Zabbix that sends SMS via the seven gateway.
- Native Media Type - Drop-in
seven.pyalertscript usable from any Zabbix trigger - Advanced Options - Flash, TTL, performance tracking, foreign ID, label, custom sender
- Per-User Routing - Standard Zabbix user-media routing applies
- Zabbix (tested on 5.4) and Python 2 or 3
- A seven account with API key (How to get your API key)
-
Copy
seven.pyinto the Zabbix alertscripts directory (typically/usr/lib/zabbix/alertscripts). -
Make it executable:
chmod +x /usr/lib/zabbix/alertscripts/seven.py
-
Open the Zabbix web UI and navigate to Administration > Media types.
-
Click Create media type and configure as shown in screenshots/media_type.png.
-
Verify with Test (screenshot).
-
Open Users, pick a user and assign the new media under Media (screenshot).
seven.py [-h] [--delay DELAY] [--flash] [--foreign_id FOREIGN_ID]
[--from FROM] [--label LABEL] [--performance_tracking]
[--ttl TTL] [--udh UDH]
api_key to text
| Option | Description |
|---|---|
api_key |
Your seven API key (positional) |
to |
Recipient phone number (positional) |
text |
Message body (positional) |
--from |
Sender ID. Up to 11 alphanumeric or 16 numeric characters |
--flash |
Send as flash SMS |
--delay |
Delayed dispatch (Unix timestamp or yyyy-mm-dd hh:ii) |
--ttl |
Time-to-live in minutes (default 2880) |
--foreign_id / --label |
Tracking metadata |
--performance_tracking |
Enable URL shortening and click tracking |
--udh |
User Data Header for binary SMS |
Need help? Feel free to contact us or open an issue.