mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-03-02 22:57:00 -05:00
Add Certificate Expiration Date Variable and Configurable Alerting for Notifications #3769
Labels
No labels
A:accessibility
A:api
A:cert-expiry
A:core
A:dashboard
A:deployment
A:documentation
A:domain expiry
A:incidents
A:maintenance
A:metrics
A:monitor
A:notifications
A:reports
A:settings
A:status-page
A:ui/ux
A:user-management
Stale
ai-slop
blocked
blocked-upstream
bug
cannot-reproduce
dependencies
discussion
duplicate
feature-request
feature-request
good first issue
hacktoberfest
help
help wanted
house keeping
invalid
invalid-format
invalid-format
question
releaseblocker 🚨
security
spam
type:enhance-existing
type:new
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/uptime-kuma#3769
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rvpool on GitHub (Nov 18, 2024).
📑 I have found these related issues/pull requests
Proposed Solution:
New Notification Variables:
Add a new variable, {{CERT_EXP_DATE}}, that represents the certificate expiration date.
Add another variable, {{CERT_EXP_DAYS_REMAINING}}, to include the number of days until the certificate expires.
Customizable Alerts for Certificate Expiration:
🏷️ Feature Request Type
Certificate expiry
🔖 Feature description
Allow users to configure notifications for certificate expiration:
Example: Notify 60, 30, 15, and 5 days before the expiration date.
Make this configurable for all monitors, so users don’t have to set it manually for each monitor.
Email Example: Notifications for certificate expiration should include:
Monitor Name (e.g., DonateFood-Prod).
Certificate Name/Hostname (e.g., dsnydonate.nyc.gov).
Expiration Date (e.g., 2025-10-24).
Days Remaining (e.g., 340 days remaining)
Example Email
Subject: Certificate Expiration Alert: DonateFood-Prod
Body:
Global Alert Configuration for Certificate Expiry:
✔️ Solution
Add a global configuration option where users can:
Set thresholds for alerts (e.g., notify at 60, 30, 15 days before expiry).
Automatically apply these thresholds to all HTTPS monitors.
❓ Alternatives
No response
📝 Additional Context
No response
@apio-sys commented on GitHub (Nov 18, 2024):
I think this is already there. At least for the portion to globally set alerting/notification thresholds for certificate expiration. Have you looked in Settings > Notifications > TLS Certificate Expiry ? Then, on an individual monitor you tick "Certificate Expiry Notification" (and other options on that subject as you see fit) and it will inherit the alerting mechanism.
@rvpool commented on GitHub (Nov 18, 2024):
hi joris thanks for the quick reply
so on the setting notification i have
notification type :smtp
friendly name : Test-Cert-Exp
in the custom subject i have ( but there is not variable for the cert
expiration date)
Certificate Expiry Alert: {{NAME}} is {{STATUS}}
then on my monitor i check
Certificate Expiry Notification
but when i want to test this to see if works i only get and email
with subject
Certificate Expiry Alert: Test is ⚠️ Test
body message:
Test-Cert-Exp
but not information about the cert
On Mon, Nov 18, 2024 at 2:33 PM Joris Le Blansch @.***>
wrote:
@rvpool commented on GitHub (Nov 19, 2024):
hi louis,
This is what I meant regarding certificate alerts.
Currently, when I set up an alert that applies to all my monitors, I also
have the certificate expiry notification checked for each monitor. However,
when I receive the alerts, this is what happens: I get a message for the
up/down status, but the subject is created using the alert's friendly name,
which I set up.
What I’m trying to say is that we need separate alerts—one dedicated to
certificate expiration and another for the up/down status. For the
certificate alert, it should allow me to configure notifications for 30,
60, or 90 days prior to expiration.
Let me know your thoughts on this.
[image: image.png]
[image: image.png]
On Mon, Nov 18, 2024 at 2:41 PM Rafael Vanderpool @.***>
wrote:
@jazaragosa commented on GitHub (Jan 30, 2025):
It would be helpful to separate alerts for service uptime/downtime and certificate expiration, especially since there will end of [support for expiration notification emails https://letsencrypt.org/2025/01/22/ending-expiration-emails/ . This way, notifications remain clear and focused on their respective concerns.