fluent-diagtool 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/fluent/diagtool/diagutils.rb +12 -10
- data/lib/fluent/diagtool/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: def49b2ce5033b380cf1770e8cc7ba47d3d7cbc39d97416d3286a23fef5739ea
|
4
|
+
data.tar.gz: 8644215ae75aa21cc183d30619de216746415039e9369d892567dc39ec4aca41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95d719ede780fb2c02cc9d70ce9c4286ea230ee426fcc2804768327b12557c70ad435c96c674251901e8e9c601c8de55aeb15e54aa6cc6acd08ceb31e0a744eb
|
7
|
+
data.tar.gz: f1ca7c821fc7f2ee5fb34ba4470d4142d815acb9a4778045baae0c6f70fb414e0532bf2d316f0bb290983855277525f2f5be1dc1de32cc832d46f90b592a1cdc
|
data/Gemfile.lock
CHANGED
@@ -207,16 +207,18 @@ module Diagtool
|
|
207
207
|
###
|
208
208
|
diaglogger_info("[Collect] Collecting sysctl information...")
|
209
209
|
sysctl = c.collect_cmd_output("sysctl -a")
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
210
|
+
if sysctl
|
211
|
+
diaglogger_info("[Collect] sysctl information is stored in #{sysctl}")
|
212
|
+
|
213
|
+
diaglogger_info("[Valid] Validating sysctl information...")
|
214
|
+
ret, sysctl = v.valid_sysctl(sysctl)
|
215
|
+
list = sysctl.keys
|
216
|
+
list.each do |k|
|
217
|
+
if sysctl[k]['result'] == 'correct'
|
218
|
+
diaglogger_info("[Valid] Sysctl: #{k} => #{sysctl[k]['value']} is correct (recommendation is #{sysctl[k]['recommend']})")
|
219
|
+
elsif sysctl[k]['result'] == 'incorrect'
|
220
|
+
diaglogger_warn("[Valid] Sysctl: #{k} => #{sysctl[k]['value']} is incorrect (recommendation is #{sysctl[k]['recommend']})")
|
221
|
+
end
|
220
222
|
end
|
221
223
|
end
|
222
224
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-diagtool
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kubotat
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fileutils
|
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '0'
|
89
89
|
requirements: []
|
90
|
-
rubygems_version: 3.
|
90
|
+
rubygems_version: 3.5.3
|
91
91
|
signing_key:
|
92
92
|
specification_version: 4
|
93
93
|
summary: Diagnostic Tool for Fluentd
|