sensu-plugins-ups 0.1.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 ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZDRiYzZhNzhlZmE5OWJiNjAxNTdiNmE3ZTc0MDIwNjY5ZDIyMzNhYg==
5
+ data.tar.gz: !binary |-
6
+ OTYwN2RjMjJiOTkwMjhmNGM4YWQ3ZGYzZWI3M2QwZGU5MDc0M2ViZg==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ NmE1NTY0MjY4ZWRkOTFkN2ZjYTlhMTk3YmU4NWNkM2Q3N2YxZDFiYWQ1MGU4
10
+ MmE3ZDgzZDk1YjZhNzc5YWQzN2E0YzM2MWJhN2M5MWU2MTU1MzQxOWYwM2Y5
11
+ YzNkMzEyNTZiZjAzNzMxMDZjYzBiNzcxZGY1YzlkMzljZjMyMWQ=
12
+ data.tar.gz: !binary |-
13
+ OWRkNzlkYjgwYzEyMDU3Zjk1NDM0ZmU3MTk0YWYwODMyNDYyOTg1Y2Q4OTgw
14
+ MTkxODc0MWNmMWI0NjZlMzQzNDBjZjZiYWU2ODU4YWNlNzAzYTkwZjFjYzQ5
15
+ NmZjNGZmOGZhYmNjNWM1MTJiY2M4YjVmZWZjMTIxYmQ0MGNmMjc=
checksums.yaml.gz.sig ADDED
Binary file
data.tar.gz.sig ADDED
Binary file
data/CHANGELOG.md ADDED
@@ -0,0 +1,19 @@
1
+ #Change Log
2
+ This project adheres to [Semantic Versioning](http://semver.org/).
3
+
4
+ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
5
+
6
+ ## [Unreleased]
7
+
8
+ ## [0.1.1] - 2016-02-28
9
+ ### Added
10
+ - new certs
11
+
12
+ ## [0.1.0] - 2016-01-28
13
+ ### Added
14
+ - Apcupsd checks for battery time and levels
15
+ - initial release of this sensu plugin repo
16
+
17
+
18
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-couchdb/compare/0.1.0...HEAD
19
+ [0.1.1]: https://github.com/sensu-plugins/sensu-plugins-ups/compare/0.1.1...0.1.1
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2015 Sensu-Plugins
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,56 @@
1
+ ## Sensu-Plugins-ups
2
+ [![Build Status](https://travis-ci.org/sensu-plugins/sensu-plugins-ups.svg?branch=master)](https://travis-ci.org/sensu-plugins/sensu-plugins-ups)
3
+ [![Gem Version](https://badge.fury.io/rb/sensu-plugins-ups.svg)](http://badge.fury.io/rb/sensu-plugins-ups)
4
+ [![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-ups/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-ups)
5
+ [![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-ups/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-ups)
6
+ [![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-ups.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-ups)
7
+ ## Functionality
8
+
9
+ **check-nut**
10
+
11
+ Checks each NUT (http://www.networkupstools.org/) managed UPS unit for the "OL" status
12
+
13
+ **metrics-nut**
14
+
15
+ Polls metrics from NUT (http://www.networkupstools.org/) monitored UPS units
16
+
17
+ **apcupsd checks**
18
+
19
+ Uses apcupsd (http://www.apcupsd.org/) to check battery time and levels
20
+
21
+ ## Files
22
+ * bin/check-nut.rb
23
+ * bin/metrics-nut.rb
24
+ * bin/check-apcupsd-bcharge.rb
25
+ * bin/check-apcupsd-timeleft.rb
26
+
27
+ ## Usage
28
+
29
+ **check-apcupsd-timeleft**
30
+ ```
31
+ {
32
+ "checks": {
33
+ "check-apcupsd-timeleft": {
34
+ "command": "check-apcupsd-timeleft.rb -w 5 -c 1"
35
+ }
36
+ }
37
+ }
38
+ ```
39
+
40
+ **check-apcupsd-bcharge**
41
+ ```
42
+ {
43
+ "checks": {
44
+ "check-apcupsd-bcharge": {
45
+ "command": "check-apcupsd-bcharge.rb -w 80 -c 50"
46
+ }
47
+ }
48
+ }
49
+ ```
50
+
51
+
52
+ ## Installation
53
+
54
+ [Installation and Setup](http://sensu-plugins.io/docs/installation_instructions.html)
55
+
56
+ ## Notes
@@ -0,0 +1,58 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # check-apcupsd-bcharge.rb
4
+ #
5
+ # DESCRIPTION:
6
+ # Checks the battery charge level on a APC UPS using apcupsd <http://www.apcupsd.org>
7
+ #
8
+ # OUTPUT:
9
+ # plain text
10
+ #
11
+ # PLATFORMS:
12
+ # Linux
13
+ #
14
+ # DEPENDENCIES:
15
+ # gem: sensu-plugin
16
+ # apcupsd <http://www.apcupsd.org>
17
+ #
18
+ # USAGE:
19
+ # check-apcupsd-bcharge.rb -w 80 -c 20
20
+ #
21
+ # LICENSE:
22
+ # Copyright 2016 Drew Rogers <drogers@chariotsolutions.com> - Chariot Solutions LLC
23
+ #
24
+ # Released under the same terms as Sensu (the MIT license); see LICENSE
25
+ # for details.
26
+ #
27
+
28
+ require 'sensu-plugin/check/cli'
29
+
30
+ class CheckApcupsd < Sensu::Plugin::Check::CLI
31
+ option :warn,
32
+ short: '-w WARN',
33
+ long: '--warn WARN',
34
+ proc: proc { |a| a.to_i },
35
+ default: 80,
36
+ description: 'Warn if lower then arg'
37
+
38
+ option :crit,
39
+ short: '-c CRIT',
40
+ long: '--critical CRIT',
41
+ proc: proc { |a| a.to_i },
42
+ default: 20,
43
+ description: 'Critical if lower then arg'
44
+
45
+ def run
46
+ # Path to apcaccess
47
+ apcaccess = '/sbin/apcaccess'
48
+ results = `#{apcaccess} status | grep -i bcharge | awk '{print $3}' | awk -F'.' '{print $1}'`.to_i
49
+
50
+ if results < config[:crit]
51
+ critical "UPS Battery Charge is at #{results}%"
52
+ elsif results < config[:warn]
53
+ warning "UPS Battery Charge is at #{results}%"
54
+ else
55
+ ok "UPS Battery Charge is at #{results}%"
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,58 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # check-apcupsd-timeleft.rb
4
+ #
5
+ # DESCRIPTION:
6
+ # Checks the battery time on a APC UPS using apcupsd <http://www.apcupsd.org>
7
+ #
8
+ # OUTPUT:
9
+ # plain text
10
+ #
11
+ # PLATFORMS:
12
+ # Linux
13
+ #
14
+ # DEPENDENCIES:
15
+ # gem: sensu-plugin
16
+ # apcupsd <http://www.apcupsd.org>
17
+ #
18
+ # USAGE:
19
+ # check-apcupsd-timeleft.rb -w 5 -c 2
20
+ #
21
+ # LICENSE:
22
+ # Copyright 2016 Drew Rogers <drogers@chariotsolutions.com> - Chariot Solutions LLC
23
+ #
24
+ # Released under the same terms as Sensu (the MIT license); see LICENSE
25
+ # for details.
26
+ #
27
+
28
+ require 'sensu-plugin/check/cli'
29
+
30
+ class CheckApcupsd < Sensu::Plugin::Check::CLI
31
+ option :warn,
32
+ short: '-w WARN',
33
+ long: '--warn WARN',
34
+ proc: proc { |a| a.to_i },
35
+ default: 5,
36
+ description: 'Warn if battery time is less then arg'
37
+
38
+ option :crit,
39
+ short: '-c CRIT',
40
+ long: '--critical CRIT',
41
+ proc: proc { |a| a.to_i },
42
+ default: 2,
43
+ description: 'Critical if battery time is less then arg'
44
+
45
+ def run
46
+ # Path to apcaccess
47
+ apcaccess = '/sbin/apcaccess'
48
+ results = `#{apcaccess} status | grep -i timeleft | awk '{print $3}' | awk -F'.' '{print $1}'`.to_i
49
+
50
+ if results <= config[:warn] && results > config[:crit]
51
+ warning "UPS Battery time is #{results} minutes"
52
+ elsif results < config[:crit]
53
+ critical "UPS Battery time is #{results} minutes"
54
+ else
55
+ ok "UPS Battery time is #{results} minutes"
56
+ end
57
+ end
58
+ end
data/bin/check-nut.rb ADDED
@@ -0,0 +1,64 @@
1
+ #!/usr/bin/env ruby
2
+ # encoding: utf-8
3
+ #
4
+ # check-nut
5
+ #
6
+ # DESCRIPTION:
7
+ # This plugin checks the status of UPS units managed by NUT (http://www.networkupstools.org/)
8
+ #
9
+ # OUTPUT:
10
+ # plain text
11
+ #
12
+ # PLATFORMS:
13
+ # *nix systems
14
+ #
15
+ # DEPENDENCIES:
16
+ # gem: sensu-plugin
17
+ #
18
+ # USAGE:
19
+ # ./check-nut.rb
20
+ # NutCheck OK: tripplite: status "OL"
21
+ #
22
+ # LICENSE:
23
+ # Copyright 2015 Tim Smith (tim@cozy.co) - Cozy Services Ltd.
24
+ # Released under the same terms as Sensu (the MIT license); see LICENSE
25
+ # for details.
26
+
27
+ require 'sensu-plugin/check/cli'
28
+
29
+ #
30
+ # Check Whois domain expiration
31
+ #
32
+ class NutCheck < Sensu::Plugin::Check::CLI
33
+ # check the status of each UPS managed by nut
34
+ def parse_status
35
+ status = {}
36
+ status['ok'] = {}
37
+ status['critical'] = {}
38
+ instances = `upsc -l 2> /dev/null`.split("\n")
39
+ instances.each do |ups|
40
+ output = `upsc #{ups} 2> /dev/null`.split("\n")
41
+ output.each do |line|
42
+ next unless /ups.status: (.+)/ =~ line
43
+ if Regexp.last_match(1) == 'OL'
44
+ status['ok'][ups] = Regexp.last_match(1)
45
+ else
46
+ status['critical'][ups] = Regexp.last_match(1)
47
+ end
48
+ break
49
+ end
50
+ end
51
+ status
52
+ end
53
+
54
+ def run
55
+ status = parse_status
56
+ if status['critical'].empty? && status['ok'].empty?
57
+ unknown 'Error detecting UPS units managed by NUT'
58
+ elsif status['critical'].empty?
59
+ ok "#{status['ok'].map { |x| x[0] }.join(',')}: status \"OL\""
60
+ else
61
+ critical status['critical'].map { |u, v| "#{u} status:#{v}" }.join(',')
62
+ end
63
+ end
64
+ end
@@ -0,0 +1,78 @@
1
+ #!/usr/bin/env ruby
2
+ # encoding: UTF-8
3
+ # metrics-nut.rb
4
+ #
5
+ # DESCRIPTION:
6
+ # This plugin uses polls UPS metrics from NUT and produces
7
+ # Graphite formated output.
8
+ #
9
+ # OUTPUT:
10
+ # metric data
11
+ #
12
+ # PLATFORMS:
13
+ # Linux
14
+ #
15
+ # DEPENDENCIES:
16
+ # gem: sensu-plugin
17
+ # nut
18
+ #
19
+ # USAGE:
20
+ #
21
+ # NOTES:
22
+ #
23
+ # LICENSE:
24
+ # Copyright 2015 Tim Smith <tim@cozy.co> Cozy Services Ltd.
25
+ # Based on check-temperature, Copyright 2012 Wantudu SL <dsuarez@wantudu.com>
26
+ # Released under the same terms as Sensu (the MIT license); see LICENSE
27
+ # for details.
28
+ #
29
+
30
+ require 'sensu-plugin/metric/cli'
31
+ require 'socket'
32
+
33
+ class Nut < Sensu::Plugin::Metric::CLI::Graphite
34
+ option :scheme,
35
+ description: 'Metric naming scheme, text to prepend to .$parent.$child',
36
+ long: '--scheme SCHEME',
37
+ default: "#{Socket.gethostname}.ups"
38
+
39
+ def run
40
+ instances = `upsc -l`.split("\n")
41
+
42
+ metrics = {}
43
+ instances.each do |ups|
44
+ metrics[ups.to_s] = {}
45
+ output = `upsc #{ups}`.split("\n")
46
+ output.each do |line|
47
+ case line
48
+ when /battery.voltage: (.+)/
49
+ metrics[ups.to_s]['battery_voltage'] = Regexp.last_match(1)
50
+ when /input.voltage: (.+)/
51
+ metrics[ups.to_s]['input_voltage'] = Regexp.last_match(1)
52
+ when /ups.temperature: (.+)/
53
+ metrics[ups.to_s]['temperature'] = Regexp.last_match(1) unless Regexp.last_match(1) == '0' # 0 means it's not supported
54
+ when /battery.charge: (.+)/
55
+ metrics[ups.to_s]['battery_charge'] = Regexp.last_match(1)
56
+ when /ups.load: (.+)/
57
+ metrics[ups.to_s]['load'] = Regexp.last_match(1)
58
+ when /ups.status: (.+)/
59
+ metrics[ups.to_s]['on_battery'] = if Regexp.last_match(1) == 'OL'
60
+ 0
61
+ else
62
+ 1
63
+ end
64
+ end
65
+ end
66
+ end
67
+
68
+ timestamp = Time.now.to_i
69
+
70
+ metrics.each do |ups, data|
71
+ data.each do |key, value|
72
+ output [config[:scheme], ups, key].join('.'), value, timestamp
73
+ end
74
+ end
75
+
76
+ ok
77
+ end
78
+ end
@@ -0,0 +1 @@
1
+ require 'sensu-plugins-ups/version'
@@ -0,0 +1,9 @@
1
+ module SensuPluginsUps
2
+ module Version
3
+ MAJOR = 0
4
+ MINOR = 1
5
+ PATCH = 1
6
+
7
+ VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
+ end
9
+ end
metadata ADDED
@@ -0,0 +1,233 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sensu-plugins-ups
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Sensu-Plugins and contributors
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain:
11
+ - !binary |-
12
+ LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURuakNDQW9hZ0F3SUJB
13
+ Z0lCQVRBTkJna3Foa2lHOXcwQkFRVUZBREJLTVJVd0V3WURWUVFEREF4elpX
14
+ NXoKZFMxd2JIVm5hVzR4SFRBYkJnb0praWFKay9Jc1pBRVpGZzF6Wlc1emRT
15
+ MXdiSFZuYVc1ek1SSXdFQVlLQ1pJbQppWlB5TEdRQkdSWUNhVzh3SGhjTk1U
16
+ WXdNakEwTWpNeU1qRTNXaGNOTVRjd01qQXpNak15TWpFM1dqQktNUlV3CkV3
17
+ WURWUVFEREF4elpXNXpkUzF3YkhWbmFXNHhIVEFiQmdvSmtpYUprL0lzWkFF
18
+ WkZnMXpaVzV6ZFMxd2JIVm4KYVc1ek1SSXdFQVlLQ1pJbWlaUHlMR1FCR1JZ
19
+ Q2FXOHdnZ0VpTUEwR0NTcUdTSWIzRFFFQkFRVUFBNElCRHdBdwpnZ0VLQW9J
20
+ QkFRQy9VUzNmdEkyUmQrOWQzS3JIQUw0bERsOGxhN2s2ZHA3K1RPY210VHd3
21
+ YzRiMUwzV0NyeEFoClpDWms1Q3k2aUpvWUd4VHVoNittSDJZZ3ExbHZGRE4v
22
+ NTh5YVRHTVFINzNRYVJjZjVnak9IMkJSQTlkUWRzWUgKYTNZYnMrbGxwVlYv
23
+ ZC9kMklaYyt2RU9tc21rTFpVeEhzZFdQSTZsWTBuYXJwU2RxNHNML0lXWWZP
24
+ aW1ocFFTWgpTV0t5WHg5cjM4UFpZZ0Q3djIydjloNTZkcUpQZFFPY29OODhF
25
+ NkE4YTdQWTcvL1RweWdTREtuSldudkFwS1JxCjNCN0xMaFNkOTRQMHdRcGow
26
+ MS9sb05Nd0FCMytGQjRRQ0UrdG1QeFYxZ1Q2ZWE4VW1SNjQrcGZKTFN0NGl5
27
+ N0gKVGc5OTdCZFZqaURJdG5SYzhCSXNjVFl4S2JRai9wTEhBZ01CQUFHamdZ
28
+ NHdnWXN3Q1FZRFZSMFRCQUl3QURBTApCZ05WSFE4RUJBTUNCTEF3SFFZRFZS
29
+ ME9CQllFRk5McjBmZ1BmdnlWK0VneEVGRHhVcVFhU2xScE1DZ0dBMVVkCkVR
30
+ UWhNQitCSFhObGJuTjFMWEJzZFdkcGJrQnpaVzV6ZFMxd2JIVm5hVzV6TG1s
31
+ dk1DZ0dBMVVkRWdRaE1CK0IKSFhObGJuTjFMWEJzZFdkcGJrQnpaVzV6ZFMx
32
+ d2JIVm5hVzV6TG1sdk1BMEdDU3FHU0liM0RRRUJCUVVBQTRJQgpBUUNQZTZ0
33
+ RUJ0NS9uQzk1aFhvS2VLRmhrWVc5bTE2aU5YdWRKeEorZGRYcnpDc2tEMXk2
34
+ ajZjQXY0a1FlUDFmClBIbDE4aDVrOWtKeElQU1IrcUkrK2JJbDE3ZUVPU096
35
+ YXNMbXdzdGFNU25NN3U1UWZMcFdFWTJldVZXQkRzdGQKMmhrcG80VSswSzVT
36
+ d3ptZEphMFdLQXRmS3ZkdENROGk5MllJUCtIODNFdXZDU0xwZ29aaDYzRXJx
37
+ dVFVY25lbgphZmg1bHVUQkExaTFjcUJHNEFNSjBmTFdHeU9xSmFYOFA5WnN4
38
+ RERXUEVCbk5TaVd2WGIrSUttSkFWTzF1VzRrClFOODNielZXU1d1bFk4Qlk2
39
+ a1grSVFNd1lhelpBbEIvMTNkN2E4VTBoN0NyYjM2Sm5TUGF0aHVSemU0cUtY
40
+ RlEKM2YzVFVaV3d2UmZ0Y1N1K3Z0Y0JSa00wCi0tLS0tRU5EIENFUlRJRklD
41
+ QVRFLS0tLS0K
42
+ date: 2016-02-07 00:00:00.000000000 Z
43
+ dependencies:
44
+ - !ruby/object:Gem::Dependency
45
+ name: sensu-plugin
46
+ requirement: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - '='
49
+ - !ruby/object:Gem::Version
50
+ version: 1.2.0
51
+ type: :runtime
52
+ prerelease: false
53
+ version_requirements: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - '='
56
+ - !ruby/object:Gem::Version
57
+ version: 1.2.0
58
+ - !ruby/object:Gem::Dependency
59
+ name: bundler
60
+ requirement: !ruby/object:Gem::Requirement
61
+ requirements:
62
+ - - ~>
63
+ - !ruby/object:Gem::Version
64
+ version: '1.7'
65
+ type: :development
66
+ prerelease: false
67
+ version_requirements: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ~>
70
+ - !ruby/object:Gem::Version
71
+ version: '1.7'
72
+ - !ruby/object:Gem::Dependency
73
+ name: codeclimate-test-reporter
74
+ requirement: !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - - ~>
77
+ - !ruby/object:Gem::Version
78
+ version: '0.4'
79
+ type: :development
80
+ prerelease: false
81
+ version_requirements: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - ~>
84
+ - !ruby/object:Gem::Version
85
+ version: '0.4'
86
+ - !ruby/object:Gem::Dependency
87
+ name: github-markup
88
+ requirement: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - ~>
91
+ - !ruby/object:Gem::Version
92
+ version: '1.3'
93
+ type: :development
94
+ prerelease: false
95
+ version_requirements: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - ~>
98
+ - !ruby/object:Gem::Version
99
+ version: '1.3'
100
+ - !ruby/object:Gem::Dependency
101
+ name: pry
102
+ requirement: !ruby/object:Gem::Requirement
103
+ requirements:
104
+ - - ~>
105
+ - !ruby/object:Gem::Version
106
+ version: '0.10'
107
+ type: :development
108
+ prerelease: false
109
+ version_requirements: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - ~>
112
+ - !ruby/object:Gem::Version
113
+ version: '0.10'
114
+ - !ruby/object:Gem::Dependency
115
+ name: rake
116
+ requirement: !ruby/object:Gem::Requirement
117
+ requirements:
118
+ - - ~>
119
+ - !ruby/object:Gem::Version
120
+ version: '10.5'
121
+ type: :development
122
+ prerelease: false
123
+ version_requirements: !ruby/object:Gem::Requirement
124
+ requirements:
125
+ - - ~>
126
+ - !ruby/object:Gem::Version
127
+ version: '10.5'
128
+ - !ruby/object:Gem::Dependency
129
+ name: redcarpet
130
+ requirement: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - ~>
133
+ - !ruby/object:Gem::Version
134
+ version: '3.2'
135
+ type: :development
136
+ prerelease: false
137
+ version_requirements: !ruby/object:Gem::Requirement
138
+ requirements:
139
+ - - ~>
140
+ - !ruby/object:Gem::Version
141
+ version: '3.2'
142
+ - !ruby/object:Gem::Dependency
143
+ name: rubocop
144
+ requirement: !ruby/object:Gem::Requirement
145
+ requirements:
146
+ - - ~>
147
+ - !ruby/object:Gem::Version
148
+ version: '0.37'
149
+ type: :development
150
+ prerelease: false
151
+ version_requirements: !ruby/object:Gem::Requirement
152
+ requirements:
153
+ - - ~>
154
+ - !ruby/object:Gem::Version
155
+ version: '0.37'
156
+ - !ruby/object:Gem::Dependency
157
+ name: rspec
158
+ requirement: !ruby/object:Gem::Requirement
159
+ requirements:
160
+ - - ~>
161
+ - !ruby/object:Gem::Version
162
+ version: '3.4'
163
+ type: :development
164
+ prerelease: false
165
+ version_requirements: !ruby/object:Gem::Requirement
166
+ requirements:
167
+ - - ~>
168
+ - !ruby/object:Gem::Version
169
+ version: '3.4'
170
+ - !ruby/object:Gem::Dependency
171
+ name: yard
172
+ requirement: !ruby/object:Gem::Requirement
173
+ requirements:
174
+ - - ~>
175
+ - !ruby/object:Gem::Version
176
+ version: '0.8'
177
+ type: :development
178
+ prerelease: false
179
+ version_requirements: !ruby/object:Gem::Requirement
180
+ requirements:
181
+ - - ~>
182
+ - !ruby/object:Gem::Version
183
+ version: '0.8'
184
+ description: Sensu plugins for UPS units
185
+ email: <sensu-users@googlegroups.com>
186
+ executables:
187
+ - check-apcupsd-bcharge.rb
188
+ - check-apcupsd-timeleft.rb
189
+ - check-nut.rb
190
+ - metrics-nut.rb
191
+ extensions: []
192
+ extra_rdoc_files: []
193
+ files:
194
+ - CHANGELOG.md
195
+ - LICENSE
196
+ - README.md
197
+ - bin/check-apcupsd-bcharge.rb
198
+ - bin/check-apcupsd-timeleft.rb
199
+ - bin/check-nut.rb
200
+ - bin/metrics-nut.rb
201
+ - lib/sensu-plugins-ups.rb
202
+ - lib/sensu-plugins-ups/version.rb
203
+ homepage: https://github.com/sensu-plugins/sensu-plugins-ups
204
+ licenses:
205
+ - MIT
206
+ metadata:
207
+ maintainer: sensu-plugin
208
+ development_status: active
209
+ production_status: unstable - testing recommended
210
+ release_draft: 'false'
211
+ release_prerelease: 'false'
212
+ post_install_message: You can use the embedded Ruby by setting EMBEDDED_RUBY=true
213
+ in /etc/default/sensu
214
+ rdoc_options: []
215
+ require_paths:
216
+ - lib
217
+ required_ruby_version: !ruby/object:Gem::Requirement
218
+ requirements:
219
+ - - ! '>='
220
+ - !ruby/object:Gem::Version
221
+ version: 1.9.3
222
+ required_rubygems_version: !ruby/object:Gem::Requirement
223
+ requirements:
224
+ - - ! '>='
225
+ - !ruby/object:Gem::Version
226
+ version: '0'
227
+ requirements: []
228
+ rubyforge_project:
229
+ rubygems_version: 2.4.5
230
+ signing_key:
231
+ specification_version: 4
232
+ summary: Sensu plugins for UPS units
233
+ test_files: []
metadata.gz.sig ADDED
Binary file