sensu-plugins-azurerm 0.0.1
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 +7 -0
- data/CHANGELOG.md +8 -0
- data/LICENSE +22 -0
- data/README.md +61 -0
- data/bin/check-azurerm-core-usage.rb +124 -0
- data/bin/check-azurerm-virtual-machines-usage.rb +124 -0
- data/lib/sensu-plugins-azurerm.rb +2 -0
- data/lib/sensu-plugins-azurerm/common.rb +23 -0
- data/lib/sensu-plugins-azurerm/version.rb +8 -0
- metadata +227 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d3ca54b410d852ba9abc57052a70d81e1f058b57
|
4
|
+
data.tar.gz: 595f6416241a2bd7ca671aa7f265cfaf0aebba03
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 91b62be8ce38c10ccd128a46476bed13a86fa612da0464ddc9ffac8c21662a209fc584f064adb6aa52cb419141453b51e08c38c2419d8ef1a7db7a24fea1522e
|
7
|
+
data.tar.gz: b082134bf173d15daac8b39036854669a3b22ca6798d0fd5ac0cd10efe8200e51d09d91aeeba85d3a778ff58a25010d7ff9fd2ce7ee03f295baa72296da34d1e
|
data/CHANGELOG.md
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2016 Tom Harvey
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
## Sensu-Plugins-AzureRM
|
2
|
+
|
3
|
+
[](https://travis-ci.org/tombuildsstuff/sensu-plugins-azurerm)
|
4
|
+
[](http://badge.fury.io/rb/sensu-plugins-azurerm)
|
5
|
+
[](https://codeclimate.com/github/tombuildsstuff/sensu-plugins-azurerm)
|
6
|
+
[](https://codeclimate.com/github/tombuildsstuff/sensu-plugins-azurerm)
|
7
|
+
[](https://gemnasium.com/tombuildsstuff/sensu-plugins-azurerm)
|
8
|
+
|
9
|
+
## Functionality
|
10
|
+
|
11
|
+
- check-azurerm-core-usage.rb
|
12
|
+
- check-azurerm-virtual-machines-usage.rb
|
13
|
+
|
14
|
+
|
15
|
+
## Files
|
16
|
+
|
17
|
+
* /bin/check-azurerm-core-usage.rb
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
**check-azurerm-core-usage.rb**
|
22
|
+
```
|
23
|
+
./check-azurerm-core-usage.rb -l "westeurope" -w 80 -c 90
|
24
|
+
|
25
|
+
./check-azurerm-core-usage.rb -t "00000000-0000-0000-0000-000000000000"
|
26
|
+
-c "00000000-0000-0000-0000-000000000000"
|
27
|
+
-S "00000000-0000-0000-0000-000000000000"
|
28
|
+
-s "1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ12345678901234"
|
29
|
+
-l "eastus2" -w 80 -c 90
|
30
|
+
|
31
|
+
./check-azurerm-core-usage.rb -tenant "00000000-0000-0000-0000-000000000000"
|
32
|
+
-client_id "00000000-0000-0000-0000-000000000000"
|
33
|
+
-client_secret "00000000-0000-0000-0000-000000000000"
|
34
|
+
-subscription_id "1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ12345678901234"
|
35
|
+
-location "westeurope"
|
36
|
+
-warning_percentage 80
|
37
|
+
-critical_percentage 90
|
38
|
+
```
|
39
|
+
|
40
|
+
**check-azurerm-virtual-machines-usage.rb**
|
41
|
+
```
|
42
|
+
./check-azurerm-virtual-machines-usage.rb -l "westeurope" -w 80 -c 90
|
43
|
+
|
44
|
+
./check-azurerm-virtual-machines-usage.rb -t "00000000-0000-0000-0000-000000000000"
|
45
|
+
-c "00000000-0000-0000-0000-000000000000"
|
46
|
+
-S "00000000-0000-0000-0000-000000000000"
|
47
|
+
-s "1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ12345678901234"
|
48
|
+
-l "eastus2" -w 80 -c 90
|
49
|
+
|
50
|
+
./check-azurerm-virtual-machines-usage.rb -tenant "00000000-0000-0000-0000-000000000000"
|
51
|
+
-client_id "00000000-0000-0000-0000-000000000000"
|
52
|
+
-client_secret "00000000-0000-0000-0000-000000000000"
|
53
|
+
-subscription_id "1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ12345678901234"
|
54
|
+
-location "westeurope"
|
55
|
+
-warning_percentage 80
|
56
|
+
-critical_percentage 90
|
57
|
+
```
|
58
|
+
|
59
|
+
## Installation
|
60
|
+
|
61
|
+
[Installation and Setup](http://sensu-plugins.io/docs/installation_instructions.html)
|
@@ -0,0 +1,124 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# check-azurerm-core-usage
|
4
|
+
#
|
5
|
+
# DESCRIPTION:
|
6
|
+
# This plugin checks the number of CPU Cores allocated and available in a Region in Azure.
|
7
|
+
# Warning and Critical Percentage thresholds may be set as needed.
|
8
|
+
#
|
9
|
+
# OUTPUT:
|
10
|
+
# plain-text
|
11
|
+
#
|
12
|
+
# PLATFORMS:
|
13
|
+
# Linux
|
14
|
+
#
|
15
|
+
# DEPENDENCIES:
|
16
|
+
# gem: azure_mgmt_compute
|
17
|
+
# gem: sensu-plugin
|
18
|
+
#
|
19
|
+
# USAGE:
|
20
|
+
# ./check-azurerm-core-usage.rb -l "westeurope" -w 80 -c 90
|
21
|
+
#
|
22
|
+
# ./check-azurerm-core-usage.rb -t "00000000-0000-0000-0000-000000000000"
|
23
|
+
# -c "00000000-0000-0000-0000-000000000000"
|
24
|
+
# -S "00000000-0000-0000-0000-000000000000"
|
25
|
+
# -s "1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ12345678901234"
|
26
|
+
# -l "eastus2" -w 80 -c 90
|
27
|
+
#
|
28
|
+
# ./check-azurerm-core-usage.rb -tenant "00000000-0000-0000-0000-000000000000"
|
29
|
+
# -client_id "00000000-0000-0000-0000-000000000000"
|
30
|
+
# -client_secret "00000000-0000-0000-0000-000000000000"
|
31
|
+
# -subscription_id "1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ12345678901234"
|
32
|
+
# -location "westeurope"
|
33
|
+
# -warning_percentage 80
|
34
|
+
# -critical_percentage 90
|
35
|
+
#
|
36
|
+
# NOTES:
|
37
|
+
#
|
38
|
+
# LICENSE:
|
39
|
+
# Tom Harvey
|
40
|
+
# Released under the same terms as Sensu (the MIT license); see LICENSE
|
41
|
+
# for details.
|
42
|
+
#
|
43
|
+
|
44
|
+
require 'sensu-plugin/check/cli'
|
45
|
+
require 'sensu-plugins-azurerm'
|
46
|
+
require 'azure_mgmt_compute'
|
47
|
+
|
48
|
+
class AzureRMCoreUsage < Sensu::Plugin::Check::CLI
|
49
|
+
include SensuPluginsAzureRM
|
50
|
+
|
51
|
+
option :tenant_id,
|
52
|
+
description: 'ARM Tenant ID. Either set ENV[\'ARM_TENANT_ID\'] or provide it as an option',
|
53
|
+
short: '-t ID',
|
54
|
+
long: '--tenant ID',
|
55
|
+
default: ENV['ARM_TENANT_ID'] # TODO: can we pull these out from the Check too?
|
56
|
+
|
57
|
+
option :client_id,
|
58
|
+
description: 'ARM Client ID. Either set ENV[\'ARM_CLIENT_ID\'] or provide it as an option',
|
59
|
+
short: '-c ID',
|
60
|
+
long: '--client ID',
|
61
|
+
default: ENV['ARM_CLIENT_ID']
|
62
|
+
|
63
|
+
option :client_secret,
|
64
|
+
description: 'ARM Client Secret. Either set ENV[\'ARM_CLIENT_SECRET\'] or provide it as an option',
|
65
|
+
short: '-s SECRET',
|
66
|
+
long: '--clientSecret SECRET',
|
67
|
+
default: ENV['ARM_CLIENT_SECRET']
|
68
|
+
|
69
|
+
option :subscription_id,
|
70
|
+
description: 'ARM Subscription ID',
|
71
|
+
short: '-S ID',
|
72
|
+
long: '--subscription ID',
|
73
|
+
default: ENV['ARM_SUBSCRIPTION_ID']
|
74
|
+
|
75
|
+
option :location,
|
76
|
+
description: 'Azure Location (e.g. westeurope/eastus2)',
|
77
|
+
short: '-l LOCATION',
|
78
|
+
long: '--location LOCATION'
|
79
|
+
|
80
|
+
option :warning_percentage,
|
81
|
+
description: 'Warning Percentage threshold for filter',
|
82
|
+
short: '-w PERCENTAGE',
|
83
|
+
long: '--warning PERCENTAGE'
|
84
|
+
|
85
|
+
option :critical_percentage,
|
86
|
+
description: 'Critical Percentage threshold for filter',
|
87
|
+
short: '-c PERCENTAGE',
|
88
|
+
long: '--critical PERCENTAGE'
|
89
|
+
|
90
|
+
def run
|
91
|
+
tenantId = config[:tenant_id]
|
92
|
+
clientId = config[:client_id]
|
93
|
+
clientSecret = config[:client_secret]
|
94
|
+
subscriptionId = config[:subscription_id]
|
95
|
+
location = config[:location]
|
96
|
+
|
97
|
+
common = Common.new()
|
98
|
+
|
99
|
+
usageClient = common.buildClient(tenantId, clientId, clientSecret, subscriptionId)
|
100
|
+
result = common.retrieveUsageStats(usageClient, location, 'cores')
|
101
|
+
|
102
|
+
current_usage = result.current_value
|
103
|
+
allowance = result.limit
|
104
|
+
criticalPercentage = config[:critical_percentage].to_f
|
105
|
+
warningPercentage = config[:warning_percentage].to_f
|
106
|
+
|
107
|
+
message = "Current usage: #{current_usage} of #{allowance} Cores"
|
108
|
+
|
109
|
+
percentage_used = (current_usage.to_f / allowance.to_f) * 100
|
110
|
+
|
111
|
+
if percentage_used >= criticalPercentage
|
112
|
+
critical message
|
113
|
+
elsif percentage_used >= warningPercentage
|
114
|
+
warning message
|
115
|
+
else
|
116
|
+
ok message
|
117
|
+
end
|
118
|
+
|
119
|
+
rescue => e
|
120
|
+
puts "Error: exception: #{e}"
|
121
|
+
critical
|
122
|
+
end
|
123
|
+
|
124
|
+
end
|
@@ -0,0 +1,124 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# check-azurerm-virtual-machines-usage
|
4
|
+
#
|
5
|
+
# DESCRIPTION:
|
6
|
+
# This plugin checks the number of Virtual Machines allocated and available in a Region in Azure.
|
7
|
+
# Warning and Critical Percentage thresholds may be set as needed.
|
8
|
+
#
|
9
|
+
# OUTPUT:
|
10
|
+
# plain-text
|
11
|
+
#
|
12
|
+
# PLATFORMS:
|
13
|
+
# Linux
|
14
|
+
#
|
15
|
+
# DEPENDENCIES:
|
16
|
+
# gem: azure_mgmt_compute
|
17
|
+
# gem: sensu-plugin
|
18
|
+
#
|
19
|
+
# USAGE:
|
20
|
+
# ./check-azurerm-virtual-machines-usage.rb -l "westeurope" -w 80 -c 90
|
21
|
+
#
|
22
|
+
# ./check-azurerm-virtual-machines-usage.rb -t "00000000-0000-0000-0000-000000000000"
|
23
|
+
# -c "00000000-0000-0000-0000-000000000000"
|
24
|
+
# -S "00000000-0000-0000-0000-000000000000"
|
25
|
+
# -s "1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ12345678901234"
|
26
|
+
# -l "eastus2" -w 80 -c 90
|
27
|
+
#
|
28
|
+
# ./check-azurerm-virtual-machines-usage.rb -tenant "00000000-0000-0000-0000-000000000000"
|
29
|
+
# -client_id "00000000-0000-0000-0000-000000000000"
|
30
|
+
# -client_secret "00000000-0000-0000-0000-000000000000"
|
31
|
+
# -subscription_id "1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ12345678901234"
|
32
|
+
# -location "westeurope"
|
33
|
+
# -warning_percentage 80
|
34
|
+
# -critical_percentage 90
|
35
|
+
#
|
36
|
+
# NOTES:
|
37
|
+
#
|
38
|
+
# LICENSE:
|
39
|
+
# Tom Harvey
|
40
|
+
# Released under the same terms as Sensu (the MIT license); see LICENSE
|
41
|
+
# for details.
|
42
|
+
#
|
43
|
+
|
44
|
+
require 'sensu-plugin/check/cli'
|
45
|
+
require 'sensu-plugins-azurerm'
|
46
|
+
require 'azure_mgmt_compute'
|
47
|
+
|
48
|
+
class AzureRMVMUsage < Sensu::Plugin::Check::CLI
|
49
|
+
include SensuPluginsAzureRM
|
50
|
+
|
51
|
+
option :tenant_id,
|
52
|
+
description: 'ARM Tenant ID. Either set ENV[\'ARM_TENANT_ID\'] or provide it as an option',
|
53
|
+
short: '-t ID',
|
54
|
+
long: '--tenant ID',
|
55
|
+
default: ENV['ARM_TENANT_ID'] # TODO: can we pull these out from the Check too?
|
56
|
+
|
57
|
+
option :client_id,
|
58
|
+
description: 'ARM Client ID. Either set ENV[\'ARM_CLIENT_ID\'] or provide it as an option',
|
59
|
+
short: '-c ID',
|
60
|
+
long: '--client ID',
|
61
|
+
default: ENV['ARM_CLIENT_ID']
|
62
|
+
|
63
|
+
option :client_secret,
|
64
|
+
description: 'ARM Client Secret. Either set ENV[\'ARM_CLIENT_SECRET\'] or provide it as an option',
|
65
|
+
short: '-s SECRET',
|
66
|
+
long: '--clientSecret SECRET',
|
67
|
+
default: ENV['ARM_CLIENT_SECRET']
|
68
|
+
|
69
|
+
option :subscription_id,
|
70
|
+
description: 'ARM Subscription ID',
|
71
|
+
short: '-S ID',
|
72
|
+
long: '--subscription ID',
|
73
|
+
default: ENV['ARM_SUBSCRIPTION_ID']
|
74
|
+
|
75
|
+
option :location,
|
76
|
+
description: 'Azure Location (e.g. westeurope/eastus2)',
|
77
|
+
short: '-l LOCATION',
|
78
|
+
long: '--location LOCATION'
|
79
|
+
|
80
|
+
option :warning_percentage,
|
81
|
+
description: 'Warning Percentage threshold for filter',
|
82
|
+
short: '-w PERCENTAGE',
|
83
|
+
long: '--warning PERCENTAGE'
|
84
|
+
|
85
|
+
option :critical_percentage,
|
86
|
+
description: 'Critical Percentage threshold for filter',
|
87
|
+
short: '-c PERCENTAGE',
|
88
|
+
long: '--critical PERCENTAGE'
|
89
|
+
|
90
|
+
def run
|
91
|
+
tenantId = config[:tenant_id]
|
92
|
+
clientId = config[:client_id]
|
93
|
+
clientSecret = config[:client_secret]
|
94
|
+
subscriptionId = config[:subscription_id]
|
95
|
+
location = config[:location]
|
96
|
+
|
97
|
+
common = Common.new()
|
98
|
+
|
99
|
+
usageClient = common.buildClient(tenantId, clientId, clientSecret, subscriptionId)
|
100
|
+
result = common.retrieveUsageStats(usageClient, location, 'virtualMachines')
|
101
|
+
|
102
|
+
current_usage = result.current_value
|
103
|
+
allowance = result.limit
|
104
|
+
criticalPercentage = config[:critical_percentage].to_f
|
105
|
+
warningPercentage = config[:warning_percentage].to_f
|
106
|
+
|
107
|
+
message = "Current usage: #{current_usage} of #{allowance} VMs"
|
108
|
+
|
109
|
+
percentage_used = (current_usage.to_f / allowance.to_f) * 100
|
110
|
+
|
111
|
+
if percentage_used >= criticalPercentage
|
112
|
+
critical message
|
113
|
+
elsif percentage_used >= warningPercentage
|
114
|
+
warning message
|
115
|
+
else
|
116
|
+
ok message
|
117
|
+
end
|
118
|
+
|
119
|
+
#rescue => e
|
120
|
+
# puts "Error: exception: #{e}"
|
121
|
+
# critical
|
122
|
+
end
|
123
|
+
|
124
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module SensuPluginsAzureRM
|
2
|
+
|
3
|
+
class Common
|
4
|
+
|
5
|
+
def buildClient(tenant_id, client_id, secret, subscription_id)
|
6
|
+
token_provider = MsRestAzure::ApplicationTokenProvider.new(tenant_id, client_id, secret)
|
7
|
+
credentials = MsRest::TokenCredentials.new(token_provider)
|
8
|
+
client = Azure::ARM::Compute::ComputeManagementClient.new(credentials)
|
9
|
+
client.subscription_id = subscription_id
|
10
|
+
|
11
|
+
usageClient = Azure::ARM::Compute::UsageOperations.new(client)
|
12
|
+
usageClient
|
13
|
+
end
|
14
|
+
|
15
|
+
def retrieveUsageStats(client, location, name)
|
16
|
+
usageStatistics = client.list(location)
|
17
|
+
|
18
|
+
filteredStatistics = usageStatistics.select { |stat| stat.name.value == name }
|
19
|
+
filteredStatistics[0]
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
end
|
metadata
ADDED
@@ -0,0 +1,227 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sensu-plugins-azurerm
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Tom Harvey
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-11-21 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: azure_mgmt_compute
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.8.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.8.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: ms_rest_azure
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.6.2
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.6.2
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: sensu-plugin
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.3'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.3'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: bundler
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.7'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.7'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: codeclimate-test-reporter
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0.4'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0.4'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: github-markup
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ~>
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.3'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ~>
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.3'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: pry
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ~>
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0.10'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ~>
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0.10'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rake
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ~>
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '10.5'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ~>
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '10.5'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: redcarpet
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ~>
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '3.2'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ~>
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '3.2'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: rubocop
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ~>
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 0.40.0
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ~>
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 0.40.0
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: rspec
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ~>
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '3.4'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ~>
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '3.4'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: yard
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ~>
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0.8'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ~>
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0.8'
|
181
|
+
description: This plugin provides checks for Microsoft Azure's Resource Manager service.
|
182
|
+
email: <github@ibuildstuff.co.uk>
|
183
|
+
executables:
|
184
|
+
- check-azurerm-core-usage.rb
|
185
|
+
- check-azurerm-virtual-machines-usage.rb
|
186
|
+
extensions: []
|
187
|
+
extra_rdoc_files: []
|
188
|
+
files:
|
189
|
+
- bin/check-azurerm-core-usage.rb
|
190
|
+
- bin/check-azurerm-virtual-machines-usage.rb
|
191
|
+
- lib/sensu-plugins-azurerm/common.rb
|
192
|
+
- lib/sensu-plugins-azurerm/version.rb
|
193
|
+
- lib/sensu-plugins-azurerm.rb
|
194
|
+
- LICENSE
|
195
|
+
- README.md
|
196
|
+
- CHANGELOG.md
|
197
|
+
homepage: https://github.com/tombuildsstuff/sensu-plugins-azurerm
|
198
|
+
licenses:
|
199
|
+
- MIT
|
200
|
+
metadata:
|
201
|
+
maintainer: sensu-plugin
|
202
|
+
development_status: active
|
203
|
+
production_status: unstable - testing recommended
|
204
|
+
release_draft: 'false'
|
205
|
+
release_prerelease: 'false'
|
206
|
+
post_install_message: You can use the embedded Ruby by setting EMBEDDED_RUBY=true
|
207
|
+
in /etc/default/sensu
|
208
|
+
rdoc_options: []
|
209
|
+
require_paths:
|
210
|
+
- lib
|
211
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - '>='
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: 2.0.0
|
216
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
217
|
+
requirements:
|
218
|
+
- - '>='
|
219
|
+
- !ruby/object:Gem::Version
|
220
|
+
version: '0'
|
221
|
+
requirements: []
|
222
|
+
rubyforge_project:
|
223
|
+
rubygems_version: 2.0.14.1
|
224
|
+
signing_key:
|
225
|
+
specification_version: 4
|
226
|
+
summary: Sensu plugins for working with an Azure Resource Manager environment
|
227
|
+
test_files: []
|