Categories
Ref: medium

Uptime Kuma: self-hosted monitoring tool | by William Donze

Again, press +Add New Monitor but this time choose HTTP(s) for Monitor Type

As for the others, choose a Friendly Name and this time enter the URL of the website, not the hostname

In the Advanced part, under Accepted Status Codes I’ve added status 300–399 in addition to status 200–299, because Grafana makes a lot of redirects so it’s normal to have a status code between 300 and 399 for this website (of course it depends on the website you want to monitor)

If you’re interested in Grafana, I’ve written another article about it, this time for monitoring Nginx logs

let’s get back to the subject, go to the Tags part and select the previously created tag service and press Add

Basic Auth configuration

If, like me, your website has a basic auth in front of it, you can configure the check so that it can log in and check if the website is running correctly or not

To do that, go to the Authentication part and select HTTP Basic Auth

Then enter the username and the password to access the website or the token if you have configured one

Press Save at the bottom of the page and the check is done

On the check page we have just created, you will find the following information, including one indicating the number of days remaining before the site’s SSL certificate expires.

Alright, now we have our 3 checks working perfectly!

Source link

About Author

Leave a Reply

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