Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 1.42 KB

README.md

File metadata and controls

25 lines (18 loc) · 1.42 KB

zabbix-ntfy

Mediatype to add support for ntfy.sh services

Seems like noone added support for ntfy.sh into zabbix, so I spent some time to get it working myself. Might aswell share it. Pull requests are welcome.

Setup

Download the zbx_ntfy.yaml file, go to Alerts -> Mediatypes and click Import.

Go to: Administration -> Macros and create Macros:

  • {$NTFY.URL} The URL to send NTFY requests to. Just https://ntfy.sh if using the main instance.
  • {$ALERT.SENDTO} The NTFY Topic to send the request to.
  • {$ZABBIX.URL} The URL to your Zabbix instance to include a clickable link in the notification (optional).
  • {$NTFY.USER} The username of the NTFY account to use (optional - basic authentication).
  • {$NTFY.PASS} The password of the NTFY account to use (optional - basic authentication).
  • {$NTFY.TOKEN} The token created for the NTFY account to use (optional - token authentication).

Enable a trigger action to use the NTFY Media Type: Alerts -> Actions -> Trigger Actions

Go to Users -> Users and add the ntfy.sh Media Type to your user. The Send To field needs to be populated, but isn't used for anything.

Customization

Message Priority

Priorities are, by default, based on the Zabbix Triggers priority. To adjust the levels, go to Alerts -> Media Types -> ntfy.sh and adjust the Priority_* parameters to your liking. These options match the NTFY API.