Diffent fact syntax
This commit is contained in:
parent
4af4a23d1b
commit
1045898d40
|
@ -186,9 +186,9 @@ define service {
|
||||||
notes_url https://<%= site %>/status.php
|
notes_url https://<%= site %>/status.php
|
||||||
action_url /grafana/dashboard/script/histou.js?host=$HOSTNAME$&service=$SERVICEDISPLAYNAME$&theme=light&annotations=true
|
action_url /grafana/dashboard/script/histou.js?host=$HOSTNAME$&service=$SERVICEDISPLAYNAME$&theme=light&annotations=true
|
||||||
<% if site.match('test') -%>
|
<% if site.match('test') -%>
|
||||||
check_command check_nextcloud_version!'<%= scope.lookupvar("nextcloud_version_test_#{cur_cust}") %>'
|
check_command check_nextcloud_version!'<%= @facts["nextcloud_version_test_#{cur_cust}"] %>'
|
||||||
<% else -%>
|
<% else -%>
|
||||||
check_command check_nextcloud_version!'<%= scope.lookupvar("nextcloud_version_prod_#{cur_cust}") %>'
|
check_command check_nextcloud_version!'<%= @facts["nextcloud_version_prod_#{cur_cust}"] %>'
|
||||||
<% end -%>
|
<% end -%>
|
||||||
check_interval 5
|
check_interval 5
|
||||||
check_period 24x7
|
check_period 24x7
|
||||||
|
|
Loading…
Reference in a new issue