· 6 years ago · May 22, 2019, 10:42 PM
1administrator@aegis:~$ sudo cat /home/administrator/aegis/logs/aegis-vappliance-configuration_2019-May-22_182840.log
2
3#######
4#######
5#######
6
7---------------------------------------------
8AEGIS Virtual Appliance Configuration Script
9---------------------------------------------
10
11Full configuration log is /home/administrator/aegis/logs/aegis-vappliance-configuration_2019-May-22_182840.log
12#######
13#######
14#######
15
16Starting configuration proccess...
17
181. Network configuration
19Checking current network parameters...
20Hostname: aegis
21Type: dhcp is currently used for interface eth0
22IP address: 192.168.40.129
23Netmask: 255.255.255.0
24Gateway: 192.168.40.2
25DNS Servers:
26nameserver 192.168.40.2
27Do you want to change current network configuration?:
28[Enter Y or N]> Skipping network configuration...
29
302. Network Connectivity
31Testing network connectivity...
32
33Test 1: Testing access to receiver.changedynamix.io...
34 % Total % Received % Xferd Average Speed Time Time Time Current
35 Dload Upload Total Spent Left Speed
36 0 48 0 0 0 0 0 0 --:--:-- 0:00:05 --:--:-- 0
37HTTP/1.1 405 Method Not Allowed
38Date: Wed, 22 May 2019 22:32:34 GMT
39Content-Type: text/plain; charset=UTF-8
40Content-Length: 48
41Connection: keep-alive
42Allow: POST
43Server: akka-http/10.1.3
44
45Test 1: Ok, successfully connected to receiver.changedynamix.io
46
47Test 2: Testing access to nexus.changedynamix.io...
48 % Total % Received % Xferd Average Speed Time Time Time Current
49 Dload Upload Total Spent Left Speed
50 0 5596 0 0 0 0 0 0 --:--:-- 0:00:05 --:--:-- 0
51HTTP/1.1 200 OK
52Date: Wed, 22 May 2019 22:32:39 GMT
53Content-Type: text/html
54Content-Length: 5596
55Connection: keep-alive
56Server: Nexus/3.5.2-01 (OSS)
57X-Frame-Options: SAMEORIGIN
58X-Content-Type-Options: nosniff
59Last-Modified: Wed, 22 May 2019 22:32:39 GMT
60Pragma: no-cache
61Cache-Control: post-check=0, pre-check=0
62Expires: 0
63
64Test 2: Ok, successfully connected to nexus.changedynamix.io
65
663. AEGIS Configuration
67Starting AEGIS configuration...
68[Enter your AEGIS Api Key]:
69> Configuring new AEGIS Api Key...
70
71AEGIS Api Key configured...ok
72
73[Enter your AEGIS Secret Key]:
74> Configuring new AEGIS Secret Key...
75
76AEGIS Secret Key configured...ok
77
78[Enter your AEGIS Public Key]:
79> Configuring new AEGIS Public Key...
80
81AEGIS Public Key configured...ok
82
83[Enter AEGIS Receiver URL - unless provided another URL accept default]
84[Default AEGIS Receiver URL: https://receiver.changedynamix.io ]> Configuring new receiver URL...
85
86New receiver URL configured...ok
87
88[Enter AEGIS Monitoring URL - unless provided another URL accept default]
89[Default AEGIS Monitoring URL: https://monitoring.changedynamix.io/v1 ]> Configuring new monitoring URL...
90
91New monitoring URL configured...ok
92
934. Data Aggregator Configuration
94Do you want to configure Aegis Data Aggregator?:
95[Enter Y or N]> Starting Data Aggregator Configuration...
96Please enter Data Aggregator Unique ID:
97Example: RO-CDXCORP1
98> Configuring Data Aggregator Unique ID...
99
100New Data Aggregator Unique ID......ok
101
102Enter Data Aggregator Description:
103Example: CDX Corp - Royal Oak, MI - Aggregator
104> Configuring Data Aggregator Description...
105
106Data Aggregator Description configured...ok
107
108Enter DNS Server for Data Aggregator:
109Important: only one DNS server can be configured
110> Enter DNS Server for Data Aggregator:
111Important: only one DNS server can be configured
112> Configuring DNS Server for Data Aggregator...
113
114Data Aggregator DNS configured...ok
115
116Checking for Data Aggregator updates...
117latest-release: Pulling from changedynamix/data-aggregator
118Digest: sha256:76abab543a0893b5af036a48ddbb6b7e3c40ab9670203c39e51c4b5924745b34
119Status: Image is up to date for docker-official.changedynamix.io/changedynamix/data-aggregator:latest-release
120Data Aggregator updates done...ok!
121Configuring Data Aggregator automatic startup...
122Data Aggregator automatic startup configuration done...ok
123Data Aggregator configuration done...ok
124
125Data Aggregator started...ok
126[
127 {
128 "Id": "27ab61b108a8ad559569f0bb0c8252d453989b0478c81d77334316e4f1d1a87b",
129 "Created": "2019-05-22T22:33:53.297668379Z",
130 "Path": "/opt/docker/runit.sh",
131 "Args": [
132 "--host",
133 "0.0.0.0",
134 "--port",
135 "5555",
136 "--batchTime",
137 "60",
138 "--dns",
139 "8.8.8.8",
140 "--receiver",
141 "https://dev-receiver.changedynamix.io",
142 "--uniqueId",
143 "monitoring-system-aggregator-bohdana",
144 "--monitoring",
145 "https://0ar23jlvjc.execute-api.us-west-2.amazonaws.com/dev",
146 "--apiKey",
147 "f27df52b85595e2509a9f5316dc76ac2cb42c6486692c9f3bb696864",
148 "--secretKey",
149 "693F66214F327A76785550413A5E253C3E6D70657A217B4155407A666A305876477B68495A2F5D36",
150 "--publicKey",
151 "5A5832576F434D2D57367D667148464865326E3C4B74586B733C574C7A624E6355642D5239282E72",
152 "--description",
153 "Aggregator for testing of the monitoring system"
154 ],
155 "State": {
156 "Status": "running",
157 "Running": true,
158 "Paused": false,
159 "Restarting": false,
160 "OOMKilled": false,
161 "Dead": false,
162 "Pid": 19309,
163 "ExitCode": 0,
164 "Error": "",
165 "StartedAt": "2019-05-22T22:33:53.666595733Z",
166 "FinishedAt": "0001-01-01T00:00:00Z"
167 },
168 "Image": "sha256:d834f11b7093fffe45bf9bd6e574b98b27c1f39f0f02c5d97d08be22f9a03c97",
169 "ResolvConfPath": "/var/lib/docker/containers/27ab61b108a8ad559569f0bb0c8252d453989b0478c81d77334316e4f1d1a87b/resolv.conf",
170 "HostnamePath": "/var/lib/docker/containers/27ab61b108a8ad559569f0bb0c8252d453989b0478c81d77334316e4f1d1a87b/hostname",
171 "HostsPath": "/var/lib/docker/containers/27ab61b108a8ad559569f0bb0c8252d453989b0478c81d77334316e4f1d1a87b/hosts",
172 "LogPath": "/var/lib/docker/containers/27ab61b108a8ad559569f0bb0c8252d453989b0478c81d77334316e4f1d1a87b/27ab61b108a8ad559569f0bb0c8252d453989b0478c81d77334316e4f1d1a87b-json.log",
173 "Name": "/data-aggregator",
174 "RestartCount": 0,
175 "Driver": "aufs",
176 "Platform": "linux",
177 "MountLabel": "",
178 "ProcessLabel": "",
179 "AppArmorProfile": "docker-default",
180 "ExecIDs": null,
181 "HostConfig": {
182 "Binds": [
183 "/home/administrator/aegis/aegis_host_os_ip_address.txt:/data/host_os_ip_address:ro",
184 "/home/administrator/aegis/aegis_host_os_hostname.txt:/data/host_os_hostname:ro"
185 ],
186 "ContainerIDFile": "",
187 "LogConfig": {
188 "Type": "json-file",
189 "Config": {
190 "max-file": "5",
191 "max-size": "100m"
192 }
193 },
194 "NetworkMode": "default",
195 "PortBindings": {
196 "5555/tcp": [
197 {
198 "HostIp": "",
199 "HostPort": "5555"
200 }
201 ],
202 "5556/tcp": [
203 {
204 "HostIp": "",
205 "HostPort": "5556"
206 }
207 ],
208 "5557/tcp": [
209 {
210 "HostIp": "",
211 "HostPort": "5557"
212 }
213 ],
214 "8113/tcp": [
215 {
216 "HostIp": "",
217 "HostPort": "8113"
218 }
219 ]
220 },
221 "RestartPolicy": {
222 "Name": "unless-stopped",
223 "MaximumRetryCount": 0
224 },
225 "AutoRemove": false,
226 "VolumeDriver": "",
227 "VolumesFrom": null,
228 "CapAdd": null,
229 "CapDrop": null,
230 "Dns": [],
231 "DnsOptions": [],
232 "DnsSearch": [],
233 "ExtraHosts": null,
234 "GroupAdd": null,
235 "IpcMode": "shareable",
236 "Cgroup": "",
237 "Links": null,
238 "OomScoreAdj": 0,
239 "PidMode": "",
240 "Privileged": false,
241 "PublishAllPorts": false,
242 "ReadonlyRootfs": false,
243 "SecurityOpt": null,
244 "UTSMode": "",
245 "UsernsMode": "",
246 "ShmSize": 67108864,
247 "Runtime": "runc",
248 "ConsoleSize": [
249 0,
250 0
251 ],
252 "Isolation": "",
253 "CpuShares": 0,
254 "Memory": 0,
255 "NanoCpus": 0,
256 "CgroupParent": "",
257 "BlkioWeight": 0,
258 "BlkioWeightDevice": [],
259 "BlkioDeviceReadBps": null,
260 "BlkioDeviceWriteBps": null,
261 "BlkioDeviceReadIOps": null,
262 "BlkioDeviceWriteIOps": null,
263 "CpuPeriod": 0,
264 "CpuQuota": 0,
265 "CpuRealtimePeriod": 0,
266 "CpuRealtimeRuntime": 0,
267 "CpusetCpus": "",
268 "CpusetMems": "",
269 "Devices": [],
270 "DeviceCgroupRules": null,
271 "DiskQuota": 0,
272 "KernelMemory": 0,
273 "MemoryReservation": 0,
274 "MemorySwap": 0,
275 "MemorySwappiness": null,
276 "OomKillDisable": false,
277 "PidsLimit": 0,
278 "Ulimits": null,
279 "CpuCount": 0,
280 "CpuPercent": 0,
281 "IOMaximumIOps": 0,
282 "IOMaximumBandwidth": 0,
283 "MaskedPaths": [
284 "/proc/acpi",
285 "/proc/kcore",
286 "/proc/keys",
287 "/proc/latency_stats",
288 "/proc/timer_list",
289 "/proc/timer_stats",
290 "/proc/sched_debug",
291 "/proc/scsi",
292 "/sys/firmware"
293 ],
294 "ReadonlyPaths": [
295 "/proc/asound",
296 "/proc/bus",
297 "/proc/fs",
298 "/proc/irq",
299 "/proc/sys",
300 "/proc/sysrq-trigger"
301 ]
302 },
303 "GraphDriver": {
304 "Data": null,
305 "Name": "aufs"
306 },
307 "Mounts": [
308 {
309 "Type": "bind",
310 "Source": "/home/administrator/aegis/aegis_host_os_ip_address.txt",
311 "Destination": "/data/host_os_ip_address",
312 "Mode": "ro",
313 "RW": false,
314 "Propagation": "rprivate"
315 },
316 {
317 "Type": "bind",
318 "Source": "/home/administrator/aegis/aegis_host_os_hostname.txt",
319 "Destination": "/data/host_os_hostname",
320 "Mode": "ro",
321 "RW": false,
322 "Propagation": "rprivate"
323 }
324 ],
325 "Config": {
326 "Hostname": "27ab61b108a8",
327 "Domainname": "",
328 "User": "root",
329 "AttachStdin": false,
330 "AttachStdout": false,
331 "AttachStderr": false,
332 "ExposedPorts": {
333 "5555/tcp": {},
334 "5556/tcp": {},
335 "5557/tcp": {},
336 "8113/tcp": {}
337 },
338 "Tty": false,
339 "OpenStdin": false,
340 "StdinOnce": false,
341 "Env": [
342 "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
343 "LANG=C.UTF-8",
344 "JAVA_HOME=/docker-java-home/jre",
345 "JAVA_VERSION=8u131",
346 "JAVA_DEBIAN_VERSION=8u131-b11-2",
347 "CA_CERTIFICATES_JAVA_VERSION=20170531+nmu1"
348 ],
349 "Cmd": [
350 "--host",
351 "0.0.0.0",
352 "--port",
353 "5555",
354 "--batchTime",
355 "60",
356 "--dns",
357 "8.8.8.8",
358 "--receiver",
359 "https://dev-receiver.changedynamix.io",
360 "--uniqueId",
361 "monitoring-system-aggregator-bohdana",
362 "--monitoring",
363 "https://0ar23jlvjc.execute-api.us-west-2.amazonaws.com/dev",
364 "--apiKey",
365 "f27df52b85595e2509a9f5316dc76ac2cb42c6486692c9f3bb696864",
366 "--secretKey",
367 "693F66214F327A76785550413A5E253C3E6D70657A217B4155407A666A305876477B68495A2F5D36",
368 "--publicKey",
369 "5A5832576F434D2D57367D667148464865326E3C4B74586B733C574C7A624E6355642D5239282E72",
370 "--description",
371 "Aggregator for testing of the monitoring system"
372 ],
373 "Image": "docker-official.changedynamix.io/changedynamix/data-aggregator:latest-release",
374 "Volumes": null,
375 "WorkingDir": "/opt/docker",
376 "Entrypoint": [
377 "/opt/docker/runit.sh"
378 ],
379 "OnBuild": null,
380 "Labels": {}
381 },
382 "NetworkSettings": {
383 "Bridge": "",
384 "SandboxID": "eac3bf75db57fea91c2c8c8b095c9a4e6d9414e9ab1c2ffbfa9c52b155134360",
385 "HairpinMode": false,
386 "LinkLocalIPv6Address": "",
387 "LinkLocalIPv6PrefixLen": 0,
388 "Ports": {
389 "5555/tcp": [
390 {
391 "HostIp": "0.0.0.0",
392 "HostPort": "5555"
393 }
394 ],
395 "5556/tcp": [
396 {
397 "HostIp": "0.0.0.0",
398 "HostPort": "5556"
399 }
400 ],
401 "5557/tcp": [
402 {
403 "HostIp": "0.0.0.0",
404 "HostPort": "5557"
405 }
406 ],
407 "8113/tcp": [
408 {
409 "HostIp": "0.0.0.0",
410 "HostPort": "8113"
411 }
412 ]
413 },
414 "SandboxKey": "/var/run/docker/netns/eac3bf75db57",
415 "SecondaryIPAddresses": null,
416 "SecondaryIPv6Addresses": null,
417 "EndpointID": "bf527b9cbbfb347ee21074a309657d6bdef964f3333bd34d4e471f4520f814ba",
418 "Gateway": "172.17.0.1",
419 "GlobalIPv6Address": "",
420 "GlobalIPv6PrefixLen": 0,
421 "IPAddress": "172.17.0.2",
422 "IPPrefixLen": 16,
423 "IPv6Gateway": "",
424 "MacAddress": "02:42:ac:11:00:02",
425 "Networks": {
426 "bridge": {
427 "IPAMConfig": null,
428 "Links": null,
429 "Aliases": null,
430 "NetworkID": "0a73b12141b062251249b95a597feff1987a3bc8a1185b6e93959272656e4ff6",
431 "EndpointID": "bf527b9cbbfb347ee21074a309657d6bdef964f3333bd34d4e471f4520f814ba",
432 "Gateway": "172.17.0.1",
433 "IPAddress": "172.17.0.2",
434 "IPPrefixLen": 16,
435 "IPv6Gateway": "",
436 "GlobalIPv6Address": "",
437 "GlobalIPv6PrefixLen": 0,
438 "MacAddress": "02:42:ac:11:00:02",
439 "DriverOpts": null
440 }
441 }
442 }
443 }
444]
445No Data Aggregator restart needed.
4465. Network Monitor Configuration
447Do you want to configure Aegis Network Monitor?:
448[Enter Y or N]> Starting Network Monitor Configuration...
449Enter Data Aggregator IP address for Network Monitor
450Note. If Data Aggregator is running locally,
451you can enter eth0 IP address - 192.168.40.129:
452> Configuring Data Aggregator IP Address for Network Monitor...
453
454Data Aggregator IP Address for Network Monitor configured...ok
455
456Please enter Network Monitor Unique ID:
457Example: CDXCORP-Network-Monitor-1
458> Configuring Network Monitor Unique ID...
459
460Network Monitor Unique ID configured...ok
461
462Checking for Network Monitor updates...
463Using default tag: latest
464Error response from daemon: Get https://docker-official.changedynamix.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
465Something went wrong with the configuration, please check the log file /home/administrator/aegis/logs/aegis-vappliance-configuration_2019-May-22_182840.log for more information!
466administrator@aegis:~$