Push esp.mit.edu's cert expiry warning to 30 days
authorAlex Dehnert <adehnert@mit.edu>
Sat, 28 Jul 2012 19:58:50 +0000 (15:58 -0400)
committerAlex Dehnert <adehnert@mit.edu>
Sat, 28 Jul 2012 19:58:50 +0000 (15:58 -0400)
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
local.d/esp.cfg

index c41bcd74072dda0536b3b0691149ff5205ee6a38..a46cfcbc0872f80616f1d2449d303db4cc8f75cd 100644 (file)
@@ -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!
         }
index d6fadef2d49240eabf76edd07189f430fe71ed5f..6880b40414e78ca65ed1f1f7c114490c4346f3b4 100644 (file)
@@ -68,6 +68,7 @@ define service {
        use                     generic-esp-service
         service_description    HTTPS
        check_command           check_https
+       __CHECK_CERT_EXPIRY_DAYS        30
 }
 
 define service {