This plugin provides native HTTP instrumentation for monitoring and metrics collection, including: response code, JSON response, HTTP last modified, SSL expiry, and metrics via `curl`.
Adding threshold defaults to check-https-cert.rb. Currently there are no defaults, so when the check looks to compare against config[:critical].to_i it compares against 0. This means that in the case that a user omits the warning and critical flags (poor usage for sure, but alas: users) they will never get alerted to their SSL certs expiring.
Went with 50 days for warning and 25 for critical mostly as suggestions.
Adding threshold defaults to
check-https-cert.rb
. Currently there are no defaults, so when the check looks to compare againstconfig[:critical].to_i
it compares against 0. This means that in the case that a user omits the warning and critical flags (poor usage for sure, but alas: users) they will never get alerted to their SSL certs expiring.Went with 50 days for warning and 25 for critical mostly as suggestions.