Try again

This commit is contained in:
Micke Nordin 2023-04-24 16:34:37 +02:00
parent e840903eae
commit 3b5d14a189
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257

View file

@ -190,9 +190,8 @@ define service {
<% else -%> <% else -%>
<% version_variable = 'nextcloud_version_prod_' << cur_cust -%> <% version_variable = 'nextcloud_version_prod_' << cur_cust -%>
<% end -%> <% end -%>
<% version = scope.lookupvar(version_variable) << '' -%> <% version = String(scope.lookupvar(version_variable)).gsub(/-[0-9]+/,'') -%>
<% version_truncated = version.gsub(/-[0-9]+/,'') -%> check_command check_nextcloud_version!'<%= version %>'
check_command check_nextcloud_version!'<%= version_truncated %>'
check_interval 5 check_interval 5
check_period 24x7 check_period 24x7
contact_groups naemon-admins contact_groups naemon-admins