Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monitors with Ignore TLS/SSL error enabled show up as expired in the /metrics #1474

Open
2 tasks done
sniff122 opened this issue Apr 11, 2022 · 1 comment
Open
2 tasks done
Labels
area:metrics related to monitoring metrics bug Something isn't working

Comments

@sniff122
Copy link

⚠️ Please verify that this bug has NOT been raised before.

  • I checked and didn't find similar issue

🛡️ Security Policy

Description

Ive noticed in the metrics page that can be used with prometheus, HTTPS servers that dont have a valid signed (but still in date) certificate are displayed as expired despite having Ignore TLS/SSL error for HTTPS websites enabled in the advanced section of the monitor.

Additionally, ive noticed that monitors that use the push type display as down too (see attached screenshots for both)

Im not sure if this is intended behaviour or not, which is why im making this issue

Im using the latest nightly build with docker (1.13.1-nightly)

Monitor using push showing as up in the web UI:
Monitor using the push type showing as up in the web UI

Monitor showing as down in the /metrics page:
Monitor using the push type showing as down in the metrics page

Monitor with a self signed/unknown CA certificate showing as not expired and displaying the expiry date in the web UI:
Monitor with a self signed/unknown CA certificate showing as not expired and displaying the expiry date in the web UI

Monitor with a self signed/unknown CA certificate showing as expired but still displaying the expiry date on the stats page:
![Monitor with a self signed/unknown CA certificate showing as expired](https://lewisthe.computer/uploads
/1ec7805038b63ff3f0af.png)
Monitor with a self signed/unknown CA certificate showing expiry date

👟 Reproduction steps

Add a HTTPS monitor using a self signed certificate making sure that the Ignore TLS/SSL error for HTTPS websites is enabled and it should say as up and have the certificate expiry time. When looking at the /metrics page it will show as expired (0) but still have the expiry date

For the push monitor, add one and ensure that its being pushed to and showing up in the web UI but in /metrics it will show as down (0)

👀 Expected behavior

The certificate info will respect the Ignore TLS/SSL error for HTTPS websites option for the monitor in the /metrics page and display the same info as the web UI

The push monitor should follow the status in the web UI (up or down)

😓 Actual Behavior

For self signed/unknown CA certificates the monitor displays as expired in /metrics but valid in the web UI but still displays the expiry date

For push monitors, the monitor is displayed as down in /metrics and up on the web UI

🐻 Uptime-Kuma Version

1.13.1-nightly

💻 Operating System and Arch

Ubuntu 18.04.6 LTS x86_64

🌐 Browser

Firefox v99 (64 bit) on ubuntu 21.10

🐋 Docker Version

Docker version 20.10.7, build 20.10.7-0ubuntu5~18.04.3

🟩 NodeJS Version

No response

📝 Relevant log output

No response

@sniff122 sniff122 added the bug Something isn't working label Apr 11, 2022
@RubenNL
Copy link
Contributor

RubenNL commented Dec 27, 2022

I am having the same problem. Have you found a workaround? If not, I will try solving this one in the near future.

EDIT: actually, for me its a bit different. It shows when its down, but when its back up its gone from the metrics page.

@CommanderStorm CommanderStorm changed the title Unusual behaviour in the /metrics page Unusual behaviour in the ´/metrics´ page Dec 5, 2023
@CommanderStorm CommanderStorm changed the title Unusual behaviour in the ´/metrics´ page Unusual behaviour in the /metrics page Dec 5, 2023
@CommanderStorm CommanderStorm added the area:metrics related to monitoring metrics label Dec 5, 2023
@CommanderStorm CommanderStorm changed the title Unusual behaviour in the /metrics page Monitors with Ignore TLS/SSL error enabled show up as expired in the /metrics Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:metrics related to monitoring metrics bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants