check_resque_paranoid 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,7 +7,7 @@ require 'nagios_resque/check'
7
7
  require 'nagios_resque/plugin'
8
8
 
9
9
  module NagiosResque
10
- NAGIOS_RESQUE_TIMESTAMP_KEY = 'resque:job:monitor:nagios:time'
10
+ NAGIOS_RESQUE_TIMESTAMP_KEY = 'job:monitor:nagios:time'
11
11
  end
12
12
 
13
13
  NagiosPlugin::DefaultOptions::VERSION = NagiosResque::VERSION
@@ -3,8 +3,8 @@ module NagiosResque
3
3
  def initialize(options)
4
4
  @host = options[:host] || "localhost"
5
5
  @port = options[:port] || 6379
6
- @namespace = options[:namespace] || "resque"
7
6
  @job = options[:job] || 'NagiosResque::Job'
7
+ @namespace = options[:namespace]
8
8
  @warning = options[:warn]
9
9
  @critical = options[:crit]
10
10
 
@@ -51,7 +51,7 @@ module NagiosResque
51
51
 
52
52
  class ResqueRedis
53
53
  def initialize(options)
54
- @namespace = options.delete(:namespace)
54
+ @namespace = ['resque', options.delete(:namespace)].compact.join(':')
55
55
  @redis = Redis.new options.merge(:thread_safe => true)
56
56
  end
57
57
 
@@ -1,3 +1,3 @@
1
1
  module NagiosResque
2
- VERSION = '1.0.3'
2
+ VERSION = '1.0.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: check_resque_paranoid
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
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: 2013-06-24 00:00:00.000000000 Z
12
+ date: 2013-06-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: redis