Automate Cisco Meraki Network Latency Alerts with n8n

This workflow automates Cisco Meraki network latency and packet loss monitoring, filtering problematic sites and alerting tech teams via Microsoft Teams to reduce downtime and manual checks.
httpRequest
redis
microsoftTeams
+5
Workflow Identifier: 2026
NODES in Use: Manual Trigger, HTTP Request, Set, Merge, Code, Redis, Microsoft Teams, Schedule Trigger
Automate Meraki alerts with n8n and Microsoft Teams

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Workflow Does

This workflow watches Cisco Meraki networks for high latency and packet loss. It finds problem sites fast and sends alerts to Microsoft Teams. It runs every 5 minutes on workdays to keep monitoring in business hours only.

The goal is to stop manual checks and alert repeatedly. It looks at all organizations linked to your Meraki API key, collects the last five minutes of uplink data for each network, then finds networks with latency over 300ms or loss over 2%.

Alerts go to Teams only if no alert was sent recently for the same site, avoiding spam. Alerts stay logged in Redis for 3 hours to stop repeated messages.


Who Should Use This Workflow

This is made for network operations engineers and IT staff who manage many Meraki networks. If you spend too long checking Meraki dashboards or wait till users complain, this workflow helps save time. It works for accounts with multiple organizations and networks.


Tools and Services Used

  • Cisco Meraki API: Fetches organizations, networks, and network uplink data.
  • n8n Automation Platform: Runs the workflow and connects nodes.
  • Redis: Stores active alerts for 3 hours to avoid duplicates.
  • Microsoft Teams: Receives alert messages.
  • HTTP Header Auth Credentials in n8n: Holds the Meraki API Key securely.

Inputs, Processing Steps, and Output

Inputs

  • Meraki API key with access to all organizations.
  • Redis connection to track alerts.
  • Microsoft Teams channel for notifications.

Processing Steps

  1. Scheduled trigger every 5 minutes, 8 AM to 5 PM, Monday-Friday.
  2. Get all Meraki organizations for the API key.
  3. Retrieve all networks for each organization.
  4. Pull uplink latency and packet loss data over the past 5 minutes for each network.
  5. Calculate average latency and packet loss using the last 5 data points.
  6. Filter networks exceeding 300ms latency or 2% loss.
  7. Check Redis for existing alerts on these networks.
  8. If no recent alert, send a formatted alert message to Microsoft Teams.
  9. Log the alert key in Redis with a 3-hour expiry.

Output

Teams channel messages with network issue details for only new problems.


Beginner Step-by-Step: How To Use This Workflow In n8n

Step 1: Import the Workflow

  1. Download the workflow file using the Download button on this page.
  2. Open your n8n editor.
  3. Click “Import from File” and select the downloaded workflow.

Step 2: Configure Credentials

  1. In n8n, open Credentials and add your Meraki API Key via HTTP Header Auth.
  2. Add Redis credentials with proper host, port, and password.
  3. Add Microsoft Teams credentials or webhook URL to send messages.

Step 3: Update IDs and Fields (if needed)

  1. Edit the HTTP Request nodes URLs if your Org IDs or Network IDs require manual input.
  2. Change the Teams channel ID in the Microsoft Teams node to your target channel.
  3. Check code nodes for any threshold adjustments, copy/paste given code snippets.

Step 4: Test and Activate

  1. Run the workflow once manually to test data flow and alert sending.
  2. Look for errors or missing data in execution logs.
  3. If all works, toggle the workflow to active for production use.

Now workflow runs every 5 minutes on workdays, alerting teams only when needed.


Key Code Snippets to Use

The code nodes calculate averages and filter problematic sites. Copy them exactly to get the workflow working correctly.

// Average Latency & Loss
function calculateAverages(inputItems) {
  return inputItems.map(item => {
    const totalLoss =
      parseFloat(item.json['TS0-Loss']) +
      parseFloat(item.json['TS1-Loss']) +
      parseFloat(item.json['TS2-Loss']) +
      parseFloat(item.json['TS3-Loss']) +
      parseFloat(item.json['TS4-Loss']);
    const averageLoss = totalLoss / 5;
    item.json['AverageLoss'] = averageLoss;

    const totalLatency =
      parseFloat(item.json['TS0-Latency']) +
      parseFloat(item.json['TS1-Latency']) +
      parseFloat(item.json['TS2-Latency']) +
      parseFloat(item.json['TS3-Latency']) +
      parseFloat(item.json['TS4-Latency']);
    const averageLatency = totalLatency / 5;
    item.json['AverageLatency'] = averageLatency;

    return item;
  });
}

return calculateAverages($input.all());

This code calculates the average latency and loss from 5 time-stamped values.

// Filter problematic sites
function filterItems(items) {
  return items.filter(item =>
    item.AverageLatency > 300 || item.AverageLoss > 2
  );
}

const inputItems = items.map(item => item.json);
const filteredItems = filterItems(inputItems);

return filteredItems.map(item => ({json: item}));

This filters only networks with latency bigger than 300ms or loss larger than 2%, so alerts only go for major issues.


Customizations

  • Change thresholds in the filter code node to fit your needs.
  • Update Microsoft Teams channel ID to notify different groups.
  • Replace the Teams node with a ticketing node to auto-create support tickets.
  • Edit schedule cron to run at different times or frequencies.
  • Add more uplink data fields in the set nodes if wanted.

Troubleshooting

Unauthorized Errors from Meraki API

Check the API key in the HTTP Header Auth credentials. Make sure it is correct and active.

Redis Returns Null

Verify Redis connection settings and server status. Ensure keys are properly written and read.

Repeated Alerts for Same Network

Make sure Redis logging node sets correct TTL (10800 seconds). Confirm keys save without errors.


Pre-Production Checklist

  • Have valid Meraki API key set up in n8n.
  • Test HTTP Request nodes for organizations and networks.
  • Check Redis connection and ability to set/get keys.
  • Send a test message to Microsoft Teams.
  • Run workflow manually and review output and logs.

Deployment Guide

Activate the workflow in the n8n editor to let it run automatically.

Keep the n8n instance running reliably during business hours.

For full control, consider self-host n8n to run on your own server.


Summary

✓ Automates monitoring of Meraki network latency and packet loss.

✓ Sends alerts to Microsoft Teams only when new problems arise.

✓ Avoids alert fatigue via Redis caching of active issues.

✓ Saves time spent checking dashboards manually.

→ Helps IT teams act faster on network problems.

→ Runs on schedule only during work hours.


Automate Meraki alerts with n8n and Microsoft Teams

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

The workflow uses Redis to see if the network already has an active alert. This prevents sending duplicate alerts for the same issue within three hours.
A valid Cisco Meraki API Key with access to all organizations and networks to be monitored is required.
Yes, the Microsoft Teams node can be replaced with other messaging or ticketing nodes like Slack, email, or PSA systems.
The workflow runs every 5 minutes from 8 AM to 5 PM Monday to Friday by default. The schedule cron expression can be modified to change the frequency or hours.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.