Learn how to install and configure Uptime Kuma on AlmaLinux 9 to monitor your website uptime and server health.
Ensuring website uptime is not just good practice—it’s essential. Downtime can lead to lost traffic, decreased trust, and even financial loss. That’s where Uptime Kuma, an easy-to-use, self-hosted, open-source monitoring tool, comes into play.
This guide walks through how we can set up Uptime Kuma on AlmaLinux, a stable and secure RHEL-based Linux distribution that’s widely used in production environments.
By the end of this tutorial, we’ll have a fully functional uptime monitoring dashboard hosted on our own server—no third-party service needed.
What Is Uptime Kuma?
Uptime Kuma is a self-hosted monitoring tool inspired by Uptime Robot. It offers a beautiful web-based interface to track the availability of websites, servers, ports, and APIs. It supports notifications via Telegram, Discord, Slack, email (SMTP), and more. It’s ideal for developers, DevOps teams, and anyone running production websites.
Why AlmaLinux?
AlmaLinux is a powerful and stable Linux OS based on RHEL (Red Hat Enterprise Linux), maintained by the open-source community. It’s a perfect fit for hosting monitoring tools like Uptime Kuma due to its reliability, long-term support, and security.
Prerequisites
Before we begin, ensure the following:
- A AlmaLinux 9 installed dedicated server or KVM VPS.
- A domain name (optional but recommended for HTTPS setup)
- Basic knowledge of the terminal
How to Install and Set Up Uptime Kuma on AlmaLinux 9 for Self-Hosted Website Monitoring (Step-by-Step Guide)
Step 1: Update the System
We always start by ensuring our server is up-to-date. Run:
sudo dnf update -y && sudo dnf upgrade -y
Step 2: Install Node.js (Latest LTS)
Uptime Kuma runs on Node.js. Let’s install the latest LTS version:
curl -fsSL https://rpm.nodesource.com/setup_lts.x | sudo bash -
sudo dnf install -y nodejs
Verify the version:
node -v
npm -v
This should show something like v22.x.x for Node.js.
Step 3: Install Git
We’ll need Git to clone the Uptime Kuma repository:
sudo dnf install -y git
Step 4: Clone the Uptime Kuma Repository
Next, we clone the official repo to our server:
git clone https://github.com/louislam/uptime-kuma.git
cd uptime-kuma
Step 5: Install Dependencies
From the project directory, install all necessary packages:
npm run setup
This will take a few minutes. It installs the backend and frontend dependencies automatically.
Step 6: Start Uptime Kuma
Now let’s run Uptime Kuma to ensure everything works:
node server/server.js
Visit http://your-server-ip:3001
in a browser. We should see the Uptime Kuma setup screen.
To keep the app running permanently, we’ll set it up as a service.
Step 7: Create a Systemd Service
Create a systemd service file:
sudo nano /etc/systemd/system/uptime-kuma.service
Paste the following:
[Unit]
Description=Uptime Kuma Monitoring Service
After=network.target
[Service]
Type=simple
WorkingDirectory=/root/uptime-kuma
ExecStart=/usr/bin/node server/server.js
Restart=always
Environment=NODE_ENV=production
[Install]
WantedBy=multi-user.target
Note: Replace WorkingDirectory=/root/uptime-kuma
with you uptime-kuma directory path.
Save and exit, then run:
sudo systemctl daemon-reexec
sudo systemctl enable --now uptime-kuma
Check the status:
sudo systemctl status uptime-kuma
Step 8: Configure Firewall
Allow traffic to port 80 and 443:
sudo firewall-cmd --permanent --add-port=80/tcp
sudo firewall-cmd --permanent --add-port=443/tcp
sudo firewall-cmd --reload
Step 9: (Optional) Set Up a Reverse Proxy with Nginx
To access Uptime Kuma with a domain (e.g., monitor.yourdomain.com), let’s configure Nginx:
sudo dnf install -y nginx
sudo systemctl enable --now nginx
Then create a config file:
sudo nano /etc/nginx/conf.d/uptime-kuma.conf
Paste:
server {
listen 80;
server_name monitor.yourdomain.com;
location / {
proxy_pass http://localhost:3001/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
Reload Nginx:
sudo nginx -t
sudo systemctl reload nginx
Step 10: Secure with HTTPS (Recommended)
Install Certbot:
sudo dnf install -y epel-release
sudo dnf install -y certbot python3-certbot-nginx
Then run:
sudo certbot --nginx -d monitor.yourdomain.com
Certbot will auto-renew the certificate every 90 days.
Step 11: Configure SELinux
Allow Nginx to connect to any port (less secure but effective for dev/test)
sudo setsebool -P httpd_can_network_connect 1
Step 12: Setup Monitoring via Web Interface
Now open your browser and go to the Uptime Kuma URL.
- Create an admin account
- Add monitors (HTTP, TCP, Ping, etc.)
- Set notification channels (e.g., Telegram, Discord, Email)
- Explore dark mode, public status page, and backup settings
Final Thoughts
With Uptime Kuma on AlmaLinux, we have complete control over our uptime monitoring. It’s lightweight, customizable, and incredibly powerful. Whether we’re running client websites, internal dashboards, or production APIs—knowing they’re up and running is crucial.
Uptime Kuma + AlmaLinux delivers a secure, open-source, no-subscription alternative to paid uptime services—on our terms.