sensu-plugins / sensu-plugins-http

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`.
http://sensu-plugins.io
MIT License
30 stars 97 forks source link

check-https-cert default thresholds #44

Closed drags closed 8 years ago

drags commented 8 years ago

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.