From fba8a2c3fb5349715617c77576e67ac424af3ae3 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 23 Aug 2025 16:04:18 +0100 Subject: [PATCH] Exclude OOB addresses from smokeping --- cookbooks/prometheus/recipes/smokeping.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cookbooks/prometheus/recipes/smokeping.rb b/cookbooks/prometheus/recipes/smokeping.rb index f272aee64..b23558460 100644 --- a/cookbooks/prometheus/recipes/smokeping.rb +++ b/cookbooks/prometheus/recipes/smokeping.rb @@ -32,7 +32,9 @@ hosts = {} hosts[protocol] = if File.exist?(json_file) JSON.parse(IO.read(json_file)).filter_map do |name, address| - name unless name.split(".").first == node[:hostname] || address.start_with?("10.") + name unless name.split(".").first == node[:hostname] || + name.end_with?(".oob") || + address.start_with?("10.") end else [] -- 2.39.5