DEV Community

Sean Atukorala
Sean Atukorala

Posted on

3 1

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.

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay