Wazuh-agent on sensors doesn't work out of the box #1909
-
As the title says, when installing a sensor node, the Wazuh agent is installed with it, but is not configured. Had to do manual configuration as explained in the docs. Is this intended behavior or did something go wrong in my install? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Found in /opt/so/saltstack/default/salt/wazuh/files/agent/ossec.conf that ossec server IP is set to sensor:mainip if node role == 'so-sensor', meaning it will send it's logs to itself
should |
Beta Was this translation helpful? Give feedback.
-
I seem to have resolved the issue! |
Beta Was this translation helpful? Give feedback.
I seem to have resolved the issue!
One of the layers of the so-wazuh docker image was broken, causing a "filesystem layer verification failed" error on pull on any host apart from the manager node.
I fixed this by removing the blob causing the error in the so-dockerregistry container and running so-docker-refresh after that.
remove the blob:
docker exec -it so-dockerregistry rm -r /var/lib/registry/docker/registry/v2/blobs/sha256/5e/5ea8e7a03ae378b53e166ac59c4705abe322c04712ed2c30a40f0122a747e2c8/
garbage collection:
docker exec -it so-dockerregistry /bin/registry garbage-collect /var/lib/registry/etc/config.yml
Re-retrieve the docker images (to replace the removed layer):
sudo so-docker-…