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

[http_check] Adding a days_critical to the SSL certificate expiration feature #2087

Merged
merged 1 commit into from
Nov 20, 2015

Conversation

truthbk
Copy link
Member

@truthbk truthbk commented Nov 17, 2015

The check will now raise a critical warning if we're within the specified CRITICAL range before a certificate expires.

@truthbk truthbk force-pushed the jaime/httpcheck_sslcrit branch from e72f056 to 3ca8f1d Compare November 17, 2015 23:00
@MiguelMoll
Copy link

I was contemplating this exact feature! This would be really useful.

@@ -18,6 +18,7 @@
class Status:
DOWN = "DOWN"
WARNING = "WARNING"
CRITICAL = "CRITICAL"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure that it makes much sense to add a new "CRITICAL" status here. These statuses seem to have been primarily used before we had actual service checks, and service checks now only have 3 states (OK, WARNING, CRITICAL).

So I would use a Status.DOWN status for this new threshold.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@olivielpeau the thing is I don't like setting DOWN when it's not really true. I create that redundant state for better code readability - if you disagree I'm happy to change it back again.

@olivielpeau
Copy link
Member

After some discussion, we'll keep the new CRITICAL network check status.

This looks good to merge, thanks @truthbk!

Adding days_critical to test and config.
Adding check for critical days for certificate expiration warning.
@truthbk truthbk force-pushed the jaime/httpcheck_sslcrit branch from ff1021f to 8fed4c9 Compare November 19, 2015 20:52
truthbk added a commit that referenced this pull request Nov 20, 2015
[http_check] Adding a days_critical to the SSL certificate expiration feature
@truthbk truthbk merged commit 2df5dc3 into master Nov 20, 2015
@truthbk truthbk deleted the jaime/httpcheck_sslcrit branch November 20, 2015 21:24
@olivielpeau olivielpeau added this to the 5.7.0 milestone Feb 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants