From 88bc4b155f14810f40ce7db241f0f06b6bd95c6d Mon Sep 17 00:00:00 2001 From: Alex Dehnert Date: Sat, 28 Jul 2012 15:58:50 -0400 Subject: [PATCH] Push esp.mit.edu's cert expiry warning to 30 days This uses "fake" default arguments for check commands. See http://tracker.nagios.org/print_bug_page.php?bug_id=174 for the bug asking for a good way to do them, and a workaround for how to do them with current nagios. --- conf.d/generic-service_nagios2.cfg | 3 +++ local.d/esp.cfg | 1 + 2 files changed, 4 insertions(+) diff --git a/conf.d/generic-service_nagios2.cfg b/conf.d/generic-service_nagios2.cfg index c41bcd7..a46cfcb 100644 --- a/conf.d/generic-service_nagios2.cfg +++ b/conf.d/generic-service_nagios2.cfg @@ -22,5 +22,8 @@ define service{ notification_period 24x7 notification_options w,u,c,r contact_groups admins + + __CHECK_CERT_EXPIRY_DAYS 14 + register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! } diff --git a/local.d/esp.cfg b/local.d/esp.cfg index d6fadef..6880b40 100644 --- a/local.d/esp.cfg +++ b/local.d/esp.cfg @@ -68,6 +68,7 @@ define service { use generic-esp-service service_description HTTPS check_command check_https + __CHECK_CERT_EXPIRY_DAYS 30 } define service { -- 2.34.1