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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 567fb15f068514b74d43e1c530a54e2027f963a9
4
- data.tar.gz: b92812f3d6ba3ea415b0e7106a09e9b1e1c47da3
3
+ metadata.gz: d825b5491f37b10f5b93551e137b1bb575e62881
4
+ data.tar.gz: f021e79297fcf0b30c5c979b527f17d605955031
5
5
  SHA512:
6
- metadata.gz: 0bb9a4188bd5cb29c7a19512ede3e41f91b311ef90d383297f9ef8d601f23550aa328c333ab5651fbba83d9bfbe8ca0a122792e4619426894648ac80b8c99b85
7
- data.tar.gz: d6d040f0c82fd634fcdece594213bd58f9fae29abb175bd5ab491e54bcfd7ed255b5776f25fe373b70135c362990b45d6586736ff6640e9e3006a5733a3ab085
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.1] - 2015-04-21
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
- - deployment issue
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
+
@@ -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 @fs_info.respond_to?(:inodes) # needed for windows
101
- if percent_inodes(fs_info) >= config[:icrit]
102
- @crit_fs << "#{line.mount_point} #{percent_inodes}% inode usage"
103
- elsif percent_inodes(fs_info) >= config[:iwarn]
104
- @warn_fs << "#{line.mount_point} #{percent_inodes}% inode usage"
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
- if percent_bytes(fs_info) >= config[:bcrit]
108
- @crit_fs << "#{line.mount_point} #{percent_bytes}% bytes usage"
109
- elsif percent_bytes(fs_info) >= config[:bwarn]
110
- @warn_fs << "#{line.mount_point} #{percent_bytes}% bytes usage"
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
 
@@ -2,7 +2,7 @@ module SensuPluginsDiskChecks
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- PATCH = 2
5
+ PATCH = 4
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
data.tar.gz.sig CHANGED
@@ -1 +1,4 @@
1
- zQZ����GGS΢�^!n���=��0�}lRV�[��3�������Xӗ[��x�&A9�sxɞx�����:Yu^��ln� �I�T������a��ZO��E�W��=����<�Mݴ#ί= �F\Z1#���2Ԟ5��A�=�I������#1:UM�,�B��H�h�d�,�c
1
+ O`��+k��2̖VtV]
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.2
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-03 00:00:00.000000000 Z
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
- ��,oD�c����^���sK nl��X�=/ן������^ bM^�y�F/ز�������oE��P9c1���m I����Ϡ� �`��+\���EE?K��JH2��idPv
1
+ VAbu���ڵ]e����T/�5�T�gԼdH��>i�+�"Z�_�w�`�|Y�W��mj���Ѣ��kX������h�~�jE�,y��a��DM��6���7��&OE��8`yr�;4���Mxbs6���GgWwJ2��L}�)�˩=% o��~�9�#��8����-l�M��F\ܻ�>(��W�8ó��!-S +G�;2��6�Ob�(���Y2sl5�L Y���P�;�*8c���jH