From 004c4600bff1973550de42f46cbdb10b7403ce42 Mon Sep 17 00:00:00 2001 From: Timo Makinen Date: Fri, 15 Nov 2013 08:39:17 +0200 Subject: [PATCH] nagios: Splitted certificate and service checks from https, imaps and pop3s. --- nagios/manifests/target.pp | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/nagios/manifests/target.pp b/nagios/manifests/target.pp index 6567716..dde91e5 100644 --- a/nagios/manifests/target.pp +++ b/nagios/manifests/target.pp @@ -108,6 +108,11 @@ class nagios::target::https inherits nagios::target { description => "HTTPS", } + @@nagios::service { "${::homename}_https_certificate": + command => "check_http!--ssl -C 14", + description => "HTTPS Certificate", + } + } @@ -116,10 +121,15 @@ class nagios::target::https inherits nagios::target { class nagios::target::imaps inherits nagios::target { @@nagios::service { "${::homename}_imaps": - command => "check_imap!--ssl -p 993 -D 14", + command => "check_imap!--ssl -p 993", description => "IMAPS", } + @@nagios::service { "${::homename}_imaps_certificate": + command => "check_imap!--ssl -p 993 -D 14", + description => "IMAPS Certificate", + } + } @@ -176,10 +186,15 @@ class nagios::target::lpd inherits nagios::target { class nagios::target::pop3s inherits nagios::target { @@nagios::service { "${::homename}_pop3s": - command => "check_pop!--ssl -p 995 -D 14", + command => "check_pop!--ssl -p 995", description => "POP3s", } + @@nagios::service { "${::homename}_pop3s_certificate": + command => "check_pop!--ssl -p 995 -D 14", + description => "POP3s Certificate", + } + }