summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/ironware.rb
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2016-01-28 14:58:16 +0200
committerytti <saku@ytti.fi>2016-01-28 14:58:16 +0200
commitd779ddff011c9957a0e091084b8e0ba2018ddc67 (patch)
tree72c8615df952f30da8b1d4bfa9e568bcb1326b25 /lib/oxidized/model/ironware.rb
parenta27145b1ab851a6e7da6cf35cbf8288096edab6d (diff)
parent9f9c4fdad7a336b35c1dbb89165ebca79e3dd9a0 (diff)
Merge pull request #293 from ocadotechnology/fix-ironware-fan
Account for the MED-HI fan speed in ironware
Diffstat (limited to 'lib/oxidized/model/ironware.rb')
-rw-r--r--lib/oxidized/model/ironware.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/model/ironware.rb b/lib/oxidized/model/ironware.rb
index 87a51a6..d4e5e87 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} \(\d{2}\%\)/, '' #remove unwanted lines Speed Fans
+ cfg.gsub! /Speed = [A-Z-]{3,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"