Skip to content

Monitor Your Home Network for Free: Uptime Kuma + n8n for Smart Alerts

This page may contain affiliate links.

\n

Ever had your Wi-Fi drop just as you’re about to join an important video call? Or maybe your home server decides to take an unannounced nap, leaving your media streaming in the lurch? For anyone running a digital side hustle, managing smart home devices, or just relying heavily on their internet connection (which is most of us these days!), knowing when something goes wrong before it becomes a major headache is invaluable. Manual checks are tedious and prone to human error. That's why we're diving into how you can set up a robust, free, and incredibly powerful home network monitoring system using two brilliant open-source tools: Uptime Kuma and n8n. Get ready to transform your home lab into a proactive fortress!

\n\n

Why Bother Monitoring Your Home Network?

\n

As shedloaders, our digital infrastructure is often the backbone of our projects and passions. From hosting a small website for a client to running AI models on a local server, or simply ensuring your smart lighting automation doesn't suddenly fail, continuous monitoring is your invisible shield. Here’s why it’s a game-changer:

\n

  • \n
  • Preventative Maintenance: Catch intermittent issues or slow degradation before they lead to full-blown outages. Is your router rebooting randomly? Is a specific service on your NAS constantly crashing? Monitoring helps you spot patterns.
  • \n
  • Peace of Mind: Knowing that your critical services are being watched 24/7 means fewer worries. No more wondering if your website is down while you're out.
  • \n
  • Faster Resolution: When an issue does occur, you'll be alerted immediately, allowing you to react quickly and minimise downtime. For a side hustle, every minute of uptime can mean money or reputation saved.
  • \n
  • Resource Optimisation: Over time, monitoring can help you identify bottlenecks or underperforming devices, guiding decisions on upgrades or reconfigurations.
  • \n
  • Smart Home Reliability: If you rely on local smart home hubs (like Home Assistant) or network-dependent devices, monitoring their availability ensures your home automations remain seamless.
  • \n

\n

What can you monitor? Anything with an IP address or a network-accessible service: your main router, Wi-Fi access points, network-attached storage (NAS), home servers (e.g., Plex, Home Assistant), specific web services or APIs you host, and even external websites you depend on.

\n\n

Setting Up Uptime Kuma: Your Network's Watchdog

\n

Uptime Kuma is an amazing, open-source monitoring tool that's incredibly easy to use, thanks to its slick web interface. Think of it as your personal digital bouncer, constantly checking if your network devices and services are up and running. If something goes down, it’ll let you know.

\n\n

Installation with Docker

\n

The easiest way to get Uptime Kuma up and running is with Docker. If you don't have Docker installed on your chosen server (a Raspberry Pi 4 is perfect for this – get one here, or an old laptop or mini PC works too – check out mini PCs), you'll need to do that first. Once Docker is ready, open your terminal and run this command:

\n

docker run -d --restart=always -p 3001:3001 -v uptime-kuma:/app/data --name uptime-kuma louislam/uptime-kuma:1

\n

This command does a few things:

\n

  • \n
  • -d: Runs the container in detached mode (in the background).
  • \n
  • --restart=always: Ensures Uptime Kuma starts automatically if your server reboots or the container crashes.
  • \n
  • -p 3001:3001: Maps port 3001 on your host machine to port 3001 inside the container.
  • \n
  • -v uptime-kuma:/app/data: Creates a Docker volume to persist your data (monitors, settings) so it's not lost if the container is removed.
  • \n
  • --name uptime-kuma: Gives your container a memorable name.
  • \n
  • louislam/uptime-kuma:1: Specifies the Docker image to use.
  • \n

\n

Once it's running, open your web browser and navigate to http://YOUR_SERVER_IP:3001. You'll be prompted to create an admin user and password. Do that, and you're in!

\n\n

Adding Your First Monitors

\n

From the Uptime Kuma dashboard, click "Add New Monitor". You'll see a range of monitor types. Here are the most common for a home network:

