simple_host_monitoring 0.0.11 → 0.0.15

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: 6a64cfa3d62d4bba06a36e7e1ab2d70af099c6f8
4
- data.tar.gz: 956c649ef916638de656f5b9ce86ff221bf1b27f
3
+ metadata.gz: 8332dc600be56d00ff039e2e36c77627601df031
4
+ data.tar.gz: 2336d46b32ab96ca8f8791f657e65ab9087edd99
5
5
  SHA512:
6
- metadata.gz: f929de44841715a326064b0a89b52f85b02afeda5eccfc0305200b1da7321be210e0f9cd49385603e40079a8922a48e863dfcfd39bc6e3def3c0977940937840
7
- data.tar.gz: 3dee7a1c6bbb1ac3201e3dcf5d9d95260228cd379550da5a3cced3f480df45afab69d63bdded6f00fa4d30f45b83c0e98decfd1a03246f633bc22bd4469152fe
6
+ metadata.gz: df0d81b0ac0e3282bc42d7731f66b6de4beceddcd0aa5df9752b099846cf62e92090da339e6fdea49f1f2b2e5d842ba7f60df38d0d64d6e53eaff0c9f6310db8
7
+ data.tar.gz: 189ba5da723df2616602036b2397438b617605071941a76bfdcebf93685a862b4bb9bc2eb1b1173031a0043b20780eace3275d9ee8dfb2ed190ce5ed384f3554
data/lib/localhost.rb CHANGED
@@ -47,6 +47,16 @@ module BlackStack
47
47
  h.save
48
48
  end
49
49
 
50
+ #
51
+ def mem_load
52
+ 100.to_f*(self.mem_total.to_f - self.mem_free.to_f) / self.mem_total.to_f
53
+ end
54
+
55
+ #
56
+ def disk_load
57
+ 100.to_f*(self.disk_total.to_f - self.disk_free.to_f) / self.disk_total.to_f
58
+ end
59
+
50
60
  end # class LocalHost
51
61
 
52
62
  end # module BlackStack
@@ -1,7 +1,6 @@
1
1
  require 'blackstack_commons'
2
2
  require 'simple_command_line_parser'
3
3
  require 'simple_cloud_logging'
4
- #require 'pampa'
5
4
 
6
5
  require 'socket'
7
6
  require 'time'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_host_monitoring
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leandro Daniel Sardi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-22 00:00:00.000000000 Z
11
+ date: 2019-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: websocket
@@ -96,40 +96,40 @@ dependencies:
96
96
  requirements:
97
97
  - - "~>"
98
98
  - !ruby/object:Gem::Version
99
- version: 0.0.20
99
+ version: 0.0.24
100
100
  - - ">="
101
101
  - !ruby/object:Gem::Version
102
- version: 0.0.20
102
+ version: 0.0.24
103
103
  type: :runtime
104
104
  prerelease: false
105
105
  version_requirements: !ruby/object:Gem::Requirement
106
106
  requirements:
107
107
  - - "~>"
108
108
  - !ruby/object:Gem::Version
109
- version: 0.0.20
109
+ version: 0.0.24
110
110
  - - ">="
111
111
  - !ruby/object:Gem::Version
112
- version: 0.0.20
112
+ version: 0.0.24
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: simple_cloud_logging
115
115
  requirement: !ruby/object:Gem::Requirement
116
116
  requirements:
117
117
  - - "~>"
118
118
  - !ruby/object:Gem::Version
119
- version: 1.1.16
119
+ version: 1.1.22
120
120
  - - ">="
121
121
  - !ruby/object:Gem::Version
122
- version: 1.1.16
122
+ version: 1.1.22
123
123
  type: :runtime
124
124
  prerelease: false
125
125
  version_requirements: !ruby/object:Gem::Requirement
126
126
  requirements:
127
127
  - - "~>"
128
128
  - !ruby/object:Gem::Version
129
- version: 1.1.16
129
+ version: 1.1.22
130
130
  - - ">="
131
131
  - !ruby/object:Gem::Version
132
- version: 1.1.16
132
+ version: 1.1.22
133
133
  - !ruby/object:Gem::Dependency
134
134
  name: simple_command_line_parser
135
135
  requirement: !ruby/object:Gem::Requirement