Skip to content

Commit 9384353

Browse files
authored
Merge pull request #160 from racker/itzg/update-cert-expire-example
Add warning and ok to example in ssl_cert_expiration plugin
2 parents 840c8b5 + 721813a commit 9384353

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ssl_cert_expiration.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
# if (metric['cert_end_in'] <= 0) {
1010
# return new AlarmStatus(CRITICAL, 'Certificate has expired on host')
1111
# }
12+
# if (metric['cert_end_in'] < 604800) {
13+
# return new AlarmStatus(WARNING, 'Certificate expires in less than 1 week');
14+
# }
15+
# return new AlarmStatus(OK, 'Certificate valid for more than 1 week');
1216

1317
# Copyright 2015 Rackspace
1418

0 commit comments

Comments
 (0)