Zulip Zabbix integration
Receive Zabbix notifications in Zulip!
Note: This guide is for Zabbix 5.4 and above; some older Zabbix versions have a different workflow for creating an outgoing webhook.
-
Create a bot for Zabbix. Make sure that you select Incoming webhook as the Bot type.
-
Decide where to send Zabbix notifications, and generate the integration URL.
-
Go to Administration in your Zabbix web interface. Click on General, and select Macros from the dropdown. Click Add.
-
Set the macro to
{$ZABBIX_URL}. Set the value as the URL to your Zabbix server, e.g.,https://zabbix.example.com, and ensure that there are no trailing slashes. Click Update. -
Go back to Administration in your Zabbix web interface. Select Media Types, and click Create Media Type.
-
Set Name to a name of your choice, such as
Zulip. Set Type to Webhook, and add the following Parameters:hostname:{HOST.NAME}item:{ITEM.NAME1} is {ITEM.VALUE1}link:{$ZABBIX_URL}/tr_events.php?triggerid={TRIGGER.ID}&eventid={EVENT.ID}severity:{TRIGGER.SEVERITY}status:{TRIGGER.STATUS}trigger:{TRIGGER.NAME}zulip_endpoint: the URL generated above
-
Click the Pencil to edit the script, and replace any existing content with the script below. Then, check the Enabled option.
var params = JSON.parse(value); var request = new HttpRequest(); request.addHeader('Content-Type: application/json'); var payload = { hostname: params.hostname, severity: params.severity, status: params.status, item: params.item, trigger: params.trigger, link: params.link }; var response = request.post(params.zulip_endpoint, JSON.stringify(payload)); if (request.getStatus() !== 200) { throw 'Notification webhook failed (HTTP ' + request.getStatus() + ')'; } var result = JSON.parse(response); if (result.result !== 'success') { throw 'Notification webhook rejected the payload'; } return JSON.stringify({}); -
Open Message Templates from the top bar. Click Add under Message Type, and select Problem.
-
Set Subject to
{TRIGGER.STATUS}-{TRIGGER.SEVERITY}-{TRIGGER.NAME}. Set Message to the following, and click Add:{ "hostname": "{HOST.NAME}", "severity": "{TRIGGER.SEVERITY}", "status": "{TRIGGER.STATUS}", "item": "{ITEM.NAME1} is {ITEM.VALUE1}", "trigger": "{TRIGGER.NAME}", "link": "{$ZABBIX_URL}/tr_events.php?triggerid={TRIGGER.ID}&eventid={EVENT.ID}" } -
Go back to Administration in your Zabbix web interface. Click on Users, and select the alias of the user you would like to use to set the notification. Select Media, and click Add.
-
Set Type to the name you assigned to the media type above. Set Send To to
Zulipor any text, as this field requires text, but it isn't used. Set the severity and active periods for notifications as suitable, and check the Enabled option. Click Add, and select Update. -
Go back to your Zabbix web interface, and click Configuration. Select Actions, and choose Create Action.
-
Set Name to a name of your choice, such as
Zulip. Under New Conditions, add the conditions for triggering a notification. Check the Enabled option, and click Operations. -
Under Operations, click Add, and then set Operation Type to
Send Message. Under Send to Users, choose Add, and select the user you added the alert to above, and click Select. Under Send only to, select Zulip or the name of your media type. Click Add twice.
You're done! Your Zabbix notifications may look like this:

Related documentation
Use a bot and URL belonging to your own organization. zulip_endpoint is a
technical parameter name and must not be renamed. The receiver requires
hostname, severity, status, item, trigger and link; it returns
result: success, not issue tracker fields id and key. Do not log
value or the endpoint URL, because it contains the bot's api_key.
The example throws on HTTP/reply errors rather than silently returning success.
Configure problem and recovery operations separately in Zabbix if both are
needed. only_events and exclude_events do not select Zabbix states:
this receiver does not pass event types to the shared sender. It does not
verify a separate sender signature or deduplicate event IDs. Separate clients
need separate bots. For SaaS, hybrid, on-premises or telecom-operated
deployments, Zabbix needs HTTPS access to your organization's URL. The bot
API key is separate from BYOK encryption keys for storage or backups.
Logos are trademarks of their respective owners. None of the integrations on this page are created by, affiliated with, or supported by the companies represented by the logos.