Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pushing the shared custom folder into the agent host does not work correctly, If the agent belongs more than one group. #8593

Closed
Tracked by #2967
Amblikmees opened this issue May 10, 2021 · 4 comments · Fixed by #12516
Assignees
Labels
reporter/community type/bug Something isn't working

Comments

@Amblikmees
Copy link

Wazuh version Component Install type Install method Platform
4.1.5-1 Centralized configuration Manager Packages - All in one CentOS 7.9.2009

Agent host:
Wazuh-agent: 4.1.5-1
OS: CentOS 7.9.2009

I tried to share/push Yara rules (a folder that contains yara rules) from manager to the agent, which belongs to the default group by using /var/ossec/etc/shared/default folder for that. Everything worked well until I added the same agent to another group(Created one separate group for Linux hosts as well). After that, the shared yara rules folder became an empty file in the agent's machine.

Before( Agent belongs to the default group):
image

After( Agent belongs to the default and Linux group):
image

If i remove the agent from second group and restart Wazuh agent, then the empty file returns to the folder with its contents.

@pereyra-m pereyra-m added reporter/community type/bug Something isn't working labels May 10, 2021
@pereyra-m
Copy link
Member

Hello @Amblikmees !

Sorry to hear you are experiencing this issue.

I was able to confirm that it's possible to share a whole folder only if the agent belongs to one group. When you add the second one, then the folders become empty.

The only workaround I can suggest right now, it's to share the files outside the folder.

The team will check this as soon as possible.
Regards.

@Amblikmees
Copy link
Author

Hello @pereyra-m !
Thanks for the quick reply and hopefully Wazuh team will be able to fix it.
Until then, I'll be patient and wait for your feedback.

@Amblikmees
Copy link
Author

Hello, any updates ?

@pereyra-m
Copy link
Member

Hello !

I'm afraid I have no updates about this.
There is also a related issue #10181, we'll work on this as soon as possible.

Regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
reporter/community type/bug Something isn't working
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

5 participants