What is
Uptime Kuma? Install it and get site-down alerts in
Telegram
Watch your sites and servers with Uptime Kuma on a separate server, installed in one click, with alerts to Telegram, Discord or
LINE
On this page
- What
Uptime Kuma can check
- Why a separate server
- 1. Install
Uptime Kuma in one click
- 2. Open
Uptime Kuma in your browser
- 3. Sign in with the admin account
- 4. Create a
Telegram bot
- 5. Set up
Telegram alerts in
Uptime Kuma
- 6. Add your first site monitor
Discord and
LINE
- Status pages
- Keep it secure
- Stuck? Look here
- FAQ
Uptime Kuma is an open-source tool that watches your sites and servers, and you host it on your own server. It checks each site on the interval you set. When a site goes down or a port stops answering, it alerts you right away in Telegram, Discord, LINE or by email. This guide installs it on a separate server and sends the alerts to Telegram.
Uptime Kuma on a separate server
- Checks your sites and servers
- A check fails
- A message arrives in
Telegram
What
Uptime Kuma can check#
Uptime Kuma is a project on GitHub (opens in a new tab) under the MIT licence, free to use. It can check as often as every 20 seconds. These are the monitor types you'll use most.
| Type | What it checks | Use it for |
|---|---|---|
| HTTP(s) | Does the site answer with a normal status | Websites, APIs |
| HTTP(s) - Keyword | Does the page contain a given word | Sites that break but still show an error page |
| TCP Port | Does the port accept connections | Databases, SSH, Remote Desktop |
| Ping | Does the machine answer ping | Servers and network gear |
| DNS | Does the DNS record return the expected value | Your main domain |
| Is the container still running | Needs a |
For HTTPS sites it can also warn you before a certificate expires, and it can alert through more than 90 services, as listed in the project's README.
Why a separate server#
A monitor on the same server as your site goes down with the site, and then nobody sends the alert.
Same server as the site
- The server hangs or dies, and the monitor stops with it
- The site fills the RAM, and the monitor slows down too
- You find out when a customer tells you
Separate serverRecommended
- The site goes down, and the monitor can still message you
- Watch many sites and servers from one place
- A small server is enough
To also catch an event that hits a whole data centre, add a second check from outside, such as a site-check service hosted somewhere else.
1. Install
Uptime Kuma in one click#
The Marketplace creates a new server and installs Uptime Kuma in one step. The smallest size it runs on is s-1vcpu-2gb.
Once installed, Uptime Kuma opens over HTTPS straight away, with no SSH tunnel. Its data lives on this server's disk, with no automatic backup.
2. Open
Uptime Kuma in your browser#
Type your own values and the commands on this page follow
- Wait until the console shows the server as ready
- Open
https://SERVER_IPin your browser. You'll see theUptime Kuma sign-in page
- To use your own domain, point the domain's A record at the server's IP and enter the domain in the console. Then open it by the domain
The page is open to every IP by default. You can limit it to your own IPs later in the console.
3. Sign in with the admin account#
An admin account called admin is created during the install. Sign-up from outside is closed, so a stranger who finds the page cannot make an account.
- Open the server's page in the console and copy the
Uptime Kuma admin password
- On the sign-in page, enter
adminas Username and the copied password as Password, then press Login - Go to Settings, then Security. Under Change Password, set a new password that is long and used nowhere else
When it works: you see an empty Dashboard, with Add New Monitor at the top left.
Once you change the password, the one in the console stops working, so keep the new one safe yourself. This guide uses the English button names; you can switch the app's language under Settings, then Appearance.
4. Create a
Telegram bot#
- In
Telegram, open a chat with
@BotFatherand send/newbot - Give the bot a name, then a username that ends in
bot - BotFather replies with a token. Copy it and keep it safe: anyone with this token can control your bot
- Open a chat with your new bot and press Start, or send it any one message
These steps follow Telegram's BotFather guide (opens in a new tab). For alerts in a group, add the bot to the group and send one message there.
5. Set up
Telegram alerts in
Uptime Kuma#
- Click your profile picture at the top right, choose Settings, then open Notifications
- Press Set Up Notification and set Notification Type to
Telegram
- Paste the token into Bot Token and press Auto Get. Chat ID fills in from the message you sent the bot
- Tick Default enabled if new monitors should use this channel, or Apply on all existing monitors for the ones you already have
- Press Test and check your phone: the test message should arrive in the chat with the bot. Then press Save
Button names follow Uptime Kuma 2.5. If Auto Get can't find a Chat ID, the bot hasn't received a message yet. Send it one and press the button again.
6. Add your first site monitor#
- Press Add New Monitor
- For Monitor Type, choose HTTP(s), or HTTP(s) - Keyword to check for a word on the page
- Give it a Friendly Name that tells you which site it is, and enter the full URL, such as
https://example.com - Heartbeat Interval is how many seconds between checks. The default is 60
- Retries defaults to 0, which alerts on the very first failed check. Set it to 2 to cut alerts from brief network blips
- On the right, under Notifications, tick the
Telegram channel you set up. For an HTTPS site, also tick Certificate Expiry Notification. Then press Save
When it works: the monitor appears in the list on the left, with a green bar added for every check that passes. If the site goes down, the bar turns red and a message arrives in Telegram. When the site comes back, you get another message.
Discord and
LINE#
Uptime Kuma can send to several channels at once. Set them up under Settings, then Notifications, just like Telegram; only the details you enter differ.
| Channel | Pick in the list | What you enter |
|---|---|---|
| Channel access token (Long-lived) and Your User ID from the |
||
| Email (SMTP) | Your email provider's SMTP server |
Status pages#
A status page gathers several monitors on one page, handy to leave open as your team's overview.
- Press Status Pages in the top bar, then New Status Page
- Enter a Name and a Slug, which is the end of the URL, then press Next
- Under Add a monitor, choose the monitors to show. Group them with Add Group, then press Save
The status page opens at https://SERVER_IP/status/ followed by the slug, or https://your-domain/status/ followed by the slug. Customers and teammates can open it without signing in. If you limit IPs in the console, the status page also opens only from the allowed IPs.
Keep it secure#
| What to do | Where |
|---|---|
| Change the admin password after your first sign-in | Settings, then Security and Change Password |
| Turn on two-factor sign-in | Settings, then Security and Two Factor Authentication |
| Limit which IPs can open the page | In the console; every IP is allowed by default |
| Limit who can SSH into the server | Use SSH keys and a firewall; see firewall |
| Keep the bot token secret | If it leaks, send /revoke to BotFather and enter the new token |
Anyone on the internet can open the sign-in page, but only someone with the admin password can get in. Anyone who can SSH into this server can change Uptime Kuma's data, so guard server access as well as the app password. More in secure your Ubuntu server.
Stuck? Look here#
| Problem | Do this |
|---|---|
https://SERVER_IP won't open |
Wait until the console shows the server as ready, check the IP, and if you limited IPs, check that yours is on the allowed list |
| Your domain won't open | Check that the A record points to the server's IP and that the domain is entered in the console. DNS can take a while to update |
| You can't sign in | The username is admin and the password is on the server's page in the console. If you changed it, use your new password |
| Auto Get finds no Chat ID | Send the bot a message first, then try again |
| Alerts keep firing though the site is up | Raise Retries and Heartbeat Retry Interval |
| Have you added the bot as a friend, and is this month's message quota used up? |
FAQ#
Is
Uptime Kuma free?
The app is open source under the MIT licence and costs nothing to use. What you pay for is the server it runs on.
Does
Uptime Kuma keep watching after I close my browser or shut down my computer?
Yes. Uptime Kuma runs on the server; the web page is only for viewing and settings.
Can other people view it from the internet?
Yes. The app opens over HTTPS from the moment it's installed. Status pages open without signing in, the dashboard needs a sign-in, and sign-up from outside is closed. Every IP is allowed by default; you can limit it to your own IPs later in the console.
Can I still use
LINE Notify?
No. LINE Notify has shut down. Use LINE Messenger in Uptime Kuma, which sends through a LINE Official Account, or use Telegram.
Can I install it on the same server as my site?
You can, but if that server goes down, Uptime Kuma goes down with it and nobody gets an alert. A separate server is the better choice.
How often can it check?
As often as every 20 seconds. For a typical site, every 60 seconds is plenty.
With your sites watched, the next step is choosing a VPS size that fits the job, in case a site you watch starts running out of resources.