From: Alex Dehnert Date: Sat, 28 Jul 2012 19:58:50 +0000 (-0400) Subject: Push esp.mit.edu's cert expiry warning to 30 days X-Git-Url: https://dehnerts.com/gitweb/?a=commitdiff_plain;h=88bc4b155f14810f40ce7db241f0f06b6bd95c6d;p=sysconfig%2Fnagios3.git 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. --- 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 {