Skip to content

Commit 721813a

Browse files
author
Geoff Bourne
committed
Add warning and ok to example in ssl_cert_expiration plugin
1 parent 840c8b5 commit 721813a

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)