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 <noreply@anthropic.com>
48 lines
1.6 KiB
Plaintext
48 lines
1.6 KiB
Plaintext
# Netdata health alarm notification configuration
|
|
# This file configures where to send alarm notifications
|
|
|
|
# Enable/disable sending email notifications
|
|
SEND_EMAIL="YES"
|
|
|
|
# Recipient email address for all alarms
|
|
DEFAULT_RECIPIENT_EMAIL="${ADMIN_EMAIL}"
|
|
|
|
# Email sender address
|
|
EMAIL_SENDER="${EMAIL_FROM}"
|
|
|
|
# SMTP configuration
|
|
SENDMAIL=""
|
|
EMAIL_SENDER="${EMAIL_FROM}"
|
|
|
|
# Custom send email command using msmtp
|
|
EMAIL_COMMAND="msmtp -t"
|
|
|
|
# Enable specific notification types
|
|
role_recipients_email[sysadmin]="${ADMIN_EMAIL}"
|
|
role_recipients_email[domainadmin]="${ADMIN_EMAIL}"
|
|
role_recipients_email[dba]="${ADMIN_EMAIL}"
|
|
role_recipients_email[webmaster]="${ADMIN_EMAIL}"
|
|
role_recipients_email[proxyadmin]="${ADMIN_EMAIL}"
|
|
role_recipients_email[sitemgr]="${ADMIN_EMAIL}"
|
|
|
|
###############################################################################
|
|
# Mattermost notifications via Slack-compatible webhook
|
|
###############################################################################
|
|
|
|
# Enable Slack notifications (Mattermost supports Slack-compatible webhooks)
|
|
SEND_SLACK="YES"
|
|
|
|
# Mattermost incoming webhook URL (Slack-compatible)
|
|
SLACK_WEBHOOK_URL="${MATTERMOST_WEBHOOK_URL}"
|
|
|
|
# Slack channel (optional, webhook default channel will be used if empty)
|
|
DEFAULT_RECIPIENT_SLACK=""
|
|
|
|
# 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"
|