Skip to content

seven-io/zabbix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

seven logo

seven SMS for Zabbix

Notification media type for Zabbix that sends SMS via the seven gateway.

MIT License Zabbix 5.4+ Python 2 | 3


Features

  • Native Media Type - Drop-in seven.py alertscript 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

Prerequisites

Installation

  1. Copy seven.py into the Zabbix alertscripts directory (typically /usr/lib/zabbix/alertscripts).

  2. Make it executable:

    chmod +x /usr/lib/zabbix/alertscripts/seven.py
  3. Open the Zabbix web UI and navigate to Administration > Media types.

  4. Click Create media type and configure as shown in screenshots/media_type.png.

  5. Verify with Test (screenshot).

  6. Open Users, pick a user and assign the new media under Media (screenshot).

Usage

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

Support

Need help? Feel free to contact us or open an issue.

License

MIT

Releases

No releases published

Contributors

Languages