summaryrefslogtreecommitdiff
path: root/lib/oxidized
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2015-04-28 11:56:48 +0300
committerytti <saku@ytti.fi>2015-04-28 11:56:48 +0300
commit0062fb6dd291718714af046ca7be4a6b2c739d74 (patch)
tree0c017267d66255efaf9f2e28c77358908661472f /lib/oxidized
parenteb753e2d8c19bd99ea36d8b0f492aaff5bb996bf (diff)
parentba6b0f9fb3d0276b4dfe795b878c4712233e342b (diff)
Merge pull request #113 from rixxxx/screenos-fixes
Skip Datetime and Uptime from system information
Diffstat (limited to 'lib/oxidized')
-rw-r--r--lib/oxidized/model/screenos.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/oxidized/model/screenos.rb b/lib/oxidized/model/screenos.rb
index c13e64a..7ee9d9f 100644
--- a/lib/oxidized/model/screenos.rb
+++ b/lib/oxidized/model/screenos.rb
@@ -18,6 +18,8 @@ class ScreenOS < Oxidized::Model
end
cmd 'get system' do |cfg|
+ cfg.gsub! /^Date\ .*\n/, ''
+ cfg.gsub! /^Up\ .*\n/, ''
comment cfg
end