vaimo-messages-handler 2.2.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +28 -0
- data/bin/send-message.rb +2 -0
- data/lib/vaimo-messages-handler/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7b0e308a6941a6b97a178f9da36e49eff52a890b
|
|
4
|
+
data.tar.gz: 07713a779d12bc24ea8d4c3125e6b0727cebe546
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bebbd621a80ed3ce63f6cd9a74b4ced951c545d37ec2b8687430758bd7bfd97891d589dac872ce35205b99dc823758e6b9bdca66ff5038548490fa35be06aaa4
|
|
7
|
+
data.tar.gz: 46af4ca763c1e00000adf69e59f8366f31268e463498a291387045bd05ac67b51654772667e707dd2c3c53fd9a272b73ca2f2bb506f3b87bf537b055cb492a29
|
data/README.md
CHANGED
|
@@ -46,3 +46,31 @@ Set your check to use the handler and define the playsms recipients.
|
|
|
46
46
|
[Installation and Setup](http://sensu-plugins.io/docs/installation_instructions.html)
|
|
47
47
|
|
|
48
48
|
## Notes
|
|
49
|
+
|
|
50
|
+
## Development
|
|
51
|
+
|
|
52
|
+
When using ubuntu for development and testing then be sure to install ruby-dev
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
$ sudo apt-get install ruby-dev
|
|
56
|
+
$ sudo gem install bundle
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
To work on the plugin, clone this repository out, and use
|
|
60
|
+
[Bundler](http://gembundler.com) to get the dependencies:
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
$ bundle
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Once you have the dependencies, verify the unit tests pass with `rake`:
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
$ bundle exec rake
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Build the plugin with
|
|
73
|
+
|
|
74
|
+
```
|
|
75
|
+
rake build
|
|
76
|
+
```
|
data/bin/send-message.rb
CHANGED
|
@@ -80,6 +80,7 @@ def messages_post_args(args, settings)
|
|
|
80
80
|
component: messages_key_value(args, :component, nil),
|
|
81
81
|
output: messages_key_value(args, :output, nil),
|
|
82
82
|
history: messages_key_value(args, :history, nil),
|
|
83
|
+
event: messages_key_value(args, :event, nil),
|
|
83
84
|
}
|
|
84
85
|
end
|
|
85
86
|
|
|
@@ -143,6 +144,7 @@ begin
|
|
|
143
144
|
level: messages_level(event['check']['status']),
|
|
144
145
|
output: event['check']['output'],
|
|
145
146
|
history: event['check']['history'],
|
|
147
|
+
event: event,
|
|
146
148
|
}
|
|
147
149
|
|
|
148
150
|
post_args = messages_post_args(args, messages_settings)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vaimo-messages-handler
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Margus Heinmaa
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-10-
|
|
11
|
+
date: 2018-10-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: sensu-plugin
|