elesai 0.6.6 → 0.6.9

Sign up to get free protection for your applications and to get access to all the features.
data/lib/elesai/cli.rb CHANGED
@@ -181,7 +181,7 @@ module Elesai
181
181
  when :nagios
182
182
  case @action_options[:mode]
183
183
  when :active
184
- puts "#{plugin_status}: #{plugin_output}"
184
+ puts "#{plugin_status.to_s.upcase}: #{plugin_output}"
185
185
  exit SendNsca::STATUS[plugin_status]
186
186
  when :passive
187
187
  sn = SendNsca.new @action_options
@@ -12,7 +12,7 @@ module Elesai
12
12
  VIRTUALDRIVE_RE = /^Virtual\s+Drive:\s+\d+\s+\((?<key>Target\s+Id):\s+(?<value>\d+)\)/
13
13
  SPAN_RE = /^Span:\s+(?<value>\d+)/
14
14
  PHYSICALDRIVE_RE = /^(?<key>Enclosure\s+Device\s+ID):\s+(?<value>\d+)/
15
- ATTRIBUTE_RE = /^(?<key>[A-Za-z0-9()\s#']+):(?<value>.*)/
15
+ ATTRIBUTE_RE = /^(?<key>[A-Za-z0-9()\s#'-.]+):(?<value>.*)/
16
16
  EXIT_RE = /^Exit Code: /
17
17
 
18
18
  ### Context
@@ -1,3 +1,3 @@
1
1
  module Elesai
2
- VERSION = "0.6.6"
2
+ VERSION = "0.6.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elesai
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.6
4
+ version: 0.6.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-11 00:00:00.000000000 Z
12
+ date: 2012-08-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: workflow