diff options
author | Mike Bryant <m@ocado.com> | 2016-01-26 18:15:21 +0000 |
---|---|---|
committer | Mike Bryant <m@ocado.com> | 2016-01-26 18:15:21 +0000 |
commit | afcd899da2a077736ee9b92ce25839924626ce87 (patch) | |
tree | 2bd69b7223c16afab33cdf9d443606d5694f49b7 | |
parent | c39e8ebb2e19d718d039dc0c659d76b4469a750f (diff) |
Strip CPU Fan Speed
On a 6000 series `show inventory` contains a line like `M3mk1 CPU Fan Speed 6490 RPMs`
that should be stripped
-rw-r--r-- | lib/oxidized/model/aosw.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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" |