sensu-plugins-opsgenie 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/CHANGELOG.md +6 -1
- data/bin/check-opsgenie-heartbeat.rb +4 -4
- data/bin/handler-opsgenie.rb +1 -1
- data/lib/sensu-plugins-opsgenie/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ODRmYjU4NzU4OWY3OGVhMGViNjY5ZTVkNmJhNjM5MzE1NzFkMzhhZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
N2RlODgxYzA1MGU4NDBjYjY2ODBjNWUzNDYxNDRjOTc1MzJkMDY3ZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Y2RlODY2YWMxODk4MWU5Yzg2OTk5MjEwZTI1NWFlMDE3ZDczZGRjMDVhNThl
|
10
|
+
ZTgxMjNkYjdiNjYyMGIwMWNhNDkwYjYxYjg0ZjdmNzgwNzFmNTNiM2E4ZjI3
|
11
|
+
N2RlYjI3NjcxNGQxZmRhYTIxMzY3ZGIwYzBkZGZlNWViNzg4MTE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODE0MTI1NGJmN2M1NGQzN2M5OGUyMmExODI3YWEwMGVhM2UyY2MwMTgyNGFi
|
14
|
+
MjI3ODk5OTNjMjU1YTgwNWM2YTJhMjkzMzBhNDc5NWM0YWMyZmY5YTVlZGEx
|
15
|
+
YTkxMDU4NjhlYTNmM2E1NjExMTRjZjkwOWIyMGZiNmVhM2QxMWM=
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,10 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
5
5
|
|
6
6
|
## [Unreleased]
|
7
7
|
|
8
|
+
## [2.0.1] - 2016-10-17
|
9
|
+
### Fixed
|
10
|
+
- Fix deprecated `timeout` warnings
|
11
|
+
|
8
12
|
## [2.0.0] - 2016-06-29
|
9
13
|
### Added
|
10
14
|
- Added description support for OpsGenie alerts (@mnellemann)
|
@@ -47,7 +51,8 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
47
51
|
- initial release
|
48
52
|
- Fixed json configuration load
|
49
53
|
|
50
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-opsgenie/compare/2.0.
|
54
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-opsgenie/compare/2.0.1...HEAD
|
55
|
+
[2.0.1]: https://github.com/sensu-plugins/sensu-plugins-opsgenie/compare/2.0.0...2.0.1
|
51
56
|
[2.0.0]: https://github.com/sensu-plugins/sensu-plugins-opsgenie/compare/1.0.0...2.0.0
|
52
57
|
[1.0.0]: https://github.com/sensu-plugins/sensu-plugins-opsgenie/compare/0.0.3...1.0.0
|
53
58
|
[0.0.3]: https://github.com/sensu-plugins/sensu-plugins-opsgenie/compare/0.0.2...0.0.3
|
@@ -1,9 +1,9 @@
|
|
1
1
|
#! /usr/bin/env ruby
|
2
2
|
#
|
3
|
-
# opsgenie-
|
3
|
+
# check-opsgenie-heartbeat
|
4
4
|
#
|
5
5
|
# DESCRIPTION:
|
6
|
-
# Sends heartbeat signal to Opsgenie. If Opsgenie does not receive one
|
6
|
+
# Sends heartbeat signal to Opsgenie. If Opsgenie does not receive one at least every 10 minutes
|
7
7
|
# it will alert. Fails with a warning if heartbeat is not configured in the Opsgenie admin
|
8
8
|
# interface.
|
9
9
|
#
|
@@ -20,7 +20,7 @@
|
|
20
20
|
# gem: net-https
|
21
21
|
#
|
22
22
|
# USAGE:
|
23
|
-
#
|
23
|
+
# check-opsgenie-heartbeat.rb -k aaaaaa-bbbb-cccc-dddd-eeeeeeeee -n 'My Awesome Heartbeat'
|
24
24
|
#
|
25
25
|
# NOTES:
|
26
26
|
# Recommended plugin interval: 200 and occurences: 3
|
@@ -57,7 +57,7 @@ class OpsgenieHeartbeat < Sensu::Plugin::Check::CLI
|
|
57
57
|
default: 10
|
58
58
|
|
59
59
|
def run
|
60
|
-
timeout(config[:timeout]) do
|
60
|
+
Timeout.timeout(config[:timeout]) do
|
61
61
|
response = opsgenie_heartbeat
|
62
62
|
puts response
|
63
63
|
case response['code']
|
data/bin/handler-opsgenie.rb
CHANGED
@@ -25,7 +25,7 @@ class Opsgenie < Sensu::Handler
|
|
25
25
|
message = @event['notification'] || [@event['client']['name'], @event['check']['name'], @event['check']['output'].chomp].join(' : ')
|
26
26
|
|
27
27
|
begin
|
28
|
-
timeout(30) do
|
28
|
+
Timeout.timeout(30) do
|
29
29
|
response = case @event['action']
|
30
30
|
when 'create'
|
31
31
|
create_alert(message)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-opsgenie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sensu-Plugins and contributors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sensu-plugin
|