From 54868e8518ac7f71ecd410713369af3be009cd0f Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Mon, 24 Apr 2023 15:59:47 +0200 Subject: [PATCH] Yet another try --- 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 f5aa3a6..c7bfac7 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') -%> -<% version_variable = 'facts::nextcloud_version_test_' << site.sub('/\.drive.*/','') -%> +<% version_variable = 'nextcloud_version_test_' << site.sub('/\.drive.*/','') -%> <% else -%> -<% version_variable = 'facts::nextcloud_version_prod_' << site.sub('/\.drive.*/','') -%> +<% version_variable = 'nextcloud_version_prod_' << site.sub('/\.drive.*/','') -%> <% end -%> check_command check_nextcloud_version!'<%= scope.lookupvar(version_variable) %>' check_interval 5