vault: Check that the vault server is responding with good cert
authorAlex Dehnert <alex@dehnerts.com>
Fri, 9 Jul 2021 00:23:49 +0000 (20:23 -0400)
committerAlex Dehnert <alex@dehnerts.com>
Fri, 9 Jul 2021 00:23:49 +0000 (20:23 -0400)
conf.d/extra_commands.cfg
local.d/virunga.cfg

index 99716f062ef9736b2b4a719b911fd474170898b0..6546f9e1c1da8fda48a60a5de3fa484f26141e18 100644 (file)
@@ -4,3 +4,9 @@ define command {
        command_line    /usr/lib/nagios/plugins/check_smtp -H '$HOSTADDRESS$' -S -D 14
 }
 
+# 'check_https_port' command definition
+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 d01e8c688d4d5358c6e33742c9de2f58d1a3ae3f..6e91b47280236e5cf6fdf1ccce35d7670a016e17 100644 (file)
@@ -10,3 +10,13 @@ define service {
     service_description RUN-VAULT
     check_command       check_byssh_service!vault.service
 }
+
+define service {
+    name virunga-vault
+    use adehnert-service
+    host_name virunga
+    service_description VAULT-HTTPS
+    check_command check_https_port
+    __check_cert_expiry_days 10
+    __connect_port 8200
+}