From c2454c18aa0b469d89541381aa4367046a4dd120 Mon Sep 17 00:00:00 2001 From: Alex Dehnert Date: Tue, 5 Mar 2024 07:24:07 +0000 Subject: [PATCH] mail: Check IMAP and POP cert expiry --- conf.d/extra_commands.cfg | 3 +-- local.d/chankillo.cfg | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) 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 } -- 2.34.1