DEV Community

Sean Atukorala
Sean Atukorala

Posted on

Solution for 'wazuh-agentd: ERROR: Invalid server address found: 'MANAGER_IP''

Problem:

Running into the following error when trying to install wazuh-manager / wazuh-agent in Ubuntu 20.04:

Jun 08 17:06:38 sean-VirtualBox env[5409]: /var/ossec/bin/wazuh-logcollector
Jun 08 17:06:38 sean-VirtualBox env[5409]: /var/ossec/bin/wazuh-modulesd
Jun 08 17:06:38 sean-VirtualBox env[5409]: Starting Wazuh v4.3.4...
Jun 08 17:06:38 sean-VirtualBox env[5409]: wazuh-execd already running...
Jun 08 17:06:38 sean-VirtualBox env[5433]: 2022/06/08 17:06:38 wazuh-agentd: ERROR: (4112): Invalid server address found: 'MANAGER_IP'
Jun 08 17:06:38 sean-VirtualBox env[5433]: 2022/06/08 17:06:38 wazuh-agentd: CRITICAL: (1215): No client configured. Exiting.
Jun 08 17:06:38 sean-VirtualBox env[5409]: wazuh-agentd did not start
Enter fullscreen mode Exit fullscreen mode

Solution:

This error indicates that the server.address field in the /var/ossec/etc/ossec.conf file does not contain a valid IP address.

To fix this run the command sudo nano /var/ossec/etc/ossec.conf and change the server.address field to whatever you're server IP address is(127.0.0.1 in my case)

Here the section of the /var/ossec/etc/ossec.conf file where you need to make the change:

...
<client>
    <server>
      <address>127.0.0.1</address>
      <port>1514</port>
      <protocol>tcp</protocol>
    </server>
    <config-profile>ubuntu, ubuntu20, ubuntu20.04</config-profile>
    <notify_time>10</notify_time>
    <time-reconnect>60</time-reconnect>
    <auto_restart>yes</auto_restart>
    <crypto_method>aes</crypto_method>
</client>
...
Enter fullscreen mode Exit fullscreen mode

Hope this solves your issue!

Conclusion

Thanks for reading this blog post!

If you have any questions or concerns please feel free to post a comment in this post and I will get back to you when I find the time.

If you found this article helpful please share it and make sure to follow me on Twitter and GitHub, connect with me on LinkedIn and subscribe to my YouTube channel.

Top comments (0)