Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
85b1580
feature: correlation offline mode to avoid rules update
javjodar Mar 7, 2025
7e71905
integrate dependencies from agent manager
Kbayero Mar 11, 2025
00a3e72
Add connection checker utility for AWS modules
yllada Mar 11, 2025
dcfa01e
Add connection checker utility for Bitdefender modules
yllada Mar 11, 2025
111a9bb
Change fatal logging to error for connection failures in AWS and Bitd…
yllada Mar 11, 2025
d7c4b51
add timeout
yllada Mar 11, 2025
a8bf2a2
Add connection checker utility for office 365 modules.
JocLRojas Mar 11, 2025
f97476b
Add connection checker utility for sophos module.
JocLRojas Mar 11, 2025
b2ca910
Include arm64 agents
Kbayero Mar 13, 2025
4197aa3
Merge branch 'bugfix/10.6.2/update_dependencies' of github.com:utmsta…
Kbayero Mar 13, 2025
79d1dee
update dependencies
Kbayero Mar 13, 2025
5b13f1b
update CI/CD pipelines
Kbayero Mar 13, 2025
2546878
remove arm builds
Kbayero Mar 17, 2025
616de08
fix message when there is no command output
Kbayero Mar 17, 2025
9b18bed
Merge branch 'main' into bugfix/10.6.2/update_dependencies
Kbayero Mar 17, 2025
da0a342
update version and changelog
Kbayero Mar 17, 2025
b628807
Update dependencies
Kbayero Mar 17, 2025
264b117
add connection mode
Kbayero Mar 17, 2025
09a53d1
include agent debugger, remove mTLS and fix module names
Kbayero Mar 20, 2025
8b3abdd
Solve problems between branches
Kbayero Mar 20, 2025
2323f12
add arm64 icons
Kbayero Mar 20, 2025
98e05e2
Update changelog
Kbayero Mar 20, 2025
73c65b8
change agent version
Kbayero Mar 21, 2025
9041c36
feat: update agent guides
mjabascal10 Mar 21, 2025
b3eaa85
feat: update agent guides
mjabascal10 Mar 21, 2025
2fb7cec
feat: update agent guides
mjabascal10 Mar 21, 2025
222af35
Merge remote-tracking branch 'origin/main' into bugfix/10.6.2/update_…
mjabascal10 Mar 21, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,7 @@ export class GuideLinuxAgentComponent implements OnInit {
@Input() serverId: number;
@Input() version: string;
token: string;

architectures = [
{
id: 1, name: 'Ubuntu 16/18/20+',
install: this.getCommandUbuntu('utmstack-linux-agent'),
uninstall: this.getUninstallCommand('utmstack-linux-agent'),
shell: ''
},
{
id: 2, name: 'Centos 7/Red Hat Enterprise Linux',
install: this.getCommandCentos7RedHat('utmstack-linux-agent'),
uninstall: this.getUninstallCommand('utmstack-linux-agent'),
shell: ''
},
{
id: 3, name: 'Centos 8/AlmaLinux',
install: this.getCommandCentos8Almalinux('utmstack-linux-agent'),
uninstall: this.getUninstallCommand('utmstack-linux-agent'),
shell: ''
}
];
architectures = [];

constructor(private federationConnectionService: FederationConnectionService) { }

Expand All @@ -49,51 +29,72 @@ export class GuideLinuxAgentComponent implements OnInit {
} else {
this.token = '';
}
this.loadArchitectures();
});
}

getCommandUbuntu(installerName: string): string {
const ip = window.location.host.includes(':') ? window.location.host.split(':')[0] : window.location.host;

return `sudo bash -c "apt update -y && apt install wget -y && mkdir -p /opt/utmstack-linux-agent && \
wget --no-check-certificate --header='connection-key: ${this.token}' -P /opt/utmstack-linux-agent \
wget --no-check-certificate --header='connection-key: <secret>${this.token}</secret>' -P /opt/utmstack-linux-agent \
https://${ip}:9001/private/dependencies/agent/${installerName} && \
chmod -R 777 /opt/utmstack-linux-agent/${installerName} && \
/opt/utmstack-linux-agent/${installerName} install ${ip} ${this.token} yes"`;
/opt/utmstack-linux-agent/${installerName} install ${ip} <secret>${this.token}</secret> yes"`;
}

getCommandCentos7RedHat(installerName: string): string {
const ip = window.location.host.includes(':') ? window.location.host.split(':')[0] : window.location.host;

return `sudo bash -c "yum install wget -y && mkdir -p /opt/utmstack-linux-agent && \
wget --no-check-certificate --header='connection-key: ${this.token}' -P /opt/utmstack-linux-agent \
wget --no-check-certificate --header='connection-key: <secret>${this.token}</secret>' -P /opt/utmstack-linux-agent \
https://${ip}:9001/private/dependencies/agent/${installerName} && \
chmod -R 777 /opt/utmstack-linux-agent/${installerName} && \
/opt/utmstack-linux-agent/${installerName} install ${ip} ${this.token} yes"`;
/opt/utmstack-linux-agent/${installerName} install ${ip} <secret>${this.token}</secret> yes"`;
}

