From e9c1b764cc2f7db363cd9707038e3b0e7f5bae5d Mon Sep 17 00:00:00 2001 From: dhooper6430 Date: Mon, 19 Aug 2024 12:05:14 +0800 Subject: [PATCH 1/3] Update edgecos.rb Fix multiple temperature sensors reporting and multiple fan units reporting fan speeds that can be configured to be dynamic --- lib/oxidized/model/edgecos.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/oxidized/model/edgecos.rb b/lib/oxidized/model/edgecos.rb index 43eb6cd8f..d0b6ff01b 100644 --- a/lib/oxidized/model/edgecos.rb +++ b/lib/oxidized/model/edgecos.rb @@ -32,6 +32,8 @@ class EdgeCOS < Oxidized::Model cmd 'show system' do |cfg| cfg.gsub! /^.*\sUp Time\s*:.*\n/i, '' cfg.gsub! /^(.*\sTemperature \d*\s*:\s*).*/i, '\\1' + cfg.gsub! /(\sTemperature \d*:)\s*\d+ degrees/, '\\1