-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '4.6.0' of https://github.com/wazuh/wazuh-kibana-app int…
…o feat/4312-search-bar-replace-explore-agent-modal
- Loading branch information
Showing
51 changed files
with
1,880 additions
and
2,557 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
var path = context.request.path; | ||
var pathConfiguration = path.split('/'); | ||
pathConfiguration.splice(0, 5); | ||
console.log(pathConfiguration); | ||
switch (pathConfiguration[0]) { | ||
case 'labels': | ||
respond() | ||
.withStatusCode(200) | ||
.withFile('agents/configuration/agent_labels.json'); | ||
|
||
break; | ||
default: | ||
respond().withStatusCode(200).withFile('agents/configuration/default.json'); | ||
break; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"data": { | ||
"labels": [ | ||
{ | ||
"value": "customLabel", | ||
"key": "custom", | ||
"hidden": "no" | ||
} | ||
] | ||
}, | ||
"error": 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"data": { | ||
"client": { | ||
"config-profile": "ubuntu, ubuntu20, ubuntu20.04", | ||
"notify_time": 10, | ||
"time-reconnect": 60, | ||
"force_reconnect_interval": 0, | ||
"ip_update_interval": 0, | ||
"auto_restart": "yes", | ||
"remote_conf": "yes", | ||
"crypto_method": "aes", | ||
"server": [ | ||
{ | ||
"address": "nginx-lb/172.25.0.4", | ||
"port": 1514, | ||
"max_retries": 5, | ||
"retry_interval": 10, | ||
"protocol": "tcp" | ||
} | ||
], | ||
"enrollment": [ | ||
{ | ||
"enabled": "yes", | ||
"delay_after_enrollment": 20, | ||
"port": 1515, | ||
"ssl_cipher": "HIGH:!ADH:!EXP:!MD5:!RC4:!3DES:!CAMELLIA:@STRENGTH", | ||
"auto_method": "no" | ||
} | ||
] | ||
} | ||
}, | ||
"error": 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"data": { | ||
"affected_items": [ | ||
{ | ||
"labels": [ | ||
{ | ||
"value": "customLabel", | ||
"key": "custom", | ||
"hidden": "no" | ||
} | ||
] | ||
} | ||
], | ||
"total_affected_items": 1, | ||
"total_failed_items": 0, | ||
"failed_items": [] | ||
}, | ||
"message": "Active configuration was successfully read in specified node.", | ||
"error": 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
var path = context.request.path; | ||
var pathConfiguration = path.split('/'); | ||
pathConfiguration.splice(0, 4); | ||
switch (pathConfiguration[0]) { | ||
case 'labels': | ||
respond() | ||
.withStatusCode(200) | ||
.withFile('manager/configuration/agent_labels.json'); | ||
|
||
break; | ||
case 'reports': | ||
respond() | ||
.withStatusCode(200) | ||
.withFile('manager/configuration/monitor_reports.json'); | ||
|
||
break; | ||
default: | ||
respond() | ||
.withStatusCode(200) | ||
.withFile('manager/configuration/default.json'); | ||
break; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"data": { | ||
"affected_items": [ | ||
{ | ||
"labels": [ | ||
{ | ||
"value": "customLabel", | ||
"key": "custom", | ||
"hidden": "no" | ||
} | ||
] | ||
} | ||
], | ||
"total_affected_items": 1, | ||
"total_failed_items": 0, | ||
"failed_items": [] | ||
}, | ||
"message": "Active configuration was successfully read in specified node.", | ||
"error": 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"data": { | ||
"affected_items": [ | ||
{ | ||
"global": { | ||
"email_notification": "no", | ||
"logall": "no", | ||
"logall_json": "no", | ||
"integrity_checking": 8, | ||
"rootkit_detection": 8, | ||
"host_information": 8, | ||
"prelude_output": "no", | ||
"zeromq_output": "no", | ||
"jsonout_output": "yes", | ||
"alerts_log": "yes", | ||
"stats": 4, | ||
"memory_size": 8192, | ||
"white_list": [ | ||
"127.0.0.1", | ||
"80.58.61.250", | ||
"80.58.61.254", | ||
"localhost.localdomain" | ||
], | ||
"rotate_interval": 0, | ||
"max_output_size": 0 | ||
} | ||
} | ||
], | ||
"total_affected_items": 1, | ||
"total_failed_items": 0, | ||
"failed_items": [] | ||
}, | ||
"message": "Active configuration was successfully read in specified node", | ||
"error": 0 | ||
} |
16 changes: 16 additions & 0 deletions
16
docker/imposter/manager/configuration/monitor_reports.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"data": { | ||
"affected_items": [{ | ||
"reports": [{ | ||
"category": "syscheck", | ||
"title": "Daily report: File changes", | ||
"email_to": "example@test.com" | ||
}] | ||
}], | ||
"total_affected_items": 1, | ||
"total_failed_items": 0, | ||
"failed_items": [] | ||
}, | ||
"message": "Could not read active configuration in specified node", | ||
"error": 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.