diff options
author | Alexandre-io <alexandre@gotoserv.com> | 2016-05-30 19:52:39 +0200 |
---|---|---|
committer | Alexandre-io <alexandre@gotoserv.com> | 2016-05-30 19:52:39 +0200 |
commit | fb502a57b635d98fcafae14a36b9a6be5a5e51f2 (patch) | |
tree | 0a5c3976d282da3e96a7c7cb757584f9559b0fc2 /lib | |
parent | 415c687cca3d38ac2a9839fb2184168ad24e8ed4 (diff) |
Avoid commit if cpu, memory or received pkts change and handle cluster informations.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/oxidized/model/procurve.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/oxidized/model/procurve.rb b/lib/oxidized/model/procurve.rb index 392f510..0dc6f8f 100644 --- a/lib/oxidized/model/procurve.rb +++ b/lib/oxidized/model/procurve.rb @@ -40,7 +40,8 @@ class Procurve < Oxidized::Model # not supported on all models cmd 'show system information' do |cfg| - cfg = cfg.split("\n")[0..-8].join("\n") + cfg = cfg.each_line.select { |line| not line.match /(.*CPU.*)|(.*Up Time.*)|(.*Total.*)|(.*Free.*)|(.*Lowest.*)|(.*Missed.*)/ } + cfg = cfg.join comment cfg end |