Skip to content

Simpletest

Prototyping IT solutions and interesting OpenSource projects

Menu
  • Home
  • About
  • Red Hat!
  • RH Consulting
Menu

Uptime Kuma

Posted on November 3, 2021November 3, 2021 by bvandenh

When building complex IT structures with a whole team, but also by yourself can take some time. While you go on and load software providing network services on different hosts you may want to keep track of what is up and what is not.

There are complex tools like Zabbix and ZenOSS which are fine to support a operations process. But just to keep a list of what is functioning a simple uptime checker with some way to report problems to Telegram or email is great! Uptime Kuma is just that.

It is simple in what it does, just connects on a network port, grep some text on a website or a ping. Simple in how it installs. Just loading a container, saving persistent data in a volume if needed.

sudo podman volume create uptime-kuma

Then load the container using that container

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

From time to time, you will be hinted at the availability of updates. The following to update the container:

sudo podman pull louislam/uptime-kuma:1
1: Pulling from louislam/uptime-kuma
07aded7c29c6: Already exists
92706508d124: Already exists
49107897b8d3: Already exists
9871bd9e2c04: Already exists
bff42149a58b: Already exists
17a7a4451ba6: Already exists
3e41b8a83785: Already exists
e7a13e1bea06: Pull complete
Digest: sha256:49e880112773ac264a3c842b139a1978f9a886c9ce047ac6a2651ebd8f3ac075
Status: Downloaded newer image for louislam/uptime-kuma:1
docker.io/louislam/uptime-kuma:1

Then we need to stop the container running the old code and start the new container

sudo podman stop uptime-kuma
sudo podman rm uptime-kuma

Then repeat the loading of the container using the existing volume

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

Adding monitoring targets

words for adding monitoring targets

Changing the password

sudo podman exec -it uptime-kuma npm run reset-password

> uptime-kuma@1.10.0 reset-password /app
> node extra/reset-password.js

== Uptime Kuma Reset Password Tool ==
Loading the database
Data Dir: ./data/
SQLite config:
[ { journal_mode: 'wal' } ]
[ { cache_size: -12000 } ]
SQLite Version: 3.36.0
Found user: <user>
New Password: <new-password>
Confirm New Password: <new-password>
Password reset successfully.
Closing the database
SQLite closed
Finished.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Learning in phases and their emotional states
  • Uptime Kuma
  • RDP VNC to HTML5 proxy: Guacamole
  • Introducing Hacker tools

Recent Comments

  1. Bart van den Heuvel on RDP VNC to HTML5 proxy: Guacamole
  2. Martijn on RDP VNC to HTML5 proxy: Guacamole

Archives

  • November 2021
  • March 2021

Categories

  • Hacker tools
  • Uncategorized
© 2023 Simpletest | Powered by Superbs Personal Blog theme