{"id":15650704,"url":"https://github.com/jooola/zabbix-matrix-webhook","last_synced_at":"2025-08-30T06:37:05.222Z","repository":{"id":41091299,"uuid":"342403248","full_name":"jooola/zabbix-matrix-webhook","owner":"jooola","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-28T21:02:44.000Z","size":3807,"stargazers_count":38,"open_issues_count":6,"forks_count":8,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-08T09:51:50.906Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jooola.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-25T23:06:12.000Z","updated_at":"2025-02-28T15:07:59.000Z","dependencies_parsed_at":"2024-03-02T12:24:47.528Z","dependency_job_id":"a5284e4c-cc66-4a76-8b54-45333f2f858c","html_url":"https://github.com/jooola/zabbix-matrix-webhook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jooola/zabbix-matrix-webhook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jooola%2Fzabbix-matrix-webhook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jooola%2Fzabbix-matrix-webhook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jooola%2Fzabbix-matrix-webhook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jooola%2Fzabbix-matrix-webhook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jooola","download_url":"https://codeload.github.com/jooola/zabbix-matrix-webhook/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jooola%2Fzabbix-matrix-webhook/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272815821,"owners_count":24997661,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T12:35:33.550Z","updated_at":"2025-08-30T06:37:05.201Z","avatar_url":"https://github.com/jooola.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zabbix Matrix webhook\n\n[![CI](https://github.com/jooola/zabbix-matrix-webhook/actions/workflows/ci.yml/badge.svg)](https://github.com/jooola/zabbix-matrix-webhook/actions/workflows/ci.yml)\n\nThis guide describes how to integrate your Zabbix installation with Matrix using the Zabbix webhook feature. This guide will provide instructions on setting up a media type.\n\n## Matrix configuration\n\nThe configuration of the webhook use [Element](https://element.io/) to interact with the Matrix server, but receiving notification from Zabbix work with any [Matrix client](https://matrix.org/clients/).\n\n### Create a Matrix account\n\nVisit [app.element.io](https://app.element.io/) and create a new account for your bot.\n\n### Retrieve the bot's access token\n\nOpen a **private/incognito** window in you browser, and sign in [app.element.io](https://app.element.io) with the bot account:\n\n![](docs/matrix_access_token1.png)\n\nOpen the bot account settings pages:\n\n![](docs/matrix_access_token2.png)\n\nIn the settings page, open the `Help \u0026 About` tab, scroll to the bottom `Advanced` section and click on `\u003cclick to reveal\u003e` to retrieve the access token:\n\n![](docs/matrix_access_token3.png)\n\nFinally, **do not log out** (logging out invalidate the access token), instead, just close the **private/incognito** window.\n\n### Set up a Matrix room\n\nInvite the bot in the room you want the alerts to be sent.\n\nIn the room settings page, open the `Advanced` tab and retrieve the `Internal room ID`:\n\n![](docs/matrix_room_id1.png)\n\n## Zabbix webhook configuration\n\nIn order to configure the webhook, you will have to know:\n\n- [How to import media types](https://www.zabbix.com/documentation/current/manual/xml_export_import/media)\n- [How to configure webhooks](https://www.zabbix.com/documentation/current/manual/config/notifications/media/webhook)\n- [To to send messages in Zabbix](https://www.zabbix.com/documentation/current/manual/config/notifications/action/operation/message)\n\nFirst, [import](https://www.zabbix.com/documentation/current/manual/xml_export_import/media#importing) the Matrix webhook into your Zabbix installation:\n\n- Use the [`latest/media_matrix.yml`](latest/media_matrix.yml) file for Zabbix 6.0 LTS and 6.2.\n- Use the [`5.0/media_matrix.json`](5.0/media_matrix.json) file for Zabbix 5.0 LTS.\n\nThen, in the media type configuration, fill the `\u003cmatrix_url\u003e` value with the Matrix server [URL](https://en.wikipedia.org/wiki/URL) and `\u003cmatrix_token\u003e` with the previously retrieved access token.\n\n\u003e To add a link to the event in your alert messages, you need to fill the `event_url` parameter with the url below. Make sure that your replace `\u003czabbix_url\u003e` with the url of your Zabbix server.\n\u003e\n\u003e ```\n\u003e https://\u003czabbix_url\u003e/tr_events.php?triggerid={TRIGGER.ID}\u0026eventid={EVENT.ID}\n\u003e ```\n\n![](docs/zabbix_media_type1.png)\n\nFinally, create or configure the `Matrix` media type for your user, and paste the `Internal room ID` in the `Send to` field:\n\n![](docs/zabbix_room_id1.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjooola%2Fzabbix-matrix-webhook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjooola%2Fzabbix-matrix-webhook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjooola%2Fzabbix-matrix-webhook/lists"}