Skip to content

Slack Notifications

Slack Notifications: Real-Time Network Configuration Alerts for rConfig V8

Section titled “Slack Notifications: Real-Time Network Configuration Alerts for rConfig V8”

Slack Notifications enable rConfig V8 to send real-time alerts and updates directly to your Slack channels. This integration keeps your team informed of important network events, configuration changes, and system activities without requiring constant monitoring of the rConfig interface.

Use this page when you want configuration changes, or SNMP traps that match a filter with a Send Alert action, posted directly to a Slack channel instead of relying on team members to check rConfig for them.

rConfig V8 currently sends only these two notification types to Slack:

Notification TypeDescriptionAvailability
Configuration ChangesAlerts when device configurations are modifiedrConfig V8+
SNMP TrapsAlerts when a received trap matches a filter with a Send Alert action (SNMP Trap UI Administration)rConfig V8+

Before configuring Slack notifications, ensure you have:

  • Active Slack workspace with administrative access
  • Ability to create and install Slack apps
  • Channel(s) designated for rConfig notifications
  • Administrator access to rConfig V8
  • At least one rConfig user with the Notifications switch enabled and the Slack channel ticked for the relevant event types in User Profile > Notification Preferences. Without an opted-in user, rConfig posts nothing to Slack (the test button is the only exception)
  1. Navigate to Slack API Apps
  2. Click Create New App
  3. Select From scratch
  4. Enter app name (e.g., “rConfig Notifications”)
  5. Select your workspace
  6. Click Create App
  1. Navigate to OAuth & Permissions in the left sidebar
  2. Scroll to Scopes section
  3. Under Bot Token Scopes, add the following scopes:
    • chat:write - Post messages to channels
    • chat:write.public - Post messages to public channels without joining
  1. Scroll to OAuth Tokens for Your Workspace section
  2. Click Install to Workspace
  3. Review and authorize the requested permissions
  4. After installation, copy the Bot User OAuth Token (starts with xoxb-)

Open the rConfig .env file:

Terminal window
vim /var/www/html/rconfig8/current/.env

Add or update the following lines:

Terminal window
# Slack Integration
SLACK_ENABLED=true
SLACK_BOT_USER_OAUTH_TOKEN=xoxb-your-bot-token-here
SLACK_BOT_USER_DEFAULT_CHANNEL=general

Configuration Parameters:

  • SLACK_ENABLED: Set to true to enable Slack notifications
  • SLACK_BOT_USER_OAUTH_TOKEN: Bot User OAuth Token from Slack app
  • SLACK_BOT_USER_DEFAULT_CHANNEL: Default channel name for notifications (without #)

Save the file and clear the rConfig cache:

Terminal window
php /var/www/html/rconfig8/current/artisan rconfig:clear-all

Navigate to System Settings (/settings/system) and locate the Slack Notifications panel. It shows whether Slack is enabled or not enabled, and provides a Test Slack Notification button. There are no per-event-type toggles or channel-routing controls here: every notification rConfig sends to Slack goes to the single channel set in SLACK_BOT_USER_DEFAULT_CHANNEL.

Click Test Slack Notification to verify the integration is working correctly. The test posts directly to the configured channel, whether or not any user has opted in to Slack notifications.

Expected test message in Slack:

✅ rConfig Slack Test Notification
Generated at Tue, Oct 14, 2025 10:23 AM
Slack test notification from rConfig
Source: https://rconfig.example.com
🔔 rConfig Change Notification - core-router-01
Device ID: #123 | Tue, Oct 14, 2025 10:23 AM
🔧 Command: show running-config
🧾 Config Version: 42
📝 Changes Detected:
- ntp server 10.0.0.1
+ ntp server 10.0.0.2
👉 View Complete Configuration
🚨 rConfig SNMP Trap Alert
Tue, Oct 14, 2025 11:45 AM
Source IP: 10.1.1.20
Filter: Link Down Alerts
Trap OID: 1.3.6.1.6.3.1.1.5.3
Action: <matched filter action>
SNMP trap alert: Source IP: 10.1.1.20 - Filter: Link Down Alerts - Oid: 1.3.6.1.6.3.1.1.5.3
Trap Payload
{ ...full trap data as JSON... }

Check Slack app installation:

  • Verify app is installed in workspace
  • Confirm bot has required scopes (chat:write, chat:write.public)
  • Check bot token is valid and not revoked

Verify rConfig configuration:

Terminal window
# Check if Slack is enabled
grep SLACK_ENABLED /var/www/html/rconfig8/current/.env
# Verify token format (should start with xoxb-)
grep SLACK_BOT_USER_OAUTH_TOKEN /var/www/html/rconfig8/current/.env

Check rConfig logs:

Terminal window
tail -50 /var/www/html/rconfig8/current/storage/logs/laravel-$(date +%F).log | grep -i slack

Messages appear as “App” instead of custom name

Section titled “Messages appear as “App” instead of custom name”

Set custom bot name:

  1. Go to Slack app settings
  2. Navigate to Features > App Home
  3. Edit Bot User section
  4. Set display name (e.g., “rConfig Notifications”)
  5. Save changes

Verify channel name:

  • Use channel name without # symbol
  • Ensure channel exists in workspace
  • Confirm bot has access to private channels (if applicable)

For private channels:

  1. Invite bot to private channel: /invite @rConfig
  2. Verify bot appears in channel member list

Check token validity:

  • Verify token has not been revoked in Slack app settings
  • Confirm workspace has not changed
  • Regenerate token if necessary:
    1. Go to OAuth & Permissions
    2. Click Revoke (if token exists)
    3. Click Reinstall to Workspace
    4. Copy new token
    5. Update .env file

Notifications not sending for specific events

Section titled “Notifications not sending for specific events”

Verify event configuration:

  • Confirm the event is actually one of the two types Slack notifications cover (configuration changes, SNMP traps), other event types aren’t sent to Slack at all
  • Check the Slack Notifications status in System Settings shows enabled
  • Confirm at least one user has the Notifications switch enabled and Slack ticked for that event type in User Profile > Notification Preferences. With no opted-in users, nothing posts to Slack
  • For SNMP traps, confirm the trap matches a filter with a Send Alert action

Check event triggers:

Terminal window
# Review recent events in logs
tail -100 /var/www/html/rconfig8/current/storage/logs/laravel-$(date +%F).log | grep -i notification

Symptoms:

  • Some notifications not delivered
  • Delayed notifications
  • Rate limit errors in logs

Resolution:

  • Slack limits: 1 message per second per channel
  • Consider batching notifications for high-volume events
  • All Slack notifications share one configured channel, there’s no per-type routing to spread load across channels

Protect bot token: Never commit the bot token to version control or share it publicly. Store it securely in the .env file.

Restrict permissions: Grant only the minimum required scopes to the Slack bot.

Monitor token usage: Regularly review Slack app audit logs for suspicious activity.

Channel access control: Use private channels for sensitive notifications and carefully manage channel membership.

Pick one channel deliberately: All Slack notifications go to the single channel configured in SLACK_BOT_USER_DEFAULT_CHANNEL, there’s no per-notification-type channel routing, so choose a channel appropriate for both configuration-change and SNMP-trap volume.

Set notification schedules: Consider limiting non-critical notifications to business hours.

Test regularly: Periodically send test messages to ensure the integration remains functional.

Document the channel’s purpose: Tell team members which channel receives rConfig notifications and which event types are posted there.