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

Certificate check not displayed in UI and no alert sent #4461

Closed
2 tasks done
mlanner opened this issue Feb 7, 2024 · 4 comments
Closed
2 tasks done

Certificate check not displayed in UI and no alert sent #4461

mlanner opened this issue Feb 7, 2024 · 4 comments
Labels
area:cert-expiry related to certificate expiry notifications area:monitor Everything related to monitors help

Comments

@mlanner
Copy link

mlanner commented Feb 7, 2024

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

  • I checked and didn't find similar issue

🛡️ Security Policy

📝 Describe your problem

I have configured a monitor for an HTTPS site, but the "Cert Exp." doesn't show up and therefore won't send a certificate expiration warning. I have many other similar sites configured, but this is the only one where the cert is not picked up. If I visit the site and check the cert manually, it shows that the cert is issued by Let's Encrypt and is valid.

What I expect to see:
uptime-kuma-check-stats-expected

What I actually see:
uptime-kuma-check-stats-no-cert-exp

As noted below from the log, it does check for the cert and it knows it has expired. Still, it's not showing in the GUI. Also, it doesn't send out the notification. This works for all my other monitors on this host.

📝 Error Message(s) or Log

However, the log does capture that the certificate has expired:

2024-02-06T19:20:37-08:00 [MONITOR] WARN: Monitor #2 'HTTPS | host.domain.com': Pending: certificate has expired | Max retries: 2 | Retry: 1 | Retry Interval: 300 seconds | Type: http

🐻 Uptime-Kuma Version

1.23.11

💻 Operating System and Arch

Ubuntu 22.04 w/ Docker

🌐 Browser

Firefox

🖥️ Deployment Environment

  • Runtime: Docker
  • Database: sqlite
  • Filesystem used to store the database on: ext4
  • number of monitors: 7
@mlanner mlanner added the help label Feb 7, 2024
@mlanner mlanner changed the title Certificate check not executed Certificate check not displayed in UI and no alert sent Feb 7, 2024
@chakflying
Copy link
Collaborator

chakflying commented Feb 7, 2024

Likely a duplicate of #3551, addressed in #4281

@mlanner
Copy link
Author

mlanner commented Feb 7, 2024

@chakflying Agree that it does seem to behave largely the same as in the ticket you referenced. I'm using the root of my domain, though, like suggested in the example given in that ticket. I also tested this on a different Uptime Kuma instance (same version) against this particular server and FQDN, and it behaves the same. So, maybe it has something to do with the particular server/software ... ?

@chakflying
Copy link
Collaborator

Yes, I don't have a concrete answer, my guess is that the HTTP Keep-Alive configuration of the target server would affect whether the socket is kept open. You are welcome to investigate further to see why.

@CommanderStorm
Copy link
Collaborator

Agree that it does seem to behave largely the same as in the ticket you referenced

I am going to close this issue as a duplicate
=> lets continue any discussion in #3551

@CommanderStorm CommanderStorm closed this as not planned Won't fix, can't repro, duplicate, stale Feb 7, 2024
@CommanderStorm CommanderStorm added area:monitor Everything related to monitors area:cert-expiry related to certificate expiry notifications labels Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:cert-expiry related to certificate expiry notifications area:monitor Everything related to monitors help
Projects
None yet
Development

No branches or pull requests

3 participants