From 713f12e1d4397d2675db4e864042966dbc85f19a Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Mon, 24 Apr 2023 16:23:01 +0200 Subject: [PATCH] Terminate regex --- templates/monitor/sunetdrive_sites.cfg.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/monitor/sunetdrive_sites.cfg.erb b/templates/monitor/sunetdrive_sites.cfg.erb index e557533..50263d2 100644 --- a/templates/monitor/sunetdrive_sites.cfg.erb +++ b/templates/monitor/sunetdrive_sites.cfg.erb @@ -190,7 +190,7 @@ define service { <% else -%> <% version_variable = 'nextcloud_version_prod_' << cur_cust -%> <% end -%> -<% version = scope.lookupvar(version_variable).gsub(/-[0-9]+,'') -%> +<% version = scope.lookupvar(version_variable).gsub(/-[0-9]+/,'') -%> check_command check_nextcloud_version!'<%= version %>' check_interval 5 check_period 24x7