This is the documentation for Wazuh 3.10. Check out the docs for the latest version of Wazuh!

HP-UX from sources

This guide describes how to install the Wazuh agent from source code for HP-UX. For other operating systems, please check the list: Install Wazuh agent.

Installing Wazuh agent

Note

All the commands described below need to be executed with root user privileges. Since Wazuh 3.5 it is necessary to have internet connection when following this process.

  1. Install development tools and compilers.

    1.1 Download the depothelper-2.10-hppa_32-11.31.depot file.

    # /usr/local/bin/wget https://github.com/wazuh/wazuh-packages/raw/master/hp-ux/depothelper-2.10-hppa_32-11.31.depot --no-check-certificate
    

    Note

    If you can’t download the script this way, then you should copy it through the scp utility.

    1.2 Install the package manager.

    # swinstall -s depothelper-2.10-hppa_32-11.31.depot \*
    

    1.3 Download the wget tool (If it is not installed).

    # /usr/local/bin/depothelper -f wget
    

    1.4 Download the following script

    # /usr/local/bin/wget https://raw.githubusercontent.com/wazuh/wazuh-packages/master/hp-ux/generate_wazuh_packages.sh --no-check-certificate
    

    Note

    If you can’t download the script this way, then you should copy it through the scp utility.

    1.5 Install the necessary dependencies using the script.

    # chmod +x generate_wazuh_packages.sh
    # ./generate_wazuh_packages.sh -e
    

    Note

    This step may take a long time.

  2. Download the latest version.

    # /usr/local/bin/curl -k -L -O https://github.com/wazuh/wazuh/archive/v3.10.2.zip && /usr/local/bin/unzip v3.10.2
    

    Note

    If you can’t download the repository this way, then you should copy it through the scp utility.

  3. Compile the sources.

    # cd wazuh-*
    # /usr/local/bin/gmake -C src deps RESOURCES_URL=http://packages.wazuh.com/deps/3.10
    # /usr/local/bin/gmake -C src TARGET=agent USE_SELINUX=no DISABLE_SHARED=yes
    
  4. Run the install.sh script. This will run a wizard that will guide you through the installation process using the Wazuh sources:

    # DISABLE_SHARED=yes ./install.sh
    

    If you have previously compiled for another platform, you must clean the build using the Makefile in src:

    # /usr/local/bin/gmake -C src clean-deps
    # /usr/local/bin/gmake -C src clean
    

    Note

    During the installation, users can decide the installation path. Execute the ./install.sh and select the language, set the installation mode to agent, then set the installation path (Choose where to install Wazuh [/var/ossec]). The default path of installation is /var/ossec. A commonly used custom path might be /opt. When choosing a different path than the default, if the directory already exist the installer will ask if delete the directory or if installing Wazuh inside. You can also run an unattended installation.

Now that the agent is installed, the next step is to register and configure it to communicate with the manager. For more information about this process, please visit the document: user manual.