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

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

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

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.


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 Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free