Renamed cert_expiration -> certexp
This commit is contained in:
parent
1bf4ead343
commit
bf0078f0b2
@ -6,7 +6,7 @@ hosts:
|
|||||||
- ping
|
- ping
|
||||||
- httpcheck:
|
- httpcheck:
|
||||||
endpoint: https://webassets.confederationcollege.ca
|
endpoint: https://webassets.confederationcollege.ca
|
||||||
- cert_expiration:
|
- certexp:
|
||||||
endpoint: webassets.confederationcollege.ca
|
endpoint: webassets.confederationcollege.ca
|
||||||
expiration_warning_days: 30
|
expiration_warning_days: 30
|
||||||
secureassets:
|
secureassets:
|
||||||
@ -17,7 +17,7 @@ hosts:
|
|||||||
hostname: cc-cognotest-01.confederationc.on.ca
|
hostname: cc-cognotest-01.confederationc.on.ca
|
||||||
actions:
|
actions:
|
||||||
- ping
|
- ping
|
||||||
- cert_expiration:
|
- certexp:
|
||||||
endpoint: cc-cognotest-01.confederationc.on.ca:9300
|
endpoint: cc-cognotest-01.confederationc.on.ca:9300
|
||||||
expiration_warning_days: 30
|
expiration_warning_days: 30
|
||||||
Solarwinds Service Desk:
|
Solarwinds Service Desk:
|
||||||
@ -53,6 +53,6 @@ hosts:
|
|||||||
Gitlab:
|
Gitlab:
|
||||||
hostname: cc-gitlab.confederationcollege.ca
|
hostname: cc-gitlab.confederationcollege.ca
|
||||||
actions:
|
actions:
|
||||||
- cert_expiration:
|
- certexp:
|
||||||
endpoint: cc-gitlab.confederationcollege.ca
|
endpoint: cc-gitlab.confederationcollege.ca
|
||||||
expiration_warning_days: 30
|
expiration_warning_days: 30
|
||||||
|
|||||||
@ -3,7 +3,7 @@ import OpenSSL
|
|||||||
from datetime import datetime,timedelta
|
from datetime import datetime,timedelta
|
||||||
from socket import gaierror
|
from socket import gaierror
|
||||||
|
|
||||||
def cert_expiration(args):
|
def certexp(args):
|
||||||
hostname = args['endpoint'].split(":")[0]
|
hostname = args['endpoint'].split(":")[0]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
Loading…
x
Reference in New Issue
Block a user