Use new facts in template

This commit is contained in:
Micke Nordin 2023-04-24 15:06:51 +02:00
parent 31651be3be
commit 4af4a23d1b
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257

View file

@ -186,9 +186,9 @@ define service {
notes_url https://<%= site %>/status.php
action_url /grafana/dashboard/script/histou.js?host=$HOSTNAME$&service=$SERVICEDISPLAYNAME$&theme=light&annotations=true
<% if site.match('test') -%>
check_command check_nextcloud_version!'<%= @nextcloud_version_test %>'
check_command check_nextcloud_version!'<%= scope.lookupvar("nextcloud_version_test_#{cur_cust}") %>'
<% else -%>
check_command check_nextcloud_version!'<%= @nextcloud_version_prod %>'
check_command check_nextcloud_version!'<%= scope.lookupvar("nextcloud_version_prod_#{cur_cust}") %>'
<% end -%>
check_interval 5
check_period 24x7