
Hi Raony,
Thanks for using our community!
This is error was reported back due to issues with vulnerability detector. Can you please share the Wazuh-manager version you are using ?
Usually taking the Wazuh-manager to the latest stable version fixes this issue, as vulnerability detector issues are fixed in our latest release.
So for example if you have Wazuh manager on 4.2.5 version, upgrading the manager to 4.2.7 should fix this issue, which is related to vulnerability detector generating segfault errors when receiving information from agents
If you run the following command after the API is failling:
/var/ossec/bin/wazuh-control status
You should see that wazuh-modulesd is not running.
Could you please share the actual manager version you are using ? I can refer to the exact steps you need to upgrade the manager that way. Below is a link to the upgrade guide for 4.2.X
https://documentation.wazuh.com/4.2/upgrade-guide/upgrading-wazuh.html
Take into account to solve this you would only need to upgrade the wazuh-manager package and the Wazuh Kibana plugin. No need to upgrade the other components.
Please test to disable vulnerability detector (if it is enabled) to test if API problem stops, this is acheived by editing /var/ossec/etc/ossec.confon the manager locate the vulnerability detector tag and put enabled in no as shown below
<vulnerability-detector>
<enabled>no</enabled>
Changing this is just a temporary fix to have the app running without failing, but ideally you need to upgrade to the latest stable version of your release.
Let me know if this helps
Regards!