diff options
Diffstat (limited to 'lib/oxidized/model/voss.rb')
-rw-r--r-- | lib/oxidized/model/voss.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/oxidized/model/voss.rb b/lib/oxidized/model/voss.rb index 32958ce..7950386 100644 --- a/lib/oxidized/model/voss.rb +++ b/lib/oxidized/model/voss.rb @@ -14,10 +14,10 @@ class Voss < Oxidized::Model # Get sys-info and remove information that changes such has temperature and power cmd 'show sys-info' do |cfg| cfg.gsub! /(^((.*)SysUpTime(.*))$)/, 'removed SysUpTime' - cfg.gsub! /^((.*)Temperature Info \:(.*\r?\n){4})/, 'removed Temperature Info and 3 more lines' - cfg.gsub! /(^((.*)AmbientTemperature(.*)\:(.*))$)/, 'removed AmbientTemperature' - cfg.gsub! /(^((.*)Temperature(.*)\:(.*))$)/, 'removed Temperature' - cfg.gsub! /(^((.*)Total Power Usage(.*)\:(.*))$)/, 'removed Total Power Usage' + cfg.gsub! /^((.*)Temperature Info :(.*\r?\n){4})/, 'removed Temperature Info and 3 more lines' + cfg.gsub! /(^((.*)AmbientTemperature(.*):(.*))$)/, 'removed AmbientTemperature' + cfg.gsub! /(^((.*)Temperature(.*):(.*))$)/, 'removed Temperature' + cfg.gsub! /(^((.*)Total Power Usage(.*):(.*))$)/, 'removed Total Power Usage' comment "#{cfg}\n" end |