Two passes
This commit is contained in:
parent
713f12e1d4
commit
a9695aeee1
|
@ -190,8 +190,9 @@ 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).gsub(/-[0-9]+/,'') -%>
|
<% version = scope.lookupvar(version_variable) -%>
|
||||||
check_command check_nextcloud_version!'<%= version %>'
|
<% version_truncated = version_temp.gsub(/-[0-9]+/,'') -%>
|
||||||
|
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
|
||||||
|
|
Loading…
Reference in a new issue