getCommandCentos8Almalinux(installerName: string): string {
const ip = window.location.host.includes(':') ? window.location.host.split(':')[0] : window.location.host;

return `sudo bash -c "dnf install wget -y && mkdir -p /opt/utmstack-linux-agent && \
wget --no-check-certificate --header='connection-key: ${this.token}' -P /opt/utmstack-linux-agent \
wget --no-check-certificate --header='connection-key: <secret>${this.token}</secret>' -P /opt/utmstack-linux-agent \
https://${ip}:9001/private/dependencies/agent/${installerName} && \
chmod -R 777 /opt/utmstack-linux-agent/${installerName} && \
/opt/utmstack-linux-agent/${installerName} install ${ip} ${this.token} yes"`;
/opt/utmstack-linux-agent/${installerName} install ${ip} <secret>${this.token}</secret> yes"`;
}

getUninstallCommand(installerName: string): string {
return `sudo bash -c "/opt/utmstack-linux-agent/${installerName} uninstall || true; \
systemctl stop UTMStackAgent 2>/dev/null || true; systemctl disable UTMStackAgent 2>/dev/null || true; \
rm /etc/systemd/system/UTMStackAgent.service 2>/dev/null || true; systemctl stop UTMStackRedline 2>/dev/null || true; \
systemctl disable UTMStackRedline 2>/dev/null || true; rm /etc/systemd/system/UTMStackRedline.service 2>/dev/null || true; \
systemctl stop UTMStackUpdater 2>/dev/null || true; systemctl disable UTMStackUpdater 2>/dev/null || true; \
rm /etc/systemd/system/UTMStackUpdater.service 2>/dev/null || true; systemctl stop UTMStackModulesLogsCollector 2>/dev/null || true; \
systemctl disable UTMStackModulesLogsCollector 2>/dev/null || true; \
rm /etc/systemd/system/UTMStackModulesLogsCollector.service 2>/dev/null || true; \
systemctl daemon-reload 2>/dev/null || true; \
echo 'Removing UTMStack Agent dependencies...' && sleep 10 && rm -rf /opt/utmstack-linux-agent && \
echo 'UTMStack Agent dependencies removed successfully.'"`;
systemctl stop UTMStackAgent 2>/dev/null || true; systemctl disable UTMStackAgent 2>/dev/null || true; \
rm -f /etc/systemd/system/UTMStackAgent.service 2>/dev/null || true; \
systemctl stop UTMStackModulesLogsCollector 2>/dev/null || true; \
systemctl disable UTMStackModulesLogsCollector 2>/dev/null || true; \
rm -f /etc/systemd/system/UTMStackModulesLogsCollector.service 2>/dev/null || true; \
systemctl daemon-reload 2>/dev/null || true; \
echo 'Removing UTMStack Agent dependencies...' && sleep 10 && rm -rf /opt/utmstack-linux-agent 2>/dev/null || true; \
echo 'UTMStack Agent dependencies removed successfully.'"`;
}

private loadArchitectures() {
this.architectures = [
{
id: 1, name: 'Ubuntu 16/18/20+',
install: this.getCommandUbuntu('utmstack_agent_service'),
uninstall: this.getUninstallCommand('utmstack_agent_service'),
shell: ''
},
{
id: 2, name: 'Centos 7/Red Hat Enterprise Linux',
install: this.getCommandCentos7RedHat('utmstack_agent_service'),
uninstall: this.getUninstallCommand('utmstack_agent_service'),
shell: ''
},
{
id: 3, name: 'Centos 8/AlmaLinux',
install: this.getCommandCentos8Almalinux('utmstack_agent_service'),
uninstall: this.getUninstallCommand('utmstack_agent_service'),
shell: ''
}
];
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,7 @@ export class GuideWinlogbeatComponent implements OnInit {
token: string;
@Input() version: string;

architectures = [
{
id: 1, name: 'AMD64',
install: this.getCommand('utmstack_agent_service.exe'),
uninstall: this.getUninstallCommand('utmstack_agent_service.exe'),
shell: 'Windows Powershell terminal as “ADMINISTRATOR”'
},
{
id: 2, name: 'ARM64',
install: this.getCommand('utmstack_agent_service_arm64.exe'),
uninstall: this.getUninstallCommand('utmstack_agent_service_arm64.exe'),
shell: 'Windows Powershell terminal as “ADMINISTRATOR”'
}
];
architectures = [];

constructor(private federationConnectionService: FederationConnectionService) {
}
Expand All @@ -44,9 +31,27 @@ export class GuideWinlogbeatComponent implements OnInit {
} else {
this.token = '';
}
this.loadArchitectures();
});
}

loadArchitectures(){
this.architectures = [
{
id: 1, name: 'AMD64',
install: this.getCommand('utmstack_agent_service.exe'),
uninstall: this.getUninstallCommand('utmstack_agent_service.exe'),
shell: 'Windows Powershell terminal as “ADMINISTRATOR”'
},
{
id: 2, name: 'ARM64',
install: this.getCommand('utmstack_agent_service_arm64.exe'),
uninstall: this.getUninstallCommand('utmstack_agent_service_arm64.exe'),
shell: 'Windows Powershell terminal as “ADMINISTRATOR”'
}
];
}

getCommand(arch: string): string {
const ip = window.location.host.includes(':') ? window.location.host.split(':')[0] : window.location.host;

Expand Down
Loading