check histhost.pem if available
authorPeter Palfrader <peter@palfrader.org>
Fri, 2 Oct 2009 18:33:02 +0000 (20:33 +0200)
committerPeter Palfrader <peter@palfrader.org>
Fri, 2 Oct 2009 18:33:02 +0000 (20:33 +0200)
config/nagios-master.cfg

index 1e85abd..de8f84f 100644 (file)
@@ -1446,6 +1446,11 @@ services:
     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C snmpd"
     hostgroups: computers
 
+ ####
+  -
+    name: "host's SSL cert"
+    nrpe: "if [ -e /etc/ssl/certs/thishost.pem ]; then /usr/lib/nagios/plugins/dsa-check-cert-expire /etc/ssl/certs/thishost.pem; else echo 'No thishost.pem on this host.'; fi"
+    hostgroups: computers
 
  ############ Processes/Services that only run on some computers ############
  ####