sensu-plugins-disk-checks 0.0.2 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +13 -10
- data/bin/check-disk-usage.rb +11 -9
- data/lib/sensu-plugins-disk-checks/version.rb +1 -1
- data.tar.gz.sig +4 -1
- metadata +4 -4
- metadata.gz.sig +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d825b5491f37b10f5b93551e137b1bb575e62881
|
4
|
+
data.tar.gz: f021e79297fcf0b30c5c979b527f17d605955031
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ed1608c74756a10f2f52dc9c10afd76e174da80a11de40bc74df6d2a9aad5abeddc3e2c618ddcbad27fbc0d86c53a6a08ac3c0bbdbd06e9c315887f5916fc5c
|
7
|
+
data.tar.gz: 2ed0e3cc369f43b466d70ac25e5eb9c4a9a74aa9d3136cef34ad09e54a03e674617b718a86c4e55120a98e3430de9cd25de2c63b81fd5f49772a40d730b7f0cb
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -5,20 +5,23 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
5
5
|
|
6
6
|
## Unreleased][unreleased]
|
7
7
|
|
8
|
-
## [0.0.
|
9
|
-
|
10
|
-
### Added
|
11
|
-
- initial release
|
12
|
-
|
13
|
-
## [0.0.2] - 2015-04-21
|
14
|
-
|
8
|
+
## [0.0.4] - 2015-06-22
|
15
9
|
### Fixed
|
16
|
-
-
|
10
|
+
- Correct check of inodes method on object fs_info which was always returning false
|
17
11
|
|
18
12
|
## [0.0.3] - 2015-06-02
|
19
|
-
|
20
13
|
### Fixed
|
21
14
|
- added binstubs
|
22
15
|
|
23
16
|
### Changed
|
24
|
-
- removed cruft from /lib
|
17
|
+
- removed cruft from /lib
|
18
|
+
|
19
|
+
## [0.0.2] - 2015-04-21
|
20
|
+
### Fixed
|
21
|
+
- deployment issue
|
22
|
+
|
23
|
+
## [0.0.1] - 2015-04-21
|
24
|
+
### Added
|
25
|
+
- initial release
|
26
|
+
|
27
|
+
|
data/bin/check-disk-usage.rb
CHANGED
@@ -97,17 +97,19 @@ class CheckDisk < Sensu::Plugin::Check::CLI
|
|
97
97
|
|
98
98
|
def check_mount(line)
|
99
99
|
fs_info = Filesystem.stat(line.mount_point)
|
100
|
-
if
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
100
|
+
if fs_info.respond_to?(:inodes) # needed for windows
|
101
|
+
percent_i = percent_inodes(fs_info)
|
102
|
+
if percent_i >= config[:icrit]
|
103
|
+
@crit_fs << "#{line.mount_point} #{percent_i}% inode usage"
|
104
|
+
elsif percent_i >= config[:iwarn]
|
105
|
+
@warn_fs << "#{line.mount_point} #{percent_i}% inode usage"
|
105
106
|
end
|
106
107
|
end
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
108
|
+
percent_b = percent_bytes(fs_info)
|
109
|
+
if percent_b >= config[:bcrit]
|
110
|
+
@crit_fs << "#{line.mount_point} #{percent_b}% bytes usage"
|
111
|
+
elsif percent_b >= config[:bwarn]
|
112
|
+
@warn_fs << "#{line.mount_point} #{percent_b}% bytes usage"
|
111
113
|
end
|
112
114
|
end
|
113
115
|
|
data.tar.gz.sig
CHANGED
@@ -1 +1,4 @@
|
|
1
|
-
|
1
|
+
O`��+k��2̖V�tV]
|
2
|
+
4�=cU�э\�������F�~��I4�
|
3
|
+
����2_�sC�{� �O�KQ��zH!6���V�Ff;H\�u��gg%��\�q+��I��6+5��]�/���se�^��u�O9sAs!�D!H�j
|
4
|
+
� ����ﰨ��6Y�c��(lև�/Fn9�5��-/��p|�Y�r���v��6�/�n#2����O~z[�S
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-disk-checks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
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-06-
|
33
|
+
date: 2015-06-23 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: sys-filesystem
|
@@ -92,14 +92,14 @@ dependencies:
|
|
92
92
|
name: rubocop
|
93
93
|
requirement: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
|
-
- -
|
95
|
+
- - '='
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: '0.30'
|
98
98
|
type: :development
|
99
99
|
prerelease: false
|
100
100
|
version_requirements: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
|
-
- -
|
102
|
+
- - '='
|
103
103
|
- !ruby/object:Gem::Version
|
104
104
|
version: '0.30'
|
105
105
|
- !ruby/object:Gem::Dependency
|
metadata.gz.sig
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
V�Ab�u���ڵ]e����T/�5�T�gԼdH��>i�+�"Z�_�w�`�|Y�W��m�j���Ѣ��kX������h�~�jE�,y��a��DM��6���7��&OE��8`y�r�;4���Mx�bs6���GgWw�J2��L}�)�˩=% o��~�9�#��8����-l�M��F\ܻ�>(��W�8ó��!-S+G�;2��6�Ob�(���Y2sl5�LY���P�;�*8c���jH
|