keepcalculator

06 Numbers and Powers

Raspberry Pi Uptime Kuma: Monitor Self-Hosted Sites

Card No. 06·86477 · Updated · Standard formula, shown below

Yes, you can run Uptime Kuma on a Raspberry Pi to monitor your self-hosted websites and services. You enter the URLs or IP addresses of your services, and Uptime Kuma checks them at set intervals, showing you a live dashboard of uptime, response times, and alert notifications when something goes down. This article explains how to set it up, what you need, and how to get the most out of it.

What Is Uptime Kuma?

Uptime Kuma is a free, open-source monitoring tool that you host yourself. It provides a web-based dashboard where you can add monitors for HTTP(S), TCP, ping, DNS, and many other service types. It tracks whether each service is up or down, measures response time, and records a history of uptime percentages. It also sends alerts through many channels—email, Telegram, Discord, Slack, and more—when a service fails or recovers. Because it is self-hosted, you control the data and the server, unlike commercial monitoring services that store your data on their infrastructure.

Why Use a Raspberry Pi for This?

A Raspberry Pi is a low-cost, low-power computer that is ideal for running a lightweight monitoring tool 24/7. It draws only a few watts of electricity, so it can run continuously without a big energy bill. It is also small and quiet, so it can sit on a shelf next to your router. For most home labs and small self-hosted setups, a Raspberry Pi 4 or 5 with 2GB or more of RAM is plenty to monitor dozens of services. The Pi runs the Uptime Kuma server, which then checks your websites and services from your home network (or wherever the Pi is located).

How It Works

Uptime Kuma runs as a Node.js application with a SQLite database. You access it through a web browser on the Pi’s IP address. The process is:

  • Install Uptime Kuma on the Pi (using Docker is the most common method, but you can also run it directly with Node.js).
  • Access the web UI and create an admin account.
  • Add a monitor for each service you want to check. You enter the URL (e.g., https://your-site.com or http://192.168.1.10:8080) and choose the monitor type.
  • Set the interval (e.g., every 60 seconds) and choose the alert methods.
  • Uptime Kuma sends a request to each service at the set interval. If the service responds correctly, it records a success; if it times out or returns an error, it records a failure and triggers an alert.

The dashboard shows a list of all monitors with a green/red status, response time, and a 24-hour or 30-day uptime graph. You can also set up status pages to share publicly with others.

Setting Up Uptime Kuma on a Raspberry Pi

The easiest way is with Docker. If you have Docker installed on your Pi (using the official install script or via Portainer), run the following command:

docker run -d --name uptime-kuma -p 3001:3001 -v /path/to/uptime-kuma-data:/app/data louislam/uptime-kuma:1

Then open http://<pi-ip>:3001 in your browser and complete the setup. If you prefer not to use Docker, you can install Node.js and npm, then clone the Uptime Kuma repository, install dependencies, and run npm start. The official GitHub repository has detailed instructions.

Choosing What to Monitor

You can monitor any service that is reachable from your Pi. Common examples for self-hosted setups:

  • Websites (HTTP/HTTPS) – e.g., your personal blog or a web app.
  • Home assistant – monitor the Home Assistant dashboard.
  • Network services – SSH (port 22), Pi-hole (port 80), or a game server.
  • DNS – check that your DNS server responds.
  • Ping – check if a device (like a router) is reachable.

For each monitor, you can set:

  • Interval – how often to check (default 60 seconds).
  • Timeout – how long to wait for a response before marking as down.
  • Retries – how many consecutive failures before alerting.
  • Notification – choose one or more alert methods.

Common Problems and Fixes

Here are a few issues you might run into:

  • Port 3001 already in use – change the host port in the Docker command (e.g., -p 3002:3001).
  • Data persistence – make sure you mount a volume for the data folder, otherwise you lose all monitors when the container is removed.
  • SSL certificate errors – if you monitor an HTTPS site with a self-signed certificate, you may need to disable SSL verification in the monitor settings (use with caution).
  • Notifications not working – test the notification in the settings; many services require an API key or webhook URL.
  • Pi runs out of memory – reduce the number of monitors or increase the interval. Uptime Kuma is fairly light, but a Pi 2 or older model with 1GB RAM may struggle with many monitors.

Uptime Kuma vs. Other Monitoring Tools

Uptime Kuma is often compared to commercial services like UptimeRobot or Pingdom. The key differences:

  • Cost – Uptime Kuma is free; commercial services have free tiers with limits.
  • Control – you host it, so data stays on your hardware.
  • Features – Uptime Kuma includes status pages, multiple notification channels, and a clean UI, but lacks advanced analytics or global monitoring locations.
  • Ease – commercial services are simpler to set up (no server needed), but you pay for that convenience.

For a home lab, Uptime Kuma is usually the best balance of features and cost. For production websites with high traffic, you might want a cloud-based service that monitors from multiple locations worldwide.

Safety and Security Considerations

Running Uptime Kuma exposes a web interface on your Pi. To keep it secure:

  • Change the default admin password immediately after setup.
  • Use a reverse proxy (like Nginx or Caddy) with HTTPS to access the UI remotely.
  • Do not expose the port 3001 directly to the internet unless you have proper authentication and firewall rules.
  • Keep the Pi updated – run apt update && apt upgrade regularly.
  • Back up the data folder (the SQLite database) so you can restore monitors if the SD card fails.

Frequently Asked Questions

Can I monitor my website from outside my home network?

Yes, if your website is publicly accessible, Uptime Kuma on your Pi will check it from your home IP address. However, if your home internet goes down, Uptime Kuma will also be down, so it won’t alert you. For critical websites, consider using a cloud monitoring service as a backup.

How much RAM does Uptime Kuma need on a Pi?

Uptime Kuma is lightweight. On a Raspberry Pi 4 with 2GB RAM, it runs comfortably alongside other services. For a Pi 3 or Pi Zero 2, it works but may be slower with many monitors. The official Docker image uses about 100-200MB of RAM in typical use.

Can I use Uptime Kuma to monitor my home network devices?

Yes, you can monitor any device on your local network by using its IP address. For example, you can ping your router, check if a NAS is responding on port 80, or monitor a Raspberry Pi running Pi-hole. Just make sure the Pi running Uptime Kuma can reach those devices.

How do I get alerts when a service goes down?

In the monitor settings, click “Add Notification” and choose your preferred method (e.g., Telegram, Discord, email). You’ll need to provide the required credentials or webhook URLs. Test the notification after setup to make sure it works.

Can I share a public status page?

Yes, Uptime Kuma includes a status page feature. You can create a status page, add monitors to it, and share the public URL. The page shows the current status of each service and uptime history. You can customize the theme and enable or disable individual monitors.

What if my Pi’s IP address changes?

If your Pi gets a new IP address from DHCP, you’ll lose access to Uptime Kuma at the old IP. To avoid this, set a static IP address for your Pi in your router’s DHCP reservation settings, or use a dynamic DNS service to access it via a hostname.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →