summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2016-05-30 21:14:23 +0300
committerytti <saku@ytti.fi>2016-05-30 21:14:23 +0300
commit779f20dd18a361b5bde51f3f11c6d048efe100a0 (patch)
tree0a5c3976d282da3e96a7c7cb757584f9559b0fc2
parent415c687cca3d38ac2a9839fb2184168ad24e8ed4 (diff)
parentfb502a57b635d98fcafae14a36b9a6be5a5e51f2 (diff)
Merge pull request #451 from Alexandre-io/fix/procurve
Avoid commit if cpu, memory or received pkts change and handle cluste…
-rw-r--r--lib/oxidized/model/procurve.rb3
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