How Zabbix alerts reach Mattermost channels with the official webhook
Operations teams that run Zabbix and a self-hosted Mattermost server often want problem and recovery events to land in a channel where people already work. Zabbix publishes an official Mattermost webhook integration for Zabbix 7.4 and later, set up as a media type, a user and an action. The Zabbix version is the first gate: if your server or frontend is older than 7.4, this integration is not the path, and you should confirm the upgrade or the alternative route before designing anything else.
The integration itself is a configuration pattern inside Zabbix rather than a separate service. The media type holds the parameters that Zabbix passes to Mattermost, including bot_token, mattermost_url, send_mode and tls_verify. A dedicated Zabbix user carries the notifications, and an action decides which problem and recovery events trigger a message. Trigger selection, severity filters, message content and who receives what remain your design decisions, because the integration only delivers what the action tells it to send. It does not replace your alert policy, and it does not manage Mattermost channels, memberships or the bot account itself. Confirm the exact parameter names and accepted values against the Zabbix integration page for your release before you copy them into production.
The point to settle early is ownership. Someone must own the bot token, the Mattermost URL and the TLS setting for your internal certificate authority, and someone must own the action conditions that decide what reaches the channel. Check these on a test channel with a controlled problem and its recovery before you connect real hosts. For the broader Zabbix support and lifecycle picture that governs when you upgrade, read the Zabbix life cycle and release policy.
What you need before configuring Zabbix alerts in Mattermost
The official Zabbix Mattermost integration depends on four things lining up: a Zabbix version that ships it, a Mattermost server the Zabbix server can reach, a bot account that can post in the target channel, and a trust path for the certificate Mattermost presents. Check each one in your own environment before you touch the media type or the action.
Zabbix version with the integration
The official Mattermost webhook integration is documented for Zabbix 7.4 and later, so a 7.0 LTS or 6.x server will not have the media type template as described. Confirm the exact version your Zabbix server runs, and confirm in the target environment that the Mattermost integration appears in the media type list before you plan the rest. Zabbix 7.0 LTS is supported to 30 June 2027 with full support, but it is not the version this integration is written for.
Zabbix Mattermost docsSelf-hosted Mattermost server
The Zabbix server must reach a Mattermost server that your organization operates, and the URL you enter as mattermost_url must resolve to that server from the Zabbix host. Record the base URL, the port, and whether it sits behind a reverse proxy or load balancer. Confirm that the Mattermost version is still in support, since an unsupported server may change its API behavior during an upgrade.
Bot account and token
Create a dedicated bot account in Mattermost and generate its access token. The token goes into the bot_token parameter, so treat it as a credential. Add the bot to the target channel with permission to post, and confirm that the bot cannot post in channels you did not intend. Ask who owns the bot account after staff changes, because alerts stop when the account is disabled.
Network path and firewall rules
Zabbix sends outbound HTTPS requests from the Zabbix server, or from the host that runs the alert script, to the Mattermost URL. Open the required port from that source address to the Mattermost endpoint, and check any egress filtering, proxies or DNS split-horizon rules that could send the request somewhere unexpected. Test the path with the same host and user that the Zabbix server process runs under.
CA trust for internal certificates
If Mattermost presents a certificate issued by an internal certificate authority, the Zabbix host must trust that CA, or the webhook will fail verification. Install the root and any intermediate certificates in the operating system trust store used by Zabbix, then keep tls_verify enabled. Turning verification off to get a test working hides a real trust problem and should not reach production.
Confirm in the target environment
Treat the Zabbix 7.4 requirement and the Mattermost bot setup as items to confirm, not assumptions. Read the integration page for the version you run, check the Mattermost bot and channel settings on your own server, and run a test message before you build alert actions. Record the versions, the bot owner and the channel so that an upgrade or handover does not break alerting silently.
How to configure the Zabbix Mattermost media type, user and action
This sequence connects Zabbix to a Mattermost channel through the official webhook media type, so that problem and recovery events for monitored hosts arrive as messages a team can act on. Each step ends with a check that confirms the piece works before the next one depends on it.
Create the Mattermost bot account and token
A Mattermost administrator creates a bot account dedicated to Zabbix notifications, gives it a clear name, and generates an access token for it in the System Console. Add the bot to each channel that should receive alerts, so it can post there. Store the token in your secrets manager, not in a ticket or a shared document. The step is done when the bot is listed as a member of the target channel and the token is recorded for the next step. Confirm the token generation and bot options against your Mattermost server version, because menu locations change between releases.
Create the Zabbix user that owns the media type
In the Zabbix web interface, create a dedicated user, such as a service account named for Mattermost alerts, with a role that allows it to receive problem notifications for the host groups you monitor. Avoid tying the media type to a personal administrator account, so that alerting survives staff changes. Confirm the role and host group permissions against the Zabbix authentication and user documentation for your version. The step is done when the user exists and is enabled, and its permissions cover the host groups in scope.
Import or create the Mattermost media type
Using the Zabbix version that supports the official Mattermost integration (Zabbix 7.4 or later, per the official integration page), import the Mattermost media type from the Zabbix integration page, or create a webhook media type manually with the same parameters. Confirm the media type type is webhook and that its script and parameters match the official definition. The step is done when the media type appears under Alerts, Media types, with no import errors and the expected parameter list visible.
Set the bot token, Mattermost URL, send mode and TLS verification
Open the media type and set the parameters: bot_token to the token from the first step, mattermost_url to the base address of your self-hosted Mattermost server, send_mode to the option that matches how you want posts delivered, and tls_verify to enabled so the server certificate is checked. Use an internal certificate authority trusted by the Zabbix server if your Mattermost uses one, rather than disabling verification. The step is done when the values are saved and the media type shows no validation errors. Confirm the exact send_mode options on the Zabbix integration page for your release.
Test send from the media type
Use the media type test function in Zabbix with a sample message to the test recipient that is mapped to the Mattermost channel. Check that the bot posts the message in the target channel and that the message text and formatting are readable. If the test fails, review the Zabbix server log for webhook errors and check the URL, token and certificate chain in order. The step is done when the test message appears in the channel. Do not continue until the test passes, because later failures would be hard to separate from configuration errors.
Map the user's media to the target channel
On the Zabbix user, add a media entry that uses the Mattermost media type and sets the send-to value to the Mattermost channel identifier the bot should post into. Confirm the channel identifier format required by the official integration, because it differs from the channel display name. Set the severity levels and time periods that should trigger this media, so only intended events are sent. The step is done when the media entry is saved, enabled, and reflects the expected channel and severity filters.
Build the trigger action for problem events
Create an action under Alerts, Actions, Trigger actions with conditions that select the host groups, severities or tags you want to alert on. In the operations section, send a message to the Zabbix user through the Mattermost media type, using a message body that includes the host, trigger name, severity and time. Confirm that the action is enabled and that the operation targets the user you configured. Run a controlled test by generating a problem on a non-production host, and confirm the problem message arrives in the channel.
Build the recovery operation and verify the full cycle
Add a recovery operation to the same action, or a recovery-specific operation, so that when the trigger resolves Zabbix posts a recovery message to the same channel. Use the recovery message template that shows the problem has cleared and the time it cleared. Then resolve the controlled test problem and confirm that the recovery message appears in Mattermost after the problem message. The step is done when a complete problem and recovery pair has been observed in the channel, and the action log in Zabbix shows both operations as sent.
Choosing send mode and TLS verification for Mattermost delivery
The send_mode and tls_verify parameters decide how Zabbix hands each problem and recovery event to your Mattermost server and whether it checks who it is talking to. Confirm the accepted values for send_mode on the official Zabbix Mattermost integration page before you set it, because the value controls the delivery path, and the page is the source that matches the Zabbix version you run. Do not copy values from older blog posts or forum threads. Record the value you choose in your change ticket so a later reviewer can see why the media type behaves as it does.
Keep tls_verify enabled. With verification on, the Zabbix server only sends the bot token and alert text to a Mattermost endpoint whose certificate chains to a CA it trusts. Turning it off means anyone who can intercept traffic between the Zabbix server and Mattermost could read the token and redirect alerts. That risk is easy to underestimate on an internal network, where a self-signed or private CA certificate often causes the first failure. The right fix is to add your internal CA to the trust store used by the Zabbix server, then re-test. Disable verification only as a documented, time-limited step while that fix is pending, and name an owner for removing it.
Test against the exact mattermost_url your users and Zabbix will use in production, not a hostname from a lab note or an IP address. Use the same DNS name the certificate was issued for, and run a problem event and a recovery event from a test host so you see both message types arrive in the target channel. If the test fails, read the Zabbix server log and the Mattermost server logs together, since a certificate name mismatch and a wrong bot permission can look alike from the Zabbix side. Repeat the test after each Zabbix or Mattermost upgrade, because a change on either side can alter the TLS or API behavior you depended on.
How Zabbix events and parameters map to Mattermost fields
This table pairs each Zabbix object involved in the integration with the Mattermost object it corresponds to, so you can see where a value you enter in Zabbix ends up in Mattermost. Read it before building the media type, and confirm every parameter name and accepted value against the official Zabbix integration page, since the mapping depends on that page's exact field names.
| Zabbix concept | Mattermost concept | What to confirm before building |
|---|---|---|
| Media type parameters (bot_token, mattermost_url) | Bot access token and the Mattermost server URL the webhook posts to | Exact parameter names, whether the token is entered as a plain value or a macro, and the URL format your server expects |
| Media type send_mode | How messages are delivered to Mattermost for each event | The accepted send_mode values and what each one changes in the posted message |
| Media type tls_verify | Certificate check on the HTTPS connection to your Mattermost server | Whether your internal CA chain is trusted by the Zabbix server host before you leave verification on |
| User with media assigned | Mattermost bot account that authenticates posts | The bot account must exist and hold permission in the target channels, and the token must belong to it |
| User media recipient value | Target Mattermost channel or direct message destination | The channel identifier format the integration accepts and whether the bot is a member of that channel |
| Action operations for problem events | Problem message posted to the channel when a trigger fires | Which trigger severities and host groups the action covers, so alerts do not flood unrelated channels |
| Recovery operations in the same action | Follow-up message when the problem resolves | Whether recovery messages are enabled in your version and how they reference the original problem |
Securing the Zabbix to Mattermost token and channel path
The Zabbix media type holds a Mattermost bot token and sends alert content into channels, so the token, the bot's membership and the people who can edit the media type form one trust path. The cards below cover each control on that path and the checks to run before and after go-live.
Store the bot token as a secret
The bot_token parameter in the Zabbix media type is a credential that can post to every channel the bot can reach. Treat it like a database password: keep it out of tickets, runbooks and exported configuration, and restrict who can read the media type in the Zabbix frontend. Ask your Zabbix administrators where the token is stored after any export or backup, and confirm that backups are encrypted and access-controlled.
Use a dedicated bot account
Create a separate Mattermost bot account for Zabbix rather than reusing a personal or shared administrator account. A dedicated bot makes it clear in the audit trail which posts came from Zabbix, and it lets you disable the integration without affecting people. Confirm the bot's ownership and who can manage its tokens in your Mattermost administration settings.
Limit the bot to the channels it needs
Add the bot only to the alert channels that Zabbix actions target, and leave it out of general, executive or HR channels. Each extra channel membership widens the set of messages a leaked token could read or post into. Review membership after each new Zabbix action, and remove the bot from channels that no action uses any longer.
Keep TLS verification on
The tls_verify parameter controls whether Zabbix checks the certificate of the Mattermost server in mattermost_url. Leaving verification on protects the bot token and alert content in transit from interception on the path between Zabbix and Mattermost. If your Mattermost uses an internal certificate authority, add that CA to the Zabbix host trust store instead of turning verification off.
Restrict who can edit the media type
Anyone who can edit the Zabbix Mattermost media type can change the destination URL, redirect alerts or reveal the token. Limit media type editing to a small group of Zabbix administrators and assign user roles so that operators can receive alerts without managing the integration. Zabbix authentication and user role settings are documented separately, so review them against your access model before go-live.
Zabbix authentication docsControl who sees alert content
Zabbix problem messages often include host names, IP addresses, service names and sometimes command output. Anyone in a Mattermost channel with the bot can read those details, so match the channel's membership and retention to the sensitivity of the hosts it reports on. Ask the security team to confirm whether production or customer-facing hosts should post to a restricted channel.
Rotate the token on a schedule
Plan a token rotation procedure that creates a new bot token, updates the media type in Zabbix, sends a test alert, and then revokes the old token. Record the rotation date, the owner and the channels affected. Rotate immediately if a Zabbix administrator leaves, if the media type was exported to an unsecured location, or if a host running Zabbix is compromised.
Zabbix version, support and license facts that affect this integration
The official Mattermost webhook integration is available only on Zabbix 7.4 and later, so the Zabbix version you run determines whether you can use it at all. Zabbix 7.4 was released on 1 July 2025 and keeps full support until Zabbix 8.0 LTS, which is planned for Q4 2026. Zabbix 7.0 LTS was released on 4 June 2024 with full support until 30 June 2027 and limited support until 30 June 2029. Before you build the media type, action and bot user, confirm which minor release your server, proxies and web frontend run, because an older release means the integration may not be present and the work has to start with an upgrade.
Zabbix has been released under the GNU Affero General Public License version 3 from 7.0 onward, while all versions up to 6.4 were released under the GNU General Public License version 2. For this integration, the license change matters mainly to teams that modify Zabbix or host it as a service for others, so have your legal or open-source review team confirm the obligations that apply to your deployment. Zabbix also states that its open-source software carries no license fee, no device limits and no feature gates, but paid technical support is sold separately in Silver, Gold, Platinum, Enterprise and Global tiers. Ask your support provider which tier covers Mattermost-related incidents.
Plan upgrade timing around the life cycle policy rather than around the alerting project. Standard releases are supported for 12 months, while LTS releases come out every 1.5 years and are supported for 5 years. Check the Zabbix life cycle and release policy before you pick a target version, and schedule a retest of the webhook parameters, including tls_verify, after each upgrade.
Why Zabbix Mattermost alerts fail and how to fix them
This table lists the failures most often seen when Zabbix sends problem and recovery events to Mattermost through the official webhook, with the likely cause and fix for each. Work down the rows in order, since a Zabbix version or TLS problem will block everything after it, and check the Zabbix server and web logs before changing settings.
| Symptom | Likely cause | Fix |
|---|---|---|
| No messages at all | Zabbix is older than 7.4, so the official Mattermost media type is not available | Confirm the server and web frontend versions match, then upgrade or use a supported build before configuring the media type |
| Authentication errors in the logs | Bot token is wrong, revoked or expired | Generate a new bot token in Mattermost, update the bot_token parameter, and send a test message |
| Requests fail with a not found response | mattermost_url is missing the API path or points at the wrong host | Copy the base URL of your Mattermost server exactly, including the scheme, and confirm the path the media type expects |
| TLS handshake or certificate errors | Zabbix does not trust the internal certificate authority that signed the Mattermost certificate | Add the internal CA to the trust store used by the Zabbix server, or confirm the setting of tls_verify before relaxing it |
| Messages not appearing in a channel | Bot account is not a member of the target channel | Add the bot to the channel in Mattermost, then retest the action |
| No recovery messages | The action has no recovery operation, or recovery is not sent to the media type | Add a recovery operation to the action that sends to the same Mattermost user, then trigger a test recovery |
| Duplicate or missing messages | Several actions or operations match the same event, or send mode and retries do not match the expected behavior | Review which actions match each trigger, confirm the send_mode value, and remove overlapping conditions |
| Unclear cause of any failure | Errors are not visible in the first place you look | Check the Zabbix server log and the web frontend log first, then review the action's message log in the Zabbix interface |
Questions buyers ask about Zabbix Mattermost alerting
Is the official Zabbix Mattermost integration free to use with Zabbix open source?
Yes, the integration is part of Zabbix, and Zabbix states that its open source software has no license fee, no device limits and no feature gates. Zabbix is released under the GNU Affero General Public License version 3 from version 7.0 onward. What costs money is optional paid technical support, which Zabbix sells in Silver, Gold, Platinum, Enterprise and Global tiers. Mattermost licensing is separate: its server is available under its own terms, so confirm which Mattermost edition and license your organization runs before you rely on the server side of the setup. Check the Zabbix license page and the Zabbix Mattermost integration page against your own versions before you finalize the plan.
Which Zabbix version do I need for the official Mattermost webhook?
The official Mattermost webhook integration is published for Zabbix 7.4 and later, and it is configured as a media type, a user and an action. If you run an older Zabbix server, plan an upgrade or a parallel build before you start, because the parameters described in the integration page will not be available. Zabbix 7.4 was released on 1 July 2025 with full support until Zabbix 8.0 LTS. Confirm your current minor version and its support window on the Zabbix life cycle and release policy page before you choose a target.
How long does a basic Zabbix to Mattermost setup take?
No fixed duration can be given here, because the time depends on your environment and on approvals. A single channel with one media type, one bot and a standard trust chain is the simplest case. Time usually grows with the number of approvals needed for a bot account and token, the Mattermost change process, network rules between the Zabbix server and Mattermost, and testing of problem and recovery messages. Ask any provider for a written scope that lists each channel, trigger group and test case, since that scope is what sets the timeline.
What must my team provide before the work starts?
Plan to provide the following before work starts:
- Zabbix administrator access to create the media type, user and action, and to review the trigger and host groups that will send alerts.
- Mattermost administrator access, or a named contact who can create the bot account, grant it access to the target channels and issue the bot token.
- Channel decisions: which channels receive which severities, and who owns each channel.
- Certificates: the CA chain for the Mattermost URL, and a decision on whether TLS verification will use the system trust store or a private CA.
Agree these items in the written scope so no one waits on an unassigned request.
Can my own team set this up without outside help?
Yes, a team with Zabbix and Mattermost administrators can configure the integration themselves, since the official setup is documented as a media type, a user and an action. The work is mostly configuration, but the risks sit in the details: the bot token must be stored and rotated properly, TLS verification must not be turned off to make a test pass, and recovery messages must reach the same thread or channel as the problem. Outside help is most useful when the team lacks time for testing, when several channels and trigger types must be designed together, or when the network uses a private CA. Ask any provider to name the test cases they will run.
What makes the effort grow for Zabbix Mattermost alerting?
The main drivers are the number of Mattermost channels, the number of trigger types and severities that send messages, and whether the network is air-gapped or uses a private certificate authority. Each extra channel adds routing rules, permissions and testing. Private CA trust and TLS verification add certificate distribution to the Zabbix server, which must trust the Mattermost certificate chain. Zabbix upgrades add retesting, because the media type and action parameters must match the installed version. Ask for these items to be priced or scoped separately in any quote.
Which Zabbix parameters should I check first when alerts do not arrive?
Start with the four parameters the official integration exposes: bot_token, mattermost_url, send_mode and tls_verify. Confirm that the bot account has access to the target channel, that the URL resolves from the Zabbix server, and that the trust chain is installed where Zabbix runs. Check the action conditions and the user that the action sends from, and review the Zabbix server log for delivery errors. Do not disable tls_verify as a permanent fix. Document each change so the setup can be reviewed later. The Zabbix Mattermost integration page describes each parameter.
Does Zabbix high availability change how alerts are sent to Mattermost?
The integration is configured on the Zabbix server, so the setup must be reviewed when you run a high availability cluster. Zabbix describes a cluster where several server nodes share one database, one node is active and the others stand by, and failover happens after a configurable delay between 10 seconds and 15 minutes. Confirm which node sends notifications after failover and that the media type and action are present on every node that could become active. Test a failover with a live problem event before you rely on it for on-call alerts.
How a Zabbix problem event flows to a Mattermost channel
The flow starts when a Zabbix trigger changes state and an action matches the event. The action hands the message to the Mattermost media type, which sends an HTTPS request to the Mattermost URL using the bot token. TLS verification is checked on that hop, and the Mattermost server posts the message into the target channel. A recovery event follows the same path, so check that the action also runs on recovery and that the bot can post in the channel. The token and the Zabbix server are the parts to protect.
Problem and recovery events travel from a Zabbix action through the media type to a Mattermost channel.
How DeployOpen scopes and delivers Zabbix alert integrations
DeployOpen is a Chainscore Labs company that plans, implements, integrates and supports self-hosted open-source platforms in infrastructure the client controls, including their cloud accounts, data centers and air-gapped networks. For a Zabbix to Mattermost alert integration, that means the work happens against your own Zabbix server, your own Mattermost server and your own network paths between them, not in a shared service. Work of this kind is usually a small, well-bounded piece of a larger monitoring and chat estate, so the first task is to agree exactly which parts of that estate are in scope.
Most engagements are fixed-scope. Before work starts, the scope, deliverables and timelines are agreed in writing, and a quote follows from that written scope. For this integration, the written scope should name the Zabbix version and its release path, the Mattermost server and its URL, the bot account and channels that will receive problem and recovery events, the send_mode and tls_verify settings, the Zabbix action conditions that decide which events are sent, and the test evidence you expect at handover. Ask for the scope to state which items you own afterward, such as the media type configuration, the action definitions and the Mattermost bot token storage, so nothing is left ambiguous after go-live.
Ongoing support is available as a retainer. Zabbix and Mattermost both ship on their own release cycles, so a retainer is the practical way to cover Zabbix upgrades, Mattermost server upgrades, token rotation and changes to alert routing as teams grow. Ask any partner, DeployOpen included, to confirm in writing what the retainer covers, how changes are requested and how quickly they are handled. DeployOpen does not hold partner status or certifications with Zabbix or Mattermost, and you should not treat this page as evidence of either.

