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.
When to Use This Page
Section titled “When to Use This Page”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.
Supported Notification Types
Section titled “Supported Notification Types”rConfig V8 currently sends only these two notification types to Slack:
| Notification Type | Description | Availability |
|---|---|---|
| Configuration Changes | Alerts when device configurations are modified | rConfig V8+ |
| SNMP Traps | Alerts when a received trap matches a filter with a Send Alert action (SNMP Trap UI Administration) | rConfig V8+ |
Prerequisites
Section titled “Prerequisites”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)
Create Slack App
Section titled “Create Slack App”Step 1: Create New Slack App
Section titled “Step 1: Create New Slack App”- Navigate to Slack API Apps
- Click Create New App
- Select From scratch
- Enter app name (e.g., “rConfig Notifications”)
- Select your workspace
- Click Create App
Step 2: Configure OAuth Permissions
Section titled “Step 2: Configure OAuth Permissions”- Navigate to OAuth & Permissions in the left sidebar
- Scroll to Scopes section
- Under Bot Token Scopes, add the following scopes:
chat:write- Post messages to channelschat:write.public- Post messages to public channels without joining
Step 3: Install App to Workspace
Section titled “Step 3: Install App to Workspace”- Scroll to OAuth Tokens for Your Workspace section
- Click Install to Workspace
- Review and authorize the requested permissions
- After installation, copy the Bot User OAuth Token (starts with
xoxb-)
Configure rConfig V8
Section titled “Configure rConfig V8”Step 1: Edit Environment Configuration
Section titled “Step 1: Edit Environment Configuration”Open the rConfig .env file:
vim /var/www/html/rconfig8/current/.envStep 2: Add Slack Configuration
Section titled “Step 2: Add Slack Configuration”Add or update the following lines:
# Slack IntegrationSLACK_ENABLED=trueSLACK_BOT_USER_OAUTH_TOKEN=xoxb-your-bot-token-hereSLACK_BOT_USER_DEFAULT_CHANNEL=generalConfiguration Parameters:
SLACK_ENABLED: Set totrueto enable Slack notificationsSLACK_BOT_USER_OAUTH_TOKEN: Bot User OAuth Token from Slack appSLACK_BOT_USER_DEFAULT_CHANNEL: Default channel name for notifications (without#)
Step 3: Clear Application Cache
Section titled “Step 3: Clear Application Cache”Save the file and clear the rConfig cache:
php /var/www/html/rconfig8/current/artisan rconfig:clear-allVerify the Integration
Section titled “Verify the Integration”Check Status in rConfig
Section titled “Check Status in rConfig”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.
Send a Test Message
Section titled “Send a Test Message”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 NotificationGenerated at Tue, Oct 14, 2025 10:23 AM
Slack test notification from rConfig
Source: https://rconfig.example.comNotification Examples
Section titled “Notification Examples”Configuration Change Notification
Section titled “Configuration Change Notification”🔔 rConfig Change Notification - core-router-01Device 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 ConfigurationSNMP Trap Notification
Section titled “SNMP Trap Notification”🚨 rConfig SNMP Trap AlertTue, Oct 14, 2025 11:45 AM
Source IP: 10.1.1.20Filter: Link Down AlertsTrap OID: 1.3.6.1.6.3.1.1.5.3Action: <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... }Common Gotchas
Section titled “Common Gotchas”Troubleshooting
Section titled “Troubleshooting”Test message not appearing in Slack
Section titled “Test message not appearing in Slack”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:
# Check if Slack is enabledgrep 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/.envCheck rConfig logs:
tail -50 /var/www/html/rconfig8/current/storage/logs/laravel-$(date +%F).log | grep -i slackMessages appear as “App” instead of custom name
Section titled “Messages appear as “App” instead of custom name”Set custom bot name:
- Go to Slack app settings
- Navigate to Features > App Home
- Edit Bot User section
- Set display name (e.g., “rConfig Notifications”)
- Save changes
Channel not found errors
Section titled “Channel not found errors”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:
- Invite bot to private channel:
/invite @rConfig - Verify bot appears in channel member list
Invalid authentication errors
Section titled “Invalid authentication errors”Check token validity:
- Verify token has not been revoked in Slack app settings
- Confirm workspace has not changed
- Regenerate token if necessary:
- Go to OAuth & Permissions
- Click Revoke (if token exists)
- Click Reinstall to Workspace
- Copy new token
- Update
.envfile
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:
# Review recent events in logstail -100 /var/www/html/rconfig8/current/storage/logs/laravel-$(date +%F).log | grep -i notificationRate limiting issues
Section titled “Rate limiting issues”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
Security Considerations
Section titled “Security Considerations”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.
Best Practices
Section titled “Best Practices”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.
Related Documentation
Section titled “Related Documentation”- MS Teams Notifications - Configure MS Teams alerts
- Scheduled Tasks - Configure automated operations