frank
Goto Top

Install Monitoring Uptime Kuma

article-picture
I have been looking for a simple monitoring program for our website for some time. Thanks to the help of our users I found in a post the monitoring software Uptime Kuma.

Uptime Kuma is a web server that uses different types of monitors ( HTTP(s), TCP ports, keywords, ping, DNS, push, etc.) to store and check the status of the hardware or software being monitored and, if necessary, alert you via notifications of various types (Telegram, Discord, Signal, Slack, Pushover, Email (SMTP), etc.). The software is easy to use and can additionally create its own status overviews. You can install it via Docker or directly. Here are my instructions for the installation without Docker.


back-to-topRequirements


  • Ubuntu Linux 22.04.1 LTS on a machine or VM that is always running (you want continuous monitoring).
  • The installation should be run as a standalone user and not as root user. In my example it is always the user 'frank'.
  • node, npm, nvm, pm2
  • git

back-to-topInstallation: Version Manager (nvm), Node (node) and Node Package Manager (npm)


If you already have Node and npm installed on your system, you can skip this step.

Node and npm should be installed with a version manager (nvm). This way you can keep an overview of the many versions. See also: https://github.com/nvm-sh/nvm


The terminal must be restarted for the environment variables to work. After that the command "nvm" should be available. Short check:


Now we install the current version of Node:


After the automatic download and install we check it with:


Now all requirements are met (nvm, npm and node).

back-to-topInstallation: Uptime Kuma


Details, source code and configuration can be found at: https://github.com/louislam/uptime-kuma

Now we check again for the current npm version and install the latest version if necessary:


Then we load the source code from Git and start the installation:


When the message "Done" appears, it still takes a few minutes until the input appears again. Do not abort before!

The "Uptime Kuma" server is ready to start. You can start it directly with the following command:


back-to-topInstallation: Process Manager (pm2)


I personally find it better if the server runs and is managed in the background. For this we install a process manager (pm2):


Now we start the "Uptime Kuma" server using pm2:

The default settings for this are: "localhost" and port "3001":


You can of course customize the port and the host:

After the start it should now look like this:

b9bec4e125e4ebcf59d1d363845528a0

The installation is finished. You can reach the Uptime Kuma Admin web page at:


With the process manager pm2 you can control the server:


back-to-topStart automatically at boot time


To make Uptime Kuma start automatically on the next reboot, enter the following command:


Now a generated command appears. Now paste this command completely into the shell via Copy&Paste and execute it:


This will start the server at the next reboot.

Tip: To get rid of the autostart of the server enter the following:


back-to-topUbuntu Firewall (ufw)


If the Ubuntu firewall is active, you have to release port 3001:


back-to-topCall GUI



At the first start the GUI asks for the language and creates a new user:

699563d5baa6d87477392b7a90763be5

After that you start in the Dashboard. Here you can create a new monitor:

239ae2fed2cbc035638ad7930b96a32c

66a2e5ed63b5a3bf5ebf791f184e8f43

c434462e158926058f62039ed1c30f89

That's it face-smile

Feedback, questions and additions are welcome. If you like the tutorial, I am happy about every Like (click on the heart).

Greeting
Frank

Content-Key: 5509572276

Url: https://administrator.de/contentid/5509572276

Printed on: February 2, 2023 at 00:02 o'clock