sensu-plugins-azurerm 0.0.5 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6b82240f818c79805f33a399f39760129f92c93f
4
- data.tar.gz: 639fdd79a0656839f48a7a550736cb1e6a7490f4
3
+ metadata.gz: bb8276a56918fb5b2466b9238bb2947e3ca3a638
4
+ data.tar.gz: 643a88f92465447e1905bc69265df8df081ff668
5
5
  SHA512:
6
- metadata.gz: 0c3ebe480735f0af56e5ef153d725f065e0ffc6173a8ad7f87857e74a1db06191be1a5e311bfa17a4df8ca065a262fb8a108460617b6aaff66bbe3a78fea0bec
7
- data.tar.gz: 8a1a75a14423cb85d5722a81f27867be648b2c3f0897b0a510d5c47b0f0a0128700fb53fd736a10d0447e6aa569942c7d44d7722b2f34336fea4836431ce4e8b
6
+ metadata.gz: fa42fc079f27e2527a0810d5a59569a2163b9a17fb5e858b8dfc614726f526223c31ec4f265fbe4124ca562897c9c9f8eccd6c987faa026201c6966b44c73754
7
+ data.tar.gz: a9bce857a4ea79b7066a233187ad07aafb7ed1dc2a09a2dd69c92df439976752958b4569d30d6ea5949aefcbbf2acb5ee0a31ded902c2b85b08405370b2ccefa
data/CHANGELOG.md CHANGED
@@ -1,15 +1,40 @@
1
- #Change Log
1
+ # Change Log
2
2
  This project adheres to [Semantic Versioning](http://semver.org/).
3
3
 
4
- This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
4
+ This CHANGELOG follows the format located [here](https://github.com/sensu-plugins/community/blob/master/HOW_WE_CHANGELOG.md)
5
+
6
+ ## [Unreleased]
7
+
8
+ ### Security
9
+ - updated rubocop dependency to `~> 0.51.0` per: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-8418. (@majormoses)
10
+
11
+ ### Breaking Changes
12
+ - bumped dependency of `sensu-plugin` to 2.x you can read about it [here](https://github.com/sensu-plugins/sensu-plugin/blob/master/CHANGELOG.md#v200---2017-03-29) (@majormoses)
13
+
14
+
15
+ ## [1.0.0] - 2017-12-10
16
+ ### Changed
17
+ - changelog gudelines location (@majormoses)
18
+ - standard `.gitignore` (@majormoses)
19
+ - standard `Rakefile` (@majormoses)
20
+ - rubygems api key for sensu-plugins user (@majormoses)
21
+ - `.travis.yml` docker, notitications, test all versions on tag (@majormoses)
22
+
5
23
 
6
- ## 0.0.5 - 2016-12-05
24
+ ### Added
25
+ - version diff links (@majormoses)
26
+ - standard PR/issue templates (@majormoses)
27
+ - standard `.kitchen.yml` (@majormoses)
28
+ - ruby 2.4.1 testing (@majormoses)
29
+ - standard `test-kitchen`, `kitchen-docker`, `serverspec` testing skel (@majormoses)
30
+
31
+ ## [0.0.5] - 2016-12-05
7
32
  ### Added
8
33
  - Checks for
9
34
  - ServiceBus subscription
10
35
  - ServiceBus topic size
11
36
 
12
- ## 0.0.4 - 2016-12-04
37
+ ## [0.0.4] - 2016-12-04
13
38
  ### Added
14
39
  - Checks for the following Quota's:
15
40
  - D Family Cores
@@ -30,7 +55,7 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
30
55
  ### Fixed
31
56
  - Documentation for Virtual Network Gateways
32
57
 
33
- ## 0.0.3 - 2016-11-24
58
+ ## [0.0.3] - 2016-11-24
34
59
  ### Added
35
60
  - Virtual Network Gateways:
36
61
  - Added functionality to check Failover connections
@@ -38,12 +63,20 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
38
63
  - Service Bus:
39
64
  - Added a Metric to expose the the Message Count for a Service Bus Topic
40
65
 
41
- ## 0.0.2 - 2016-11-23
66
+ ## [0.0.2] - 2016-11-23
42
67
  ### Added
43
68
  - Virtual Network Gateways:
44
69
  - Check to ensure a given Virtual Network Gateway is Connected
45
70
  - Metrics exposed for a given Virtual Network Gateway
46
71
 
47
- ## 0.0.1 - 2016-11-18
72
+ ## [0.0.1] - 2016-11-18
48
73
  ### Added
49
74
  - initial release
75
+
76
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-azurerm/compare/1.0.0..HEAD
77
+ [1.0.0]: https://github.com/sensu-plugins/sensu-plugins-azurerm/compare/0.0.5...1.0.0
78
+ [0.0.5]: https://github.com/sensu-plugins/sensu-plugins-azurerm/compare/0.0.4...0.0.5
79
+ [0.0.4]: https://github.com/sensu-plugins/sensu-plugins-azurerm/compare/0.0.3...0.0.4
80
+ [0.0.3]: https://github.com/sensu-plugins/sensu-plugins-azurerm/compare/0.0.2...0.0.3
81
+ [0.0.2]: https://github.com/sensu-plugins/sensu-plugins-azurerm/compare/0.0.1...0.0.2
82
+ [0.0.1]: https://github.com/sensu-plugins/sensu-plugins-azurerm/compare/f70cfb714fc13046362173033b063f0ccb11563a...0.0.1
@@ -113,8 +113,7 @@ class CheckAzureRMCoreUsage < Sensu::Plugin::Check::CLI
113
113
  else
114
114
  ok message
115
115
  end
116
-
117
- rescue => e
116
+ rescue StandardError => e
118
117
  puts "Error: exception: #{e}"
119
118
  critical
120
119
  end
@@ -113,8 +113,7 @@ class CheckAzureRMCoresDUsage < Sensu::Plugin::Check::CLI
113
113
  else
114
114
  ok message
115
115
  end
116
-
117
- rescue => e
116
+ rescue StandardError => e
118
117
  puts "Error: exception: #{e}"
119
118
  critical
120
119
  end
@@ -113,8 +113,7 @@ class CheckAzureRMCoresDSUsage < Sensu::Plugin::Check::CLI
113
113
  else
114
114
  ok message
115
115
  end
116
-
117
- rescue => e
116
+ rescue StandardError => e
118
117
  puts "Error: exception: #{e}"
119
118
  critical
120
119
  end
@@ -113,8 +113,7 @@ class CheckAzureRMCoresDSv2Usage < Sensu::Plugin::Check::CLI
113
113
  else
114
114
  ok message
115
115
  end
116
-
117
- rescue => e
116
+ rescue StandardError => e
118
117
  puts "Error: exception: #{e}"
119
118
  critical
120
119
  end
@@ -113,8 +113,7 @@ class CheckAzureRMCoresDv2Usage < Sensu::Plugin::Check::CLI
113
113
  else
114
114
  ok message
115
115
  end
116
-
117
- rescue => e
116
+ rescue StandardError => e
118
117
  puts "Error: exception: #{e}"
119
118
  critical
120
119
  end
@@ -113,8 +113,7 @@ class CheckAzureRMCoresFUsage < Sensu::Plugin::Check::CLI
113
113
  else
114
114
  ok message
115
115
  end
116
-
117
- rescue => e
116
+ rescue StandardError => e
118
117
  puts "Error: exception: #{e}"
119
118
  critical
120
119
  end
@@ -113,8 +113,7 @@ class CheckAzureRMCoresFSUsage < Sensu::Plugin::Check::CLI
113
113
  else
114
114
  ok message
115
115
  end
116
-
117
- rescue => e
116
+ rescue StandardError => e
118
117
  puts "Error: exception: #{e}"
119
118
  critical
120
119
  end
@@ -113,8 +113,7 @@ class CheckAzureRMLoadBalancersUsage < Sensu::Plugin::Check::CLI
113
113
  else
114
114
  ok message
115
115
  end
116
-
117
- rescue => e
116
+ rescue StandardError => e
118
117
  puts "Error: exception: #{e}"
119
118
  critical
120
119
  end
@@ -113,8 +113,7 @@ class CheckAzureRMNetworkInterfacesUsage < Sensu::Plugin::Check::CLI
113
113
  else
114
114
  ok message
115
115
  end
116
-
117
- rescue => e
116
+ rescue StandardError => e
118
117
  puts "Error: exception: #{e}"
119
118
  critical
120
119
  end
@@ -113,8 +113,7 @@ class CheckAzureRMNetworkSecurityGroupsUsage < Sensu::Plugin::Check::CLI
113
113
  else
114
114
  ok message
115
115
  end
116
-
117
- rescue => e
116
+ rescue StandardError => e
118
117
  puts "Error: exception: #{e}"
119
118
  critical
120
119
  end
@@ -113,8 +113,7 @@ class CheckAzureRMPublicIPAddressesUsage < Sensu::Plugin::Check::CLI
113
113
  else
114
114
  ok message
115
115
  end
116
-
117
- rescue => e
116
+ rescue StandardError => e
118
117
  puts "Error: exception: #{e}"
119
118
  critical
120
119
  end
@@ -113,8 +113,7 @@ class CheckAzureRMRouteTablesUsage < Sensu::Plugin::Check::CLI
113
113
  else
114
114
  ok message
115
115
  end
116
-
117
- rescue => e
116
+ rescue StandardError => e
118
117
  puts "Error: exception: #{e}"
119
118
  critical
120
119
  end
@@ -107,8 +107,7 @@ class CheckAzureRMServiceBusSubscription < Sensu::Plugin::Check::CLI
107
107
  else
108
108
  ok "Subscription '#{config[:subscription_name]}' was found in topic '#{config[:topic_name]}'"
109
109
  end
110
-
111
- rescue => e
110
+ rescue StandardError => e
112
111
  puts "Error: exception: #{e}"
113
112
  critical
114
113
  end
@@ -127,8 +127,7 @@ class CheckAzureRMServiceBusTopicSize < Sensu::Plugin::Check::CLI
127
127
  else
128
128
  ok message
129
129
  end
130
-
131
- rescue => e
130
+ rescue StandardError => e
132
131
  puts "Error: exception: #{e}"
133
132
  critical
134
133
  end
@@ -113,8 +113,7 @@ class CheckAzureRMStaticPublicIPAddressesUsage < Sensu::Plugin::Check::CLI
113
113
  else
114
114
  ok message
115
115
  end
116
-
117
- rescue => e
116
+ rescue StandardError => e
118
117
  puts "Error: exception: #{e}"
119
118
  critical
120
119
  end
@@ -113,8 +113,7 @@ class CheckAzureRMVMUsage < Sensu::Plugin::Check::CLI
113
113
  else
114
114
  ok message
115
115
  end
116
-
117
- rescue => e
116
+ rescue StandardError => e
118
117
  puts "Error: exception: #{e}"
119
118
  critical
120
119
  end
@@ -99,13 +99,12 @@ class CheckAzureRMVirtualNetworkGatewayConnected < Sensu::Plugin::Check::CLI
99
99
  inbound = result.ingress_bytes_transferred
100
100
  outbound = result.egress_bytes_transferred
101
101
  message = "State is '#{connection_state}'. Usage is #{inbound} in / #{outbound} out"
102
- if result.connection_status.casecmp('connected') == 0
102
+ if result.connection_status.casecmp('connected').zero?
103
103
  ok message
104
104
  else
105
105
  critical message
106
106
  end
107
-
108
- rescue => e
107
+ rescue StandardError => e
109
108
  puts "Error: exception: #{e}"
110
109
  critical
111
110
  end
@@ -119,14 +119,13 @@ class CheckAzureRMVirtualNetworkGatewayConnected < Sensu::Plugin::Check::CLI
119
119
  message = "Primary: State is '#{primary_connection_state}'. Usage is #{primary_inbound} in / #{primary_outbound} out.\n"
120
120
  message += "Secondary: State is '#{secondary_connection_state}'. Usage is #{secondary_inbound} in / #{secondary_outbound} out."
121
121
 
122
- if primary_result.connection_status.casecmp('connected') == 0 ||
123
- secondary_result.connection_status.casecmp('connected') == 0
122
+ if primary_result.connection_status.casecmp('connected').zero? ||
123
+ secondary_result.connection_status.casecmp('connected').zero?
124
124
  ok message
125
125
  else
126
126
  critical message
127
127
  end
128
-
129
- rescue => e
128
+ rescue StandardError => e
130
129
  puts "Error: exception: #{e}"
131
130
  critical
132
131
  end
@@ -113,8 +113,7 @@ class CheckAzureRMVirtualNetworksUsage < Sensu::Plugin::Check::CLI
113
113
  else
114
114
  ok message
115
115
  end
116
-
117
- rescue => e
116
+ rescue StandardError => e
118
117
  puts "Error: exception: #{e}"
119
118
  critical
120
119
  end
@@ -127,7 +127,7 @@ class MetricAzureRMServiceBusSubscriptionMessageCount < Sensu::Plugin::Metric::C
127
127
 
128
128
  output metric_name, count, timestamp
129
129
  ok
130
- rescue => e
130
+ rescue StandardError => e
131
131
  puts "Error: exception: #{e}"
132
132
  critical
133
133
  end
@@ -112,7 +112,7 @@ class MetricAzureRMVirtualNetworkGatewayUsage < Sensu::Plugin::Metric::CLI::Stat
112
112
  output inbound_name, inbound, timestamp
113
113
  output outbound_name, outbound, timestamp
114
114
  ok
115
- rescue => e
115
+ rescue StandardError => e
116
116
  puts "Error: exception: #{e}"
117
117
  critical
118
118
  end
@@ -1,8 +1,8 @@
1
1
  module SensuPluginsAzureRM
2
2
  module Version
3
- MAJOR = 0
3
+ MAJOR = 1
4
4
  MINOR = 0
5
- PATCH = 5
5
+ PATCH = 0
6
6
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-azurerm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Harvey
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-05 00:00:00.000000000 Z
11
+ date: 2017-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: azure_mgmt_compute
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '1.3'
75
+ version: '2.0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '1.3'
82
+ version: '2.0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: bundler
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -122,6 +122,54 @@ dependencies:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: '1.3'
125
+ - !ruby/object:Gem::Dependency
126
+ name: kitchen-docker
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '2.6'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '2.6'
139
+ - !ruby/object:Gem::Dependency
140
+ name: kitchen-localhost
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '0.3'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '0.3'
153
+ - !ruby/object:Gem::Dependency
154
+ name: mixlib-shellout
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "<"
158
+ - !ruby/object:Gem::Version
159
+ version: 2.3.0
160
+ - - "~>"
161
+ - !ruby/object:Gem::Version
162
+ version: '2.2'
163
+ type: :development
164
+ prerelease: false
165
+ version_requirements: !ruby/object:Gem::Requirement
166
+ requirements:
167
+ - - "<"
168
+ - !ruby/object:Gem::Version
169
+ version: 2.3.0
170
+ - - "~>"
171
+ - !ruby/object:Gem::Version
172
+ version: '2.2'
125
173
  - !ruby/object:Gem::Dependency
126
174
  name: pry
127
175
  requirement: !ruby/object:Gem::Requirement
@@ -164,34 +212,62 @@ dependencies:
164
212
  - - "~>"
165
213
  - !ruby/object:Gem::Version
166
214
  version: '3.2'
215
+ - !ruby/object:Gem::Dependency
216
+ name: rspec
217
+ requirement: !ruby/object:Gem::Requirement
218
+ requirements:
219
+ - - "~>"
220
+ - !ruby/object:Gem::Version
221
+ version: '3.4'
222
+ type: :development
223
+ prerelease: false
224
+ version_requirements: !ruby/object:Gem::Requirement
225
+ requirements:
226
+ - - "~>"
227
+ - !ruby/object:Gem::Version
228
+ version: '3.4'
167
229
  - !ruby/object:Gem::Dependency
168
230
  name: rubocop
169
231
  requirement: !ruby/object:Gem::Requirement
170
232
  requirements:
171
233
  - - "~>"
172
234
  - !ruby/object:Gem::Version
173
- version: 0.40.0
235
+ version: 0.51.0
174
236
  type: :development
175
237
  prerelease: false
176
238
  version_requirements: !ruby/object:Gem::Requirement
177
239
  requirements:
178
240
  - - "~>"
179
241
  - !ruby/object:Gem::Version
180
- version: 0.40.0
242
+ version: 0.51.0
181
243
  - !ruby/object:Gem::Dependency
182
- name: rspec
244
+ name: serverspec
183
245
  requirement: !ruby/object:Gem::Requirement
184
246
  requirements:
185
247
  - - "~>"
186
248
  - !ruby/object:Gem::Version
187
- version: '3.4'
249
+ version: 2.36.1
188
250
  type: :development
189
251
  prerelease: false
190
252
  version_requirements: !ruby/object:Gem::Requirement
191
253
  requirements:
192
254
  - - "~>"
193
255
  - !ruby/object:Gem::Version
194
- version: '3.4'
256
+ version: 2.36.1
257
+ - !ruby/object:Gem::Dependency
258
+ name: test-kitchen
259
+ requirement: !ruby/object:Gem::Requirement
260
+ requirements:
261
+ - - "~>"
262
+ - !ruby/object:Gem::Version
263
+ version: '1.6'
264
+ type: :development
265
+ prerelease: false
266
+ version_requirements: !ruby/object:Gem::Requirement
267
+ requirements:
268
+ - - "~>"
269
+ - !ruby/object:Gem::Version
270
+ version: '1.6'
195
271
  - !ruby/object:Gem::Dependency
196
272
  name: yard
197
273
  requirement: !ruby/object:Gem::Requirement
@@ -209,27 +285,27 @@ dependencies:
209
285
  description: This plugin provides checks for Microsoft Azure's Resource Manager service.
210
286
  email: "<github@ibuildstuff.co.uk>"
211
287
  executables:
212
- - check-azurerm-core-usage.rb
213
- - check-azurerm-cores-d-usage.rb
214
- - check-azurerm-cores-ds-usage.rb
215
- - check-azurerm-cores-dsv2-usage.rb
216
- - check-azurerm-cores-dv2-usage.rb
217
- - check-azurerm-cores-f-usage.rb
218
- - check-azurerm-cores-fs-usage.rb
219
- - check-azurerm-load-balancers-usage.rb
288
+ - check-azurerm-virtual-network-gateway-connected.rb
289
+ - metric-azurerm-virtual-network-gateway-usage.rb
290
+ - check-azurerm-virtual-networks-usage.rb
291
+ - check-azurerm-service-bus-subscription.rb
292
+ - metric-azurerm-service-bus-subscription-message-count.rb
293
+ - check-azurerm-static-public-ip-addresses-usage.rb
220
294
  - check-azurerm-network-interfaces-usage.rb
295
+ - check-azurerm-cores-dsv2-usage.rb
221
296
  - check-azurerm-network-security-groups-usage.rb
297
+ - check-azurerm-virtual-network-gateway-failure-connected.rb
222
298
  - check-azurerm-public-ip-addresses-usage.rb
223
- - check-azurerm-route-tables-usage.rb
224
- - check-azurerm-service-bus-subscription.rb
225
299
  - check-azurerm-service-bus-topic-size.rb
226
- - check-azurerm-static-public-ip-addresses-usage.rb
300
+ - check-azurerm-core-usage.rb
301
+ - check-azurerm-route-tables-usage.rb
302
+ - check-azurerm-cores-ds-usage.rb
303
+ - check-azurerm-load-balancers-usage.rb
304
+ - check-azurerm-cores-dv2-usage.rb
305
+ - check-azurerm-cores-f-usage.rb
227
306
  - check-azurerm-virtual-machines-usage.rb
228
- - check-azurerm-virtual-network-gateway-connected.rb
229
- - check-azurerm-virtual-network-gateway-failure-connected.rb
230
- - check-azurerm-virtual-networks-usage.rb
231
- - metric-azurerm-service-bus-subscription-message-count.rb
232
- - metric-azurerm-virtual-network-gateway-usage.rb
307
+ - check-azurerm-cores-d-usage.rb
308
+ - check-azurerm-cores-fs-usage.rb
233
309
  extensions: []
234
310
  extra_rdoc_files: []
235
311
  files:
@@ -289,7 +365,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
289
365
  version: '0'
290
366
  requirements: []
291
367
  rubyforge_project:
292
- rubygems_version: 2.5.1
368
+ rubygems_version: 2.5.2.1
293
369
  signing_key:
294
370
  specification_version: 4
295
371
  summary: Sensu plugins for working with an Azure Resource Manager environment