sensu 0.9.12.beta.1 → 0.9.12.beta.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sensu/base.rb +1 -1
- data/lib/sensu/constants.rb +1 -1
- data/lib/sensu/server.rb +4 -10
- data/sensu.gemspec +1 -1
- metadata +6 -6
data/lib/sensu/base.rb
CHANGED
data/lib/sensu/constants.rb
CHANGED
data/lib/sensu/server.rb
CHANGED
@@ -465,7 +465,7 @@ module Sensu
|
|
465
465
|
}
|
466
466
|
if check[:status] != 0 || is_flapping
|
467
467
|
if previous_occurrence && check[:status] == previous_occurrence[:status]
|
468
|
-
event[:occurrences] = previous_occurrence[:occurrences]
|
468
|
+
event[:occurrences] = previous_occurrence[:occurrences] + 1
|
469
469
|
end
|
470
470
|
@redis.hset('events:' + client[:name], check[:name], Oj.dump(
|
471
471
|
:output => check[:output],
|
@@ -594,20 +594,14 @@ module Sensu
|
|
594
594
|
when time_since_last_keepalive >= 180
|
595
595
|
check[:output] = 'No keep-alive sent from client in over 180 seconds'
|
596
596
|
check[:status] = 2
|
597
|
-
publish_result(client, check)
|
598
597
|
when time_since_last_keepalive >= 120
|
599
598
|
check[:output] = 'No keep-alive sent from client in over 120 seconds'
|
600
599
|
check[:status] = 1
|
601
|
-
publish_result(client, check)
|
602
600
|
else
|
603
|
-
|
604
|
-
|
605
|
-
check[:output] = 'Keep-alive sent from client'
|
606
|
-
check[:status] = 0
|
607
|
-
publish_result(client, check)
|
608
|
-
end
|
609
|
-
end
|
601
|
+
check[:output] = 'Keep-alive sent from client less than 120 seconds ago'
|
602
|
+
check[:status] = 0
|
610
603
|
end
|
604
|
+
publish_result(client, check)
|
611
605
|
end
|
612
606
|
end
|
613
607
|
end
|
data/sensu.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.license = 'MIT'
|
14
14
|
s.has_rdoc = false
|
15
15
|
|
16
|
-
s.add_dependency('oj', '2.0.
|
16
|
+
s.add_dependency('oj', '2.0.9')
|
17
17
|
s.add_dependency('eventmachine', '1.0.1')
|
18
18
|
s.add_dependency('amqp', '0.9.9')
|
19
19
|
s.add_dependency('em-redis-unified', '0.4.1')
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: -
|
4
|
+
hash: -3791266186
|
5
5
|
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
9
|
- 12
|
10
10
|
- beta
|
11
|
-
-
|
12
|
-
version: 0.9.12.beta.
|
11
|
+
- 2
|
12
|
+
version: 0.9.12.beta.2
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- Sean Porter
|
@@ -29,12 +29,12 @@ dependencies:
|
|
29
29
|
requirements:
|
30
30
|
- - "="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
hash:
|
32
|
+
hash: 29
|
33
33
|
segments:
|
34
34
|
- 2
|
35
35
|
- 0
|
36
|
-
-
|
37
|
-
version: 2.0.
|
36
|
+
- 9
|
37
|
+
version: 2.0.9
|
38
38
|
type: :runtime
|
39
39
|
version_requirements: *id001
|
40
40
|
- !ruby/object:Gem::Dependency
|