notifu 1.5.1 → 1.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/notifu/sensu/handler.rb +1 -1
- data/lib/notifu.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2aa5507b0ffeed3526ade6f22cb7200953cdeb76
|
4
|
+
data.tar.gz: c443dab0b7ef7903e8c15d1e1666a02a3a3ec197
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6867a6a1334b0309b86000c8a13ca374102fa3f206ffadb16a3dd92fee34f04f749599d61685ec236ad38b3a8e6aeac7cad7957b4b3cdee124ec35baa52d1fa4
|
7
|
+
data.tar.gz: 636abd755c1d221051dea74f2e9821be9d251d8aa1783b6d841673025de6d6c64b1ef901224ffaf80b78d2e9a29ca3d966cb0a3063ca6cb689a705e99d90cef6
|
data/lib/notifu/sensu/handler.rb
CHANGED
@@ -51,7 +51,7 @@ module Sensu::Extension
|
|
51
51
|
end
|
52
52
|
|
53
53
|
def run(event_data)
|
54
|
-
event = JSON.
|
54
|
+
event = JSON.parse(event_data, { :symbolize_names => true })
|
55
55
|
notifu_id = Digest::SHA256.hexdigest("#{event[:client][:name]}:#{event[:client][:address]}:#{event[:check][:name]}").to_s[-10,10]
|
56
56
|
|
57
57
|
if event[:check][:name] == "keepalive"
|
data/lib/notifu.rb
CHANGED
@@ -6,7 +6,11 @@ require "notifu/mixins"
|
|
6
6
|
require "notifu/util"
|
7
7
|
require "notifu/config"
|
8
8
|
require "notifu/logger"
|
9
|
-
require "notifu/model"
|
9
|
+
require "notifu/model/contact"
|
10
|
+
require "notifu/model/event"
|
11
|
+
require "notifu/model/group"
|
12
|
+
require "notifu/model/issue"
|
13
|
+
require "notifu/model/sla"
|
10
14
|
require "notifu/cli/service"
|
11
15
|
require "notifu/cli/object"
|
12
16
|
require "notifu/cli"
|