nagios: Splitted certificate and service checks from https, imaps and pop3s.

This commit is contained in:
Timo Makinen 2013-11-15 08:39:17 +02:00
parent 2837e3ae85
commit 004c4600bf

View file

@ -108,6 +108,11 @@ class nagios::target::https inherits nagios::target {
description => "HTTPS", 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 { class nagios::target::imaps inherits nagios::target {
@@nagios::service { "${::homename}_imaps": @@nagios::service { "${::homename}_imaps":
command => "check_imap!--ssl -p 993 -D 14", command => "check_imap!--ssl -p 993",
description => "IMAPS", 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 { class nagios::target::pop3s inherits nagios::target {
@@nagios::service { "${::homename}_pop3s": @@nagios::service { "${::homename}_pop3s":
command => "check_pop!--ssl -p 995 -D 14", command => "check_pop!--ssl -p 995",
description => "POP3s", description => "POP3s",
} }
@@nagios::service { "${::homename}_pop3s_certificate":
command => "check_pop!--ssl -p 995 -D 14",
description => "POP3s Certificate",
}
} }