Add a check for puppet client cert expiration
authorAurelien Jarno <aurelien@aurel32.net>
Sun, 31 Mar 2019 19:04:28 +0000 (21:04 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 31 Mar 2019 19:04:28 +0000 (21:04 +0200)
It has been noticed while regenerating the puppet CA certificate that a
few puppet client certificate were also about to expire. We didn't have
any check in nagios for that, but thanks to Heartbleed this has not been
an issue.

config/nagios-master.cfg

index af2a92b..363e159 100644 (file)
@@ -2928,6 +2928,13 @@ services:
     hostgroups: computers
     check_interval:  60
     retry_interval: 15
+  -
+    name: puppet - client cert
+    nrpe: "sudo -u puppet /usr/lib/nagios/plugins/dsa-check-cert-expire /var/lib/puppet/ssl/certs/$HOSTNAME$.debian.org.pem"
+    hostgroups: computers
+    check_interval: 60
+    max_check_attempts: 2
+    retry_interval: 5
   ####
   -
     name: ping peer on mgmt network