Coder Social home page Coder Social logo

Comments (5)

snaow avatar snaow commented on June 14, 2024 2

Hi,

The AWS integration is getting the value of /proc/sys/net/core/rmem_max in order to get the maximum socket buffer size.
rmem_max is kernel parameter that controls the maxium size of receive buffers used by sockets.

The source code lines involved are:


We will fix this for next versions, in case you want to make it work now, you can apply the following hot fix:

Get your current rmem_max value from your docker host:

[root@localhost vagrant]# cat /proc/sys/net/core/rmem_max
212992

Modify the source code to hardcode this parameter:

  • vi /var/ossec/wodles/aws/aws-s3
  • Replace the following content:
with open('/proc/sys/net/core/rmem_max', 'r') as kernel_param:
    max_queue_buffer = int(kernel_param.read().strip())

By:

max_queue_buffer = int(212992)`
  • Save changes

That's should be all, let us know how it goes.

Regards,
Pedro.

from wazuh-docker.

SitoRBJ avatar SitoRBJ commented on June 14, 2024

Hello @fillipejs and @snaow,

We are sorry for the delay.

The variable that caused problems in this section,

https://github.com/wazuh/wazuh/blob/master/wodles/aws/aws-s3.py#L782-L783

is no longer used.

The following PR fixes the AWS integration used in Docker: #1880

We are working on an alternative solution until the PR is accepted.

We will keep you informed. Thank you very much for your patience.

Best regards,

Alfonso Ruiz-Bravo

from wazuh-docker.

SitoRBJ avatar SitoRBJ commented on June 14, 2024

Hello @fillipejs and @snaow,

We have created a branch dedicated to integration with AWS. This is a temporary solution, until the corrected code is accepted and merged.

Branch: https://github.com/wazuh/wazuh-docker/tree/aws-integration-compatibility

Use: https://github.com/wazuh/wazuh-docker/blob/aws-integration-compatibility/Use.txt

We hope we have been helpful.

Thank you for your attention and for your patience.

Best regards,

Alfonso Ruiz-Bravo

from wazuh-docker.

SitoRBJ avatar SitoRBJ commented on June 14, 2024

Hello @fillipejs and @snaow,

The PR #69 solves the problem. This is a temporary solution, until the corrected code is accepted and merged.

Thank you for your attention and for your patience.

Regards,

Alfonso Ruiz-Bravo

from wazuh-docker.

jesuslinares avatar jesuslinares commented on June 14, 2024

We will continue this issue here: #68.

Thanks.

from wazuh-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.