From 1045898d400828c63877b5afc83318c022056a46 Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Mon, 24 Apr 2023 15:13:10 +0200 Subject: [PATCH] Diffent fact syntax --- templates/monitor/sunetdrive_sites.cfg.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/monitor/sunetdrive_sites.cfg.erb b/templates/monitor/sunetdrive_sites.cfg.erb index fa22367..f2edb66 100644 --- a/templates/monitor/sunetdrive_sites.cfg.erb +++ b/templates/monitor/sunetdrive_sites.cfg.erb @@ -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!'<%= scope.lookupvar("nextcloud_version_test_#{cur_cust}") %>' + check_command check_nextcloud_version!'<%= @facts["nextcloud_version_test_#{cur_cust}"] %>' <% 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 -%> check_interval 5 check_period 24x7