From: Alex Dehnert Date: Tue, 5 Mar 2024 07:24:07 +0000 (+0000) Subject: mail: Check IMAP and POP cert expiry X-Git-Url: https://dehnerts.com/gitweb/?a=commitdiff_plain;h=c2454c18aa0b469d89541381aa4367046a4dd120;p=sysconfig%2Fnagios3.git mail: Check IMAP and POP cert expiry --- diff --git a/conf.d/extra_commands.cfg b/conf.d/extra_commands.cfg index 6546f9e..735ef58 100644 --- a/conf.d/extra_commands.cfg +++ b/conf.d/extra_commands.cfg @@ -8,5 +8,4 @@ define command { define command{ command_name check_https_port command_line /usr/lib/nagios/plugins/check_http --ssl -H '$HOSTADDRESS$' -I '$HOSTADDRESS$' -C '$_SERVICE_CHECK_CERT_EXPIRY_DAYS$' --port '$_SERVICE_CONNECT_PORT$' '$ARG1$' - } - +} diff --git a/local.d/chankillo.cfg b/local.d/chankillo.cfg index 6c9fc28..50239f3 100644 --- a/local.d/chankillo.cfg +++ b/local.d/chankillo.cfg @@ -35,7 +35,7 @@ define service { name chankillo-imaps use adehnert-service service_description IMAPS - check_command check_simap + check_command check_simap!--certificate=21,7 host_name chankillo } @@ -43,7 +43,7 @@ define service { name chankillo-pops use adehnert-service service_description POP3S - check_command check_spop + check_command check_spop!--certificate=21,7 host_name chankillo }