nfagent 0.9.13 → 0.9.15
Sign up to get free protection for your applications and to get access to all the features.
- data/Manifest.txt +1 -0
- data/lib/nfagent.rb +2 -1
- data/lib/nfagent/cli.rb +4 -0
- data/lib/nfagent/client.rb +1 -1
- data/lib/nfagent/config.rb +6 -7
- data/lib/nfagent/tests.rb +8 -0
- data/nfagent.conf +0 -1
- data/nfagent.init.ubuntu.txt +0 -2
- metadata +6 -5
data/Manifest.txt
CHANGED
data/lib/nfagent.rb
CHANGED
data/lib/nfagent/cli.rb
CHANGED
data/lib/nfagent/client.rb
CHANGED
@@ -3,7 +3,7 @@ module NFAgent
|
|
3
3
|
SERVICE_HOST = "collector.service.netfox.com"
|
4
4
|
|
5
5
|
def self.post(end_point, data_hash)
|
6
|
-
proxy_class = Net::HTTP::Proxy(Config.
|
6
|
+
proxy_class = Net::HTTP::Proxy(Config.http_proxy_host, Config.http_proxy_port, Config.http_proxy_user, Config.http_proxy_password)
|
7
7
|
# TODO: Enable SSL
|
8
8
|
proxy_class.start(SERVICE_HOST, 80) do |http|
|
9
9
|
http.read_timeout = 120 # 2 minutes TODO: Make this a config option with 120 as default
|
data/lib/nfagent/config.rb
CHANGED
@@ -1,15 +1,11 @@
|
|
1
1
|
module NFAgent
|
2
|
-
class Proxy
|
3
|
-
attr_accessor :host, :port, :user, :password
|
4
|
-
end
|
5
|
-
|
6
2
|
RBConfig = Config
|
7
3
|
|
8
4
|
class Config < SVUtil::Config
|
9
|
-
@@
|
5
|
+
@@test_mode = false
|
10
6
|
|
11
|
-
def self.
|
12
|
-
@@
|
7
|
+
def self.test_mode?
|
8
|
+
@@test_mode
|
13
9
|
end
|
14
10
|
|
15
11
|
class << self
|
@@ -31,6 +27,9 @@ module NFAgent
|
|
31
27
|
opts.on("-D", "--dump-dir [dir]", "Dump directory for failed chunks") do |dir|
|
32
28
|
Config.dump_dir = dir
|
33
29
|
end
|
30
|
+
opts.on("-T", "--test", "Run connection tests") do
|
31
|
+
@@test_mode = true
|
32
|
+
end
|
34
33
|
end
|
35
34
|
end
|
36
35
|
end
|
data/nfagent.conf
CHANGED
data/nfagent.init.ubuntu.txt
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 9
|
8
|
-
-
|
9
|
-
version: 0.9.
|
8
|
+
- 15
|
9
|
+
version: 0.9.15
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Daniel Draper
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-10-27 00:00:00 +10:30
|
18
18
|
default_executable: nfagent
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -68,9 +68,9 @@ dependencies:
|
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
segments:
|
70
70
|
- 2
|
71
|
-
-
|
71
|
+
- 4
|
72
72
|
- 0
|
73
|
-
version: 2.
|
73
|
+
version: 2.4.0
|
74
74
|
type: :development
|
75
75
|
version_requirements: *id004
|
76
76
|
description: Logging Agent for NetFox Online
|
@@ -105,6 +105,7 @@ files:
|
|
105
105
|
- lib/nfagent/client_response.rb
|
106
106
|
- lib/nfagent/config.rb
|
107
107
|
- lib/nfagent/tail.rb
|
108
|
+
- lib/nfagent/tests.rb
|
108
109
|
- lib/nfagent/submitter.rb
|
109
110
|
- bin/nfagent
|
110
111
|
- bin/squid_log_writer
|