panoptimon 0.4.2 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
data/collectors/disk/disk CHANGED
@@ -26,7 +26,7 @@ def stat_fs (mounts)
26
26
  block_size: l[1].to_i,
27
27
  blocks: l[2].to_i,
28
28
  blocks_free: l[3].to_i,
29
- blocks_available: l[4].to_i,
29
+ blocks_available: l[4].to_i, #blocks available to non-superuser
30
30
  files: l[5].to_i,
31
31
  files_available: l[6].to_i
32
32
  ).freeze
@@ -41,6 +41,7 @@ while(true) do
41
41
  space_used: GB((s.blocks - s.blocks_free) * s.block_size),
42
42
  space_free: GB(s.blocks_available * s.block_size),
43
43
  space_priv: GB((s.blocks_free - s.blocks_available) * s.block_size),
44
+ space_used_percentage: ((s.blocks - s.blocks_free) * 100.0 / (s.blocks - s.blocks_free + s.blocks_available)).round(2),
44
45
  files_used: s.files - s.files_available,
45
46
  files_free: s.files_available,
46
47
  }]
@@ -1 +1 @@
1
- {"interval" : 1}
1
+ {"interval" : 60}
@@ -1,5 +1,5 @@
1
1
  # Copyright (C) 2012 Sourcefire, Inc.
2
2
 
3
3
  module Panoptimon
4
- VERSION = "0.4.2"
4
+ VERSION = "0.4.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: panoptimon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-15 00:00:00.000000000 Z
12
+ date: 2013-09-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: eventmachine