diff options
Diffstat (limited to 'lib/oxidized/model/mlnxos.rb')
-rw-r--r-- | lib/oxidized/model/mlnxos.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/oxidized/model/mlnxos.rb b/lib/oxidized/model/mlnxos.rb index 990417d..80625a1 100644 --- a/lib/oxidized/model/mlnxos.rb +++ b/lib/oxidized/model/mlnxos.rb @@ -3,7 +3,7 @@ class MLNXOS < Oxidized::Model comment '## ' # Pager Handling - expect /.+lines\s\d+\-\d+([\s]|\/\d+\s\(END\)\s).+$/ do |data, re| + expect /.+lines\s\d+-\d+([\s]|\/\d+\s\(END\)\s).+$/ do |data, re| send ' ' data.sub re, '' end @@ -12,10 +12,10 @@ class MLNXOS < Oxidized::Model cfg.gsub! /\[\?1h=\r/, '' # Pager Handling cfg.gsub! /\r\[K/, '' # Pager Handling cfg.gsub! /\s/, '' # Linebreak Handling - cfg.gsub! /^CPU\ load\ averages\:\s.+/, '' # Omit constantly changing CPU info - cfg.gsub! /^System\ memory\:\s.+/, '' # Omit constantly changing memory info - cfg.gsub! /^Uptime\:\s.+/, '' # Omit constantly changing uptime info - cfg.gsub! /.+Generated\ at\s\d+.+/, '' # Omit constantly changing generation time info + cfg.gsub! /^CPU load averages:\s.+/, '' # Omit constantly changing CPU info + cfg.gsub! /^System memory:\s.+/, '' # Omit constantly changing memory info + cfg.gsub! /^Uptime:\s.+/, '' # Omit constantly changing uptime info + cfg.gsub! /.+Generated at\s\d+.+/, '' # Omit constantly changing generation time info cfg = cfg.lines.to_a[2..-3].join end |