sensu-plugins-monit 0.0.1 → 0.0.2
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +7 -0
- data/README.md +1 -1
- data/bin/check-monit-status.rb +3 -15
- data/lib/sensu-plugins-monit/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +6 -20
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77339fe1f543c3daba9c7b79b9e944a4dd4360e7
|
4
|
+
data.tar.gz: 59de9d047ec60d563f78f1115ca02edee244c870
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d86ca2e87381cc1f1b9fe8bdb711860f5405e262fe3e0f625a9dfd83f44eaab729266234f748da02ef2255aef9b8bd3c48ba5d341035fce20fd410210f78d5a
|
7
|
+
data.tar.gz: a4135ae22a82f8742033d316014259c14a6689e931d231e9c1acf13b7eca0f85daa6f479e9a7ec978f7e4ee09893d982494078872a7fe4e28d674c131a82f56d
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,13 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
5
5
|
|
6
6
|
## Unreleased][unreleased]
|
7
7
|
|
8
|
+
## [0.0.3] - 2015-07-14
|
9
|
+
### Changed
|
10
|
+
- updated sensu-plugin gem to 1.2.0
|
11
|
+
|
12
|
+
### Removed
|
13
|
+
- Remove JSON gem dep that is not longer needed with Ruby 1.9+
|
14
|
+
|
8
15
|
## [0.0.1] - 2015-06-04
|
9
16
|
### Added
|
10
17
|
- initial release
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
## Sensu-Plugins-monit
|
2
2
|
|
3
|
-
[](https://travis-ci.org/sensu-plugins/sensu-plugins-monit)
|
3
|
+
[ ](https://travis-ci.org/sensu-plugins/sensu-plugins-monit)
|
4
4
|
[](http://badge.fury.io/rb/sensu-plugins-monit)
|
5
5
|
[](https://codeclimate.com/github/sensu-plugins/sensu-plugins-monit)
|
6
6
|
[](https://codeclimate.com/github/sensu-plugins/sensu-plugins-monit)
|
data/bin/check-monit-status.rb
CHANGED
@@ -62,15 +62,8 @@ class CheckMonit < Sensu::Plugin::Check::CLI
|
|
62
62
|
|
63
63
|
next if ignored.include? name
|
64
64
|
|
65
|
-
#
|
66
|
-
|
67
|
-
unknown "#{name} status unkown"
|
68
|
-
end
|
69
|
-
|
70
|
-
# #YELLOW
|
71
|
-
unless status == '0' # rubocop:disable IfUnlessModifier
|
72
|
-
critical "#{name} status failed"
|
73
|
-
end
|
65
|
+
unknown "#{name} status unkown" unless %w( 1 5 ).include? monitored
|
66
|
+
critical "#{name} status failed" unless status == '0'
|
74
67
|
end
|
75
68
|
|
76
69
|
ok 'All services OK'
|
@@ -79,12 +72,7 @@ class CheckMonit < Sensu::Plugin::Check::CLI
|
|
79
72
|
def monit_status
|
80
73
|
res = Net::HTTP.start(config[:host], config[:port]) do |http|
|
81
74
|
req = Net::HTTP::Get.new(config[:uri])
|
82
|
-
|
83
|
-
# #YELLOW
|
84
|
-
unless config[:user].nil? # rubocop:disable IfUnlessModifier
|
85
|
-
req.basic_auth config[:user], config[:pass]
|
86
|
-
end
|
87
|
-
|
75
|
+
req.basic_auth config[:user], config[:pass] unless config[:user].nil?
|
88
76
|
http.request(req)
|
89
77
|
end
|
90
78
|
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-monit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sensu-Plugins and contributors
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
8sHuVruarogxxKPBzlL2is4EUb6oN/RdpGx2l4254+nyR+abg//Ed27Ym0PkB4lk
|
31
31
|
HP0m8WSjZmFr109pE/sVsM5jtOCvogyujQOjNVGN4gz1wwPr
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2015-
|
33
|
+
date: 2015-07-14 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: sensu-plugin
|
@@ -38,28 +38,14 @@ dependencies:
|
|
38
38
|
requirements:
|
39
39
|
- - '='
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: 1.
|
41
|
+
version: 1.2.0
|
42
42
|
type: :runtime
|
43
43
|
prerelease: false
|
44
44
|
version_requirements: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - '='
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: 1.
|
49
|
-
- !ruby/object:Gem::Dependency
|
50
|
-
name: json
|
51
|
-
requirement: !ruby/object:Gem::Requirement
|
52
|
-
requirements:
|
53
|
-
- - '='
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
version: 1.8.3
|
56
|
-
type: :runtime
|
57
|
-
prerelease: false
|
58
|
-
version_requirements: !ruby/object:Gem::Requirement
|
59
|
-
requirements:
|
60
|
-
- - '='
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
version: 1.8.3
|
48
|
+
version: 1.2.0
|
63
49
|
- !ruby/object:Gem::Dependency
|
64
50
|
name: mail
|
65
51
|
requirement: !ruby/object:Gem::Requirement
|
@@ -136,14 +122,14 @@ dependencies:
|
|
136
122
|
requirements:
|
137
123
|
- - '='
|
138
124
|
- !ruby/object:Gem::Version
|
139
|
-
version:
|
125
|
+
version: 0.32.1
|
140
126
|
type: :development
|
141
127
|
prerelease: false
|
142
128
|
version_requirements: !ruby/object:Gem::Requirement
|
143
129
|
requirements:
|
144
130
|
- - '='
|
145
131
|
- !ruby/object:Gem::Version
|
146
|
-
version:
|
132
|
+
version: 0.32.1
|
147
133
|
- !ruby/object:Gem::Dependency
|
148
134
|
name: rspec
|
149
135
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
Binary file
|