“This is the second day of my participation in the November Gwen Challenge. See details of the event: The last Gwen Challenge 2021”.

preface

A small and beautiful monitoring tool, uptime-kuma, has its own alarm notification

Liverpoolfc.tv: github.com/louislam/up…

Tool features:

  • Supports monitoring HTTP(S), TCP, Ping, DNS Record, and Push.
  • Supports minimum 20s monitoring interval
  • Support for multiple languages (including Simplified Chinese)
  • Comes with a nice status page
  • Supports multiple notification methods (email, Webhook, Slack, Apprise (customizable spikes))
  • Diablo mode
  • Supports two-factor authentication
  • Support for import and export (easy migration)

The installation

Direct use of Docker installation, convenient and quick.

Docker installation see forward portal: juejin.cn/post/684490…

Docker volume create uptime-kuma docker volume create uptime-kuma docker volume create uptime-kuma3001
docker run -d --restart=always -p 3001:3001 -v uptime-kuma:/app/data --name uptime-kuma louislam/uptime-kuma:1Docker volume inspect uptime-kuma docker volume inspect uptime-kumaCopy the code

Visit http://IP:3001 to open the WEB page

You need to set the administrator account and password for the first access.

use

Click create Monitoring item in the upper left corner to set up monitoring

HTTP (S) site monitoring

If HTTPS is self-signed, you can click ignore HTTPS site certificate error

This alarm is generated when a site requests requests every 30 seconds. The valid status code is 200-299

TCP Port Monitoring

Monitors a TCP port and sends a request every 60 seconds. A failure alarm is generated

Ping monitoring

The ping monitoring request interval can be shorter. Can do real-time host survival monitoring

Reverse monitoring

For each monitoring item, there are advanced options, and reverse monitoring means reverse, so if you set status 200 to status code, then everything is valid except 200, and 200 is not valid. Will the alarm

notice

With monitoring, with alarms, it’s nice. It’s a one-stop service

Email notification

When creating a monitoring item, click the upper right pane. Message notification can be set

Configure an email notification without SSL. Take email 163 as an example. The notification also supports cc functionality

Nailing notice

There is no direct support for pins, but they can be set up through Apprise

Stapling setup document:Github.com/caronc/appr…

Once configured, you can test it. The following figure shows that normal notifications are available and have their own recovery notifications

conclusion

Do a small and beautiful site, application port, host survival class monitoring tools, or very good. Not only is the configuration simple, but the status display is also friendly

However, there are still some shortcomings. For example, the monitoring history only takes less than 2 hours, wechat notification and Feishu notification need to be forwarded by themselves, and monitoring items are not grouped

But it can meet the current monitoring business needs