From 9fb4207ae2470d52ed49bded045884d458aba4de Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 22 Mar 2024 19:00:08 +0200 Subject: check host TLS certs --- frontends/etc/gogios.json.tpl | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/frontends/etc/gogios.json.tpl b/frontends/etc/gogios.json.tpl index 8c51441..c536967 100644 --- a/frontends/etc/gogios.json.tpl +++ b/frontends/etc/gogios.json.tpl @@ -16,18 +16,19 @@ }, <% } -%> <% for my $host (qw(fishfinger blowfish)) { %> - "Check Ping4 <%= $host %>.buetow.org": { + <% for my $proto (4, 6) { -%> + "Check Ping<%= $proto %> <%= $host %>.buetow.org": { "Plugin": "<%= $plugin_dir %>/check_ping", - "Args": ["-H", "<%= $host %>.buetow.org", "-4", "-w", "100,10%", "-c", "200,15%"], + "Args": ["-H", "<%= $host %>.buetow.org", "-<%= $proto %>", "-w", "100,10%", "-c", "200,15%"], "Retries": 3, "RetryInterval": 3 }, - "Check Ping6 <%= $host %>.buetow.org": { - "Plugin": "<%= $plugin_dir %>/check_ping", - "Args": ["-H", "<%= $host %>.buetow.org", "-6", "-w", "100,10%", "-c", "200,15%"], - "Retries": 3, - "RetryInterval": 3 + "Check TLS Certificate <%= $host %>.buetow.org": { + "Plugin": "<%= $plugin_dir %>/check_http", + "Args": ["--sni", "-H", "<%= $host %>.buetow.org", "-C", "20" ], + "DependsOn": ["Check Ping4 <%= $host %>.buetow.org %>"] }, + <% } -%> <% } -%> <% for my $host (@$acme_hosts) { -%> <% for my $prefix ('', 'mirror.', 'www.') { -%> -- cgit v1.2.3