summaryrefslogtreecommitdiff
path: root/lib/oxidized
diff options
context:
space:
mode:
authorRobert Drake <rfdrake@users.noreply.github.com>2017-06-14 17:48:29 -0400
committerRobert Drake <rfdrake@users.noreply.github.com>2017-06-14 17:48:29 -0400
commit0bc9a9247d36ee6131fc5456b5e30f5ae2412ceb (patch)
tree6ba377aea3db91c3e8f918480dae469a39e7397f /lib/oxidized
parentdc425ce5bc3143cf4b8322602d7b7521aca37134 (diff)
remove Uptime from dlink "show switch"
fixes #878
Diffstat (limited to 'lib/oxidized')
-rw-r--r--lib/oxidized/model/dlink.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/oxidized/model/dlink.rb b/lib/oxidized/model/dlink.rb
index 5756bad..0d08793 100644
--- a/lib/oxidized/model/dlink.rb
+++ b/lib/oxidized/model/dlink.rb
@@ -15,6 +15,7 @@ class Dlink < Oxidized::Model
end
cmd 'show switch' do |cfg|
+ cfg.gsub! /^System\ Uptime\s.+/, '' # Omit constantly changing uptime info
comment cfg
end