diff --git a/templates/monitor/sunetdrive_sites.cfg.erb b/templates/monitor/sunetdrive_sites.cfg.erb index 71cae06..8f7f6b2 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) -%> +<% version = scope.lookupvar(version_variable) << '' -%> <% version_truncated = version.gsub(/-[0-9]+/,'') -%> check_command check_nextcloud_version!'<%= version_truncated %>' check_interval 5