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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTc2NDQ4NmI1N2U3MDQ5ZmRhNzVmNWZiMDJkZDBkY2MwNzYzMjQzNQ==
4
+ ODRmYjU4NzU4OWY3OGVhMGViNjY5ZTVkNmJhNjM5MzE1NzFkMzhhZQ==
5
5
  data.tar.gz: !binary |-
6
- OTc5MWFiMTU4NzRiNTdjZTQ4ZmUyNjQ0YjNhYTcwN2VjMjMzZmJjZA==
6
+ N2RlODgxYzA1MGU4NDBjYjY2ODBjNWUzNDYxNDRjOTc1MzJkMDY3ZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MjEzNTE3YjRkYmNmODVmZGYwMmE5ZGY4ZDNhNTY4Y2UyYmI5MDA0ZTc2MTMx
10
- ZWY2Yjg5MWFmMWQ2ZmRiMWY2ZDBlYmUzNmRhYzc3OGI5ODlkM2ZiOWVhYWRh
11
- OWE4MWQ5NmQyZmIzMTJiYzNlN2UzNjAxNDI1ZTI4NTIyOTNhMzk=
9
+ Y2RlODY2YWMxODk4MWU5Yzg2OTk5MjEwZTI1NWFlMDE3ZDczZGRjMDVhNThl
10
+ ZTgxMjNkYjdiNjYyMGIwMWNhNDkwYjYxYjg0ZjdmNzgwNzFmNTNiM2E4ZjI3
11
+ N2RlYjI3NjcxNGQxZmRhYTIxMzY3ZGIwYzBkZGZlNWViNzg4MTE=
12
12
  data.tar.gz: !binary |-
13
- ZGZjZGJlZGNjZTIzMzM1MTUyZDg1YjY3YWZlMjlkZGMyMTk4OGZkYTA1MzU0
14
- NjdjMjMxODUyZWNkOWFlNDRkYjEzYmY3ZGYwMmEwZTAwZDg0NDg2OTBkNTRk
15
- YjRjZTJjOGZjMTk5YzdkMzdjZWMzMzVhYzFjZDcyY2E3ODU1NjY=
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.0...HEAD
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-heatbeat
3
+ # check-opsgenie-heartbeat
4
4
  #
5
5
  # DESCRIPTION:
6
- # Sends heartbeat signal to Opsgenie. If Opsgenie does not receive one atleast every 10 minutes
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
- # #YELLOW
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']
@@ -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)
@@ -6,7 +6,7 @@ module SensuPluginsOpsgenie
6
6
  module Version
7
7
  MAJOR = 2
8
8
  MINOR = 0
9
- PATCH = 0
9
+ PATCH = 1
10
10
 
11
11
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
12
12
 
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.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-06-30 00:00:00.000000000 Z
11
+ date: 2016-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin