From afcd899da2a077736ee9b92ce25839924626ce87 Mon Sep 17 00:00:00 2001 From: Mike Bryant Date: Tue, 26 Jan 2016 18:15:21 +0000 Subject: Strip CPU Fan Speed On a 6000 series `show inventory` contains a line like `M3mk1 CPU Fan Speed 6490 RPMs` that should be stripped --- lib/oxidized/model/aosw.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/oxidized/model/aosw.rb b/lib/oxidized/model/aosw.rb index 43e1cff..81d3243 100644 --- a/lib/oxidized/model/aosw.rb +++ b/lib/oxidized/model/aosw.rb @@ -56,7 +56,7 @@ class AOSW < Oxidized::Model next if line.match /Output \d Config/i next if line.match /(Tachometers|Temperatures|Voltages)/ next if line.match /((Card|CPU) Temperature|Chassis Fan|VMON1[0-9])/ - next if line.match /[0-9]+ (RPM|mV|C)$/ + next if line.match /[0-9]+ (RPM|RPMs|mV|C)$/ out << line.strip end out = comment out.join "\n" -- cgit v1.2.1