\n

  • \n
  • Ping: The simplest check. Enter the IP address of a device (e.g., your router's IP, your NAS, a smart hub). If it doesn't respond to ping, it's considered down.
  • \n
  • HTTP(s): Perfect for web-based services. If your router has a web interface, your Home Assistant instance, a self-hosted blog, or any API endpoint, use this. Enter the full URL (e.g., http://192.168.1.1 or https://myhomeassistant.local).
  • \n
  • Port: If you're running specific services on non-standard ports (e.g., SSH on port 22, SMB on port 445, Plex on 32400), you can monitor if that specific port is open.
  • \n

\n

Give each monitor a friendly name (e.g., "Main Router", "NAS - Plex Server", "Home Assistant"). Set the "Heartbeat Interval" (how often it checks) to something reasonable like 30-60 seconds. Uptime Kuma has built-in notification services, but we're going to supercharge those with n8n for maximum flexibility.

\n\n

Supercharging Alerts with n8n: Beyond the Basics

\n

Uptime Kuma's built-in notifications (email, Telegram, Discord, etc.) are good, but n8n takes things to a whole new level. n8n (pronounced "n-eight-n") is an open-source, self-hosted workflow automation tool that lets you connect virtually any application or API. By linking Uptime Kuma to n8n, you can create highly customised, conditional alerts.

\n\n

Installation with Docker

\n

Like Uptime Kuma, n8n is best installed via Docker. Run this command:

\n

docker run -it --rm --name n8n -p 5678:5678 -v ~/.n8n:/home/node/.n8n n8nio/n8n

\n

Then access it at http://YOUR_SERVER_IP:5678. Follow the prompts to set up your first user.

\n\n

The Uptime Kuma + n8n Workflow

\n

Our goal is to have Uptime Kuma send a webhook to n8n whenever a monitor's status changes. n8n will then process this information and send a customised alert, for example, to your Telegram, Discord, or even an SMS via Twilio.

\n\n

Our Home Lab & Automation Pack (from £9) is designed to give you a head start, providing ready-made AI prompts for scripting, troubleshooting, and documenting your home lab projects. It's a fantastic shortcut for shedloaders who want to get straight to the automation without reinventing the wheel.

\n\n

Step 1: Set up a Webhook in Uptime Kuma

\n

In Uptime Kuma, go to "Settings" (the cog icon in the top right), then "Notification Providers". Click "Setup Notification". Choose "Webhook".

\n

  • \n
  • Name: Give it a descriptive name, e.g., "n8n Webhook".
  • \n
  • Webhook URL: This is where n8n comes in.
  • \n
  • HTTP Method: POST
  • \n
  • Content Type: application/json
  • \n

\n

Leave Uptime Kuma for a moment; we'll come back to the URL after setting up n8n.

\n\n

Step 2: Create an n8n Workflow

\n

  1. \n
  2. Start with a Webhook node: In n8n, create a new workflow. Drag a "Webhook" node onto the canvas. Set its "Webhook URL" to "POST". Click "Test Webhook". It will now be listening for incoming data.
  3. \n
  4. Copy the Webhook URL: The Webhook node will display a URL like http://YOUR_N8N_IP:5678/webhook-test-url/... Copy this entire URL.
  5. \n
  6. Paste into Uptime Kuma: Go back to Uptime Kuma's Webhook Notification Provider setup, paste the URL you just copied into the "Webhook URL" field. Click "Test" in Uptime Kuma.
  7. \n
  8. Receive Data in n8n: You should see data appear in the Webhook node in n8n. This is the payload Uptime Kuma sends. It typically includes monitor (name, URL, type), heartbeat (status, time, message), and msg (a human-readable message).
  9. \n
  10. Add an IF node for Condition: Drag an "IF" node after the Webhook. We want to send an alert only when the status changes to "Down". Configure the condition like this:
    \n Condition 1:
    \n Value 1: {{ $json.heartbeat.status }}
    \n Operation: Equals
    \n Value 2: 0 (0 typically means down in Uptime Kuma's webhook payload, 1 means up, 2 means pending)
  11. \n
  12. Add a Telegram node (Example): If the condition is true (monitor is down), we'll send a Telegram message. Drag a "Telegram" node to connect to the "True" branch of the IF node.
  13. \n
    • \n
    • Set up Telegram Bot: If you haven't already, talk to @BotFather on Telegram, create a new bot, and get its API token. Then, find your chat ID (message @userinfobot and it will tell you your ID).
    • \n
    • Configure Telegram node: In the Telegram node, select "Send Text Message". Add your Bot API token and your Chat ID. For the "Text" field, you can use expressions to create a dynamic message, e.g.:
      \n ✋ ALERT! {{ $json.monitor.name }} is DOWN! (Type: {{ $json.monitor.type }})
      \n Reason: {{ $json.msg }}
    • \n
  14. \n

\n

Once you're happy, click "Stop Test Webhook" in n8n and then "Activate" your workflow. In Uptime Kuma, apply the "n8n Webhook" notification to your desired monitors. Now, whenever a monitored device goes down, n8n will spring into action and send your custom alert!

\n\n

Advanced Tips & Further Customisation

\n

  • \n
  • Hardware: Running Uptime Kuma and n8n on a Raspberry Pi 4 is efficient and powerful enough for most home users. An old laptop or a cheap mini PC can also make an excellent, low-power server.
  • \n
  • Security: If you expose Uptime Kuma or n8n to the internet (e.g., via a reverse proxy for remote access), ensure you use strong, unique passwords and consider implementing two-factor authentication. Always keep your server's operating system and Docker containers updated.
  • \n
  • Escalation: With n8n, you can create escalation workflows. If a service stays down for more than 5 minutes, send another alert, perhaps to a different channel or even trigger a smart plug to reboot a device (if safe to do so!).
  • \n
  • More n8n Integrations: Explore n8n's vast array of integrations. You could log outages to a Google Sheet, create a ticket in a task management tool, or even flash your smart lights red when something critical goes down.
  • \n
  • Monitoring External Websites: Beyond your home network, use Uptime Kuma to keep an eye on your blog, portfolio site, or any online service crucial to your side hustle.
  • \n

\n\n

Conclusion

\n

Setting up Uptime Kuma and n8n might seem like a bit of effort initially, but the peace of mind and proactive control it gives you over your home network and digital side hustle infrastructure is priceless. You’ll be alerted to issues before they become crises, saving you time, stress, and potential income. So, why wait? Dive in, install these fantastic open-source tools, and start monitoring your digital world like a pro. Your future self (and your side hustle) will thank you!

Written by

Richard Tucker

View all posts →