check_disk 0.1.2 → 0.1.3
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/bin/check_disk.rb +3 -3
- data/lib/check_disk.rb +1 -1
- data/test/unit/sensu_plugin_helper.rb +1 -0
- data.tar.gz.sig +2 -2
- metadata +3 -3
- 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: 49f018b212e0d667aecaacd85fac5865b148b54f
|
4
|
+
data.tar.gz: 2679cbe60e1a9e5a592e44d5b7daf08248285cbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 963bcb0acc8eec3205aaba5cf3a0de70c0db1f97602692a58e1072e51de2107a31afbcbd92ff76204b559a9bed9571809f62eddd8d5f15728ee448d347bbbc8e
|
7
|
+
data.tar.gz: 1d6a5c70aebf56516533c5bf75845991379f0639feddf67dc1200baa36a185a7e7a2536858a7ed8ca9f5cb3e96c766979f1910a07a7d2a651b612b85b0943ee3
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/bin/check_disk.rb
CHANGED
@@ -60,8 +60,8 @@ module CheckDisk
|
|
60
60
|
|
61
61
|
def common_check(disk)
|
62
62
|
message(disk.message)
|
63
|
-
warning if disk.warning?
|
64
63
|
critical if disk.critical?
|
64
|
+
warning if disk.warning?
|
65
65
|
end
|
66
66
|
|
67
67
|
# Adds a `-p` or `--path` option to our CLI.
|
@@ -100,7 +100,7 @@ module CheckDisk
|
|
100
100
|
option(
|
101
101
|
:warning,
|
102
102
|
short: '-w PERCENT',
|
103
|
-
proc: proc
|
103
|
+
proc: proc(&:to_i),
|
104
104
|
default: 50,
|
105
105
|
description: 'The high water mark for `warning` alerts. eg; 50'
|
106
106
|
)
|
@@ -111,7 +111,7 @@ module CheckDisk
|
|
111
111
|
option(
|
112
112
|
:critical,
|
113
113
|
short: '-c PERCENT',
|
114
|
-
proc: proc
|
114
|
+
proc: proc(&:to_i),
|
115
115
|
default: 75,
|
116
116
|
description: 'The high water mark for `critical` alerts. eg; 75'
|
117
117
|
)
|
data/lib/check_disk.rb
CHANGED
data.tar.gz.sig
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
�n
|
1
|
+
.l�a5;��%���j3ڠ+�����W�3���7s^J���ܲ��t���8���}��n�˟�&B
|
2
|
+
_���K��-�6�_Yi�n��BW��(��uE��������ס�)�A\Ѷ�bx�M�^7UU���Q�H������e}�sKt�`�W��G!�;P}�t�e�KtH�Y
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: check_disk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miah Johnson
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
HceOUVz35kgamNj0WW4lNAHyZi7cS0MeI/0B/AGUkaG7gWvyGBAgr1gJ2+4kMmcY
|
31
31
|
vg9xNKI52TEvhr97dNRNTQ==
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date:
|
33
|
+
date: 2015-01-16 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: sensu-plugin
|
@@ -198,7 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
198
198
|
version: '0'
|
199
199
|
requirements: []
|
200
200
|
rubyforge_project:
|
201
|
-
rubygems_version: 2.
|
201
|
+
rubygems_version: 2.4.5
|
202
202
|
signing_key:
|
203
203
|
specification_version: 4
|
204
204
|
summary: Sensu CLI Command Check for disk inode and block usage.
|
metadata.gz.sig
CHANGED
Binary file
|