From aba3a22d30d7df2b1240f059f4eb06d0a96aadd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Sun, 9 Nov 2025 14:19:56 +0100 Subject: [PATCH] fix: configure netdata to use Slack-compatible webhook for Mattermost MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Netdata v2.7 doesn't natively support Mattermost notifications, but Mattermost supports Slack-compatible webhooks. Changed configuration to use SEND_SLACK with SLACK_WEBHOOK_URL pointing to the Mattermost webhook. Configuration changes: - Changed SEND_MATTERMOST="YES" to SEND_SLACK="YES" - Changed MATTERMOST_WEBHOOK_URL to SLACK_WEBHOOK_URL - Updated role_recipients_mattermost to role_recipients_slack - Webhook URL still uses ${MATTERMOST_WEBHOOK_URL} env var from .env Tested with: alarm-notify.sh test Result: All three alarm types (WARNING, CRITICAL, CLEAR) show "OK" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- netdata/health_alarm_notify.conf | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/netdata/health_alarm_notify.conf b/netdata/health_alarm_notify.conf index 096b100..bf95fda 100644 --- a/netdata/health_alarm_notify.conf +++ b/netdata/health_alarm_notify.conf @@ -26,22 +26,22 @@ role_recipients_email[proxyadmin]="${ADMIN_EMAIL}" role_recipients_email[sitemgr]="${ADMIN_EMAIL}" ############################################################################### -# Mattermost notifications +# Mattermost notifications via Slack-compatible webhook ############################################################################### -# Enable Mattermost notifications -SEND_MATTERMOST="YES" +# Enable Slack notifications (Mattermost supports Slack-compatible webhooks) +SEND_SLACK="YES" -# Mattermost incoming webhook URL -MATTERMOST_WEBHOOK_URL="${MATTERMOST_WEBHOOK_URL}" +# Mattermost incoming webhook URL (Slack-compatible) +SLACK_WEBHOOK_URL="${MATTERMOST_WEBHOOK_URL}" -# Mattermost channel (optional, webhook default channel will be used if empty) -DEFAULT_RECIPIENT_MATTERMOST="" +# Slack channel (optional, webhook default channel will be used if empty) +DEFAULT_RECIPIENT_SLACK="" -# Mattermost notification recipients per role -role_recipients_mattermost[sysadmin]="notifications" -role_recipients_mattermost[domainadmin]="notifications" -role_recipients_mattermost[dba]="notifications" -role_recipients_mattermost[webmaster]="notifications" -role_recipients_mattermost[proxyadmin]="notifications" -role_recipients_mattermost[sitemgr]="notifications" +# Slack notification recipients per role +role_recipients_slack[sysadmin]="notifications" +role_recipients_slack[domainadmin]="notifications" +role_recipients_slack[dba]="notifications" +role_recipients_slack[webmaster]="notifications" +role_recipients_slack[proxyadmin]="notifications" +role_recipients_slack[sitemgr]="notifications"