From 82a99e7a06a2f71ef9e08d5000345d54f4691593 Mon Sep 17 00:00:00 2001 From: Mike Bryant Date: Mon, 1 Feb 2016 10:58:50 +0000 Subject: Add another fan speed to the list of things to ignore for ironware (HI) --- lib/oxidized/model/ironware.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/oxidized/model/ironware.rb b/lib/oxidized/model/ironware.rb index d4e5e87..f79b977 100644 --- a/lib/oxidized/model/ironware.rb +++ b/lib/oxidized/model/ironware.rb @@ -31,7 +31,7 @@ class IronWare < Oxidized::Model cmd 'show chassis' do |cfg| cfg.encode!("UTF-8", :invalid => :replace) #sometimes ironware returns broken encoding cfg.gsub! /(^((.*)Current temp(.*))$)/, '' #remove unwanted lines current temperature - cfg.gsub! /Speed = [A-Z-]{3,6} \(\d{2}\%\)/, '' #remove unwanted lines Speed Fans + cfg.gsub! /Speed = [A-Z-]{2,6} \(\d{2}\%\)/, '' #remove unwanted lines Speed Fans cfg.gsub! /current speed is [A-Z]{3} \(\d{2}\%\)/, '' cfg.gsub! /\d{2}\.\d deg-C/, 'XX.X deg-C' if cfg.include? "TEMPERATURE" -- cgit v1.2.1