From 3b5d14a18980207f687f88386d751ea18e03d355 Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Mon, 24 Apr 2023 16:34:37 +0200 Subject: [PATCH] Try again --- templates/monitor/sunetdrive_sites.cfg.erb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/templates/monitor/sunetdrive_sites.cfg.erb b/templates/monitor/sunetdrive_sites.cfg.erb index 8f7f6b2..50b20ec 100644 --- a/templates/monitor/sunetdrive_sites.cfg.erb +++ b/templates/monitor/sunetdrive_sites.cfg.erb @@ -190,9 +190,8 @@ define service { <% else -%> <% version_variable = 'nextcloud_version_prod_' << cur_cust -%> <% end -%> -<% version = scope.lookupvar(version_variable) << '' -%> -<% version_truncated = version.gsub(/-[0-9]+/,'') -%> - check_command check_nextcloud_version!'<%= version_truncated %>' +<% version = String(scope.lookupvar(version_variable)).gsub(/-[0-9]+/,'') -%> + check_command check_nextcloud_version!'<%= version %>' check_interval 5 check_period 24x7 contact_groups naemon-admins