简体   繁体   English

我如何在 windows 上激活 wazuh 代理,经理在 Ubuntu 虚拟机上

[英]how can i active wazuh agent on windows , the manager is on an Ubuntu virtual machine

i open VB with Ubuntu 22.04.1 LTS.我用 Ubuntu 22.04.1 LTS 打开 VB。 and install wazuh all in one.并安装 wazuh 合而为一。 after i log in to the elastic and add agent the problem start.在我登录弹性并添加代理后,问题就开始了。 It doesn't matter if I try to do it on another machine on my Windows or on a friend's Windows with a private network, it doesn't recognize the agent at all.如果我尝试在我的 Windows 或朋友的 Windows 上的另一台机器上使用专用网络进行操作,它根本无法识别代理。 i try my public and Private ip and nuthing.我尝试了我的公共和私人 ip 和 nuthing。

the agent code i do is:我做的代理代码是:

Invoke-WebRequest -Uri https://packages.wazuh.com/4.x/windows/wazuh-agent-4.3.6-1.msi -OutFile ${env:tmp}\wazuh-agent-4.3.6.msi; msiexec.exe /i ${env:tmp}\wazuh-agent-4.3.6.msi /q WAZUH_MANAGER='localhost' WAZUH_REGISTRATION_SERVER='localhost' WAZUH_AGENT_GROUP='default'

and after:之后:

NET START WazuhSvc

with my ip.And nothing happens.用我的 ip. 什么也没有发生。 Has anyone encountered this or can help?有没有人遇到过或者可以帮忙?

Checking your install and enrollment command we can see that you have set the WAZUH_REGISTRATION_SERVER to localhost.检查您的安装和注册命令,我们可以看到您已将 WAZUH_REGISTRATION_SERVER 设置为 localhost。 This should be replaced with your manager IP.这应该替换为您的经理 IP。 In order to do that in a deployed Windows agent like your case change the configuration file ( C:\Program Files (x86)\ossec-agent\ossec.conf ) replacing the manager IP with the real one.为了在部署的 Windows 代理中执行此操作,例如您的情况,请更改配置文件( C:\Program Files (x86)\ossec-agent\ossec.conf )将管理器 ZA12A3079E14CED426E69BA52B8A 替换为一个真实的。 For example:例如:

<address>192.168.1.17</address>

Finally, restart your wazuh-agent.最后,重新启动您的 wazuh-agent。

In order to deploy and enroll new agents please remember to replace the localhost value with your real wazuh manager host in the Wazuh server address step.为了部署和注册新代理,请记住在 Wazuh 服务器地址步骤中将 localhost 值替换为您的真实 wazuh 管理器主机。

Maybe you should go to this folder C:\Program Files (x86)\ossec-agent.也许你应该把 go 放到这个文件夹 C:\Program Files (x86)\ossec-agent。 and run win32ui as an admin, then click manage and restart the agent.并以管理员身份运行win32ui,然后单击管理并重新启动代理。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM