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

Add Certificate Expiration Date Variable and Configurable Alerting for Notifications #5358

Open
rvpool opened this issue Nov 18, 2024 · 3 comments
Labels
feature-request Request for new features to be added

Comments

@rvpool
Copy link

rvpool commented 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:

  • Monitor: DonateFood-Prod
  • Certificate Hostname: dsnydonate.nyc.gov
  • Expiration Date: 2025-10-24
  • Days Remaining: 30 days
    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

@rvpool rvpool added the feature-request Request for new features to be added label Nov 18, 2024
@apio-sys
Copy link
Contributor

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
Copy link
Author

rvpool commented Nov 18, 2024 via email

@rvpool
Copy link
Author

rvpool commented Nov 19, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features to be added
Projects
None yet
Development

No branches or pull requests

2 participants