Explore documentation
Zabbix & Better Stack integration
This integration allows you to create Uptime incidents from Zabbix automatically.
Connecting Zabbix and Uptime
- Go to Integrations and click the Importing data tab.
- Find the Zabbix card and click Add.
- Name your Zabbix integration (e.g.,
Backend service) and click Save changes. - Copy the script from the integration settings. You will need it in a moment.
In Zabbix
Create a media type
- Go to your Zabbix dashboard.
- In the upper right corner, click Create media type.
- For Name, enter
Uptime. - For Type, select Webhook.
- Remove all parameters except Message: {ALERT.MESSAGE}.
Paste the script from your Better Stack integration settings into the Script field.
Zabbix Media type ScriptEnsure Enabled is checked and click Add.
Create a user
- Go to Administration > Users and click Create user.
- For Alias, enter
Uptime user. - Add this user to a group and enter any password.
- Go to the Permissions tab and grant the user read permissions for the necessary hosts.
- Go to the Media tab and add Uptime as a new media type.
- In the Send to field, enter any value (it is required but not used).
- Select the severities you want to report to Uptime.
- Click Add to save the media, then Add again to save the user.
Create an action
- Go to Configuration > Actions and click Create action.
- For Name, enter
Uptime Action. - (Optional) Add conditions to restrict the action.
- Go to the Operations tab.
- Set Default operation step duration to
1m. - Under Operations, click Add.
- In Send to Users, select Uptime user.
- In Send only to, select Uptime.
- Check Custom message and paste the operational message from your Better Stack integration settings into the Message field.
- Click Add to save the operation.
- Repeat the steps above for Recovery operations and Update operations, using their respective messages.
- After configuring all operations, click Add to save the action.
You're done. Now, when Zabbix triggers an alert, an incident will be created in Uptime.