summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/voltaire.rb
diff options
context:
space:
mode:
authorKodApa85 <parsons151185@gmail.com>2018-07-22 12:06:01 +0100
committerWild Kat <wk@users.noreply.github.com>2018-07-22 13:06:01 +0200
commit868cb6741ad902a1cf4ecff67fc38100f948bcee (patch)
tree9833992b9608e0fdcdbd1f55b03ef12c0e9a3d4b /lib/oxidized/model/voltaire.rb
parent06705411e28cf747644beb78504c5d2a27713d1c (diff)
Removed unnecessary/illegal/unsupported escape sequence (#1352)
Diffstat (limited to 'lib/oxidized/model/voltaire.rb')
-rw-r--r--lib/oxidized/model/voltaire.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/oxidized/model/voltaire.rb b/lib/oxidized/model/voltaire.rb
index 62a62e5..4457a1f 100644
--- a/lib/oxidized/model/voltaire.rb
+++ b/lib/oxidized/model/voltaire.rb
@@ -3,7 +3,7 @@ class VOLTAIRE < 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 VOLTAIRE < 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