From bf0078f0b23f7d6053e7a6bf3671cc85f2f5a720 Mon Sep 17 00:00:00 2001 From: Justus Grunow Date: Thu, 8 May 2025 21:53:02 -0400 Subject: [PATCH] Renamed cert_expiration -> certexp --- hosts.yaml | 6 +++--- plugins/{cert_expiration.py => certexp.py} | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename plugins/{cert_expiration.py => certexp.py} (96%) diff --git a/hosts.yaml b/hosts.yaml index a6fd3e3..f2942cc 100644 --- a/hosts.yaml +++ b/hosts.yaml @@ -6,7 +6,7 @@ hosts: - ping - httpcheck: endpoint: https://webassets.confederationcollege.ca - - cert_expiration: + - certexp: endpoint: webassets.confederationcollege.ca expiration_warning_days: 30 secureassets: @@ -17,7 +17,7 @@ hosts: hostname: cc-cognotest-01.confederationc.on.ca actions: - ping - - cert_expiration: + - certexp: endpoint: cc-cognotest-01.confederationc.on.ca:9300 expiration_warning_days: 30 Solarwinds Service Desk: @@ -53,6 +53,6 @@ hosts: Gitlab: hostname: cc-gitlab.confederationcollege.ca actions: - - cert_expiration: + - certexp: endpoint: cc-gitlab.confederationcollege.ca expiration_warning_days: 30 diff --git a/plugins/cert_expiration.py b/plugins/certexp.py similarity index 96% rename from plugins/cert_expiration.py rename to plugins/certexp.py index 2cad95e..121e24f 100644 --- a/plugins/cert_expiration.py +++ b/plugins/certexp.py @@ -3,7 +3,7 @@ import OpenSSL from datetime import datetime,timedelta from socket import gaierror -def cert_expiration(args): +def certexp(args): hostname = args['endpoint'].split(":")[0] try: