mail: Check IMAP and POP cert expiry
authorAlex Dehnert <alex@dehnerts.com>
Tue, 5 Mar 2024 07:24:07 +0000 (07:24 +0000)
committerAlex Dehnert <alex@dehnerts.com>
Tue, 5 Mar 2024 07:24:07 +0000 (07:24 +0000)
conf.d/extra_commands.cfg
local.d/chankillo.cfg

index 6546f9e1c1da8fda48a60a5de3fa484f26141e18..735ef584756bd85a92a8aeb90694953b21b9a179 100644 (file)
@@ -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$'
-       }
-
+}
index 6c9fc281f9c8ac9269c78110d60e55f2f7c2a918..50239f35ffd672b1b69a14512be7f90e930d0370 100644 (file)
@@ -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
 }