--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/98789a11-8730-43d2-9433-751c028523bcn%40googlegroups.com.
Hi Ranjith,
In Ubuntu the core dumps are handled by Apport and can be located in /var/crash/. But it is disabled by default in stable releases.
Apport service should be also started to capture core dumps
# systemd start apport.service
Crash files are located in the /var/crash directory and consist of a package that, not only contains the core dump file but also processes environment information about the event.
To obtain the specific core dump, the crash report can be unpacked by using apport-unpack
# cd /var/crash
# apport-unpack <dump-filename>.crash <outputdir>
<dump-filename> must be replaced by Apport crash file, that is the full path of the file where slashes (/) were replaced by underscores (_), plus an incremental counter.
For example, first wazuh-analysisd crash will create a report named _var_ossec_bin_wazuh-analysisd.0.crash
Core dump brief information can be obtained using file command
# file /var/crash/<outputdir>/Coredump
CoreDump: ELF 64-bit LSB core file, x86-64, version 1 (SYSV), SVR4-style, from '/var/ossec/bin/wazuh-analysisd', real uid: 0, effective uid: 0, real gid: 0, effective gid: 0, execfn: '/var/ossec/bin/wazuh-analysisd', platform: 'x86_64'
To know more about Apport see Apport Wiki.
Best regards
Hi Ranjith,
In order to detect where the problem occurs, it is important to install Wazuh by sources in debug mode.
To do this, follow the steps below:
Install the dependencies:
# apt-get update
# apt-get install python gcc g++ make libc6-dev curl policycoreutils automake autoconf libtool libssl-dev
CMake 3.18 installation
# curl -OL https://packages.wazuh.com/utils/cmake/cmake-3.18.3.tar.gz && tar -zxf cmake-3.18.3.tar.gz && cd cmake-3.18.3 && ./bootstrap --no-system-curl && make -j$(nproc) && make install
# cd .. && rm -rf cmake-*
Download and extract the latest version:
# curl -Ls https://github.com/wazuh/wazuh/archive/v4.3.4.tar.gz | tar zx
Compile Wazuh
# cd wazuh-4.3.4/src
# make deps
#make TARGET=server DEBUG=yes -jN
Change “N” for the number of threads that you want to use to compile
Install the manager
# ../install.sh
When the script asks what kind of installation you want, type manager to install the Wazuh manager:
1- What kind of installation do you want (manager, agent, local, hybrid, or help)? manager
Regards !
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/e58182b4-6478-45b1-b360-7d8150edc9efn%40googlegroups.com.