Wazuh API installation

159 views
Skip to first unread message

Shreyaas Viishvak

unread,
Sep 27, 2019, 4:40:26 AM9/27/19
to wa...@googlegroups.com
Hi,
We are installing wazuh-manager by compiling from source (Unattended installation). Compiling from source will be done at local test machines.
We are not allowed to install gcc in production servers where wazuh-manager & api is going to be installed.
When we try to install the api, we get the "gcc not found" error. Is there any other way to install api? Or is there a way to bundle the api installation as well with the manager installation?

Wazuh Cluster Setup using OS CentOS7
Wazuh version: v10.0

Thanks in advance,
Shreyaas Viishvak V

Demetrio Ruiz

unread,
Sep 27, 2019, 6:41:39 AM9/27/19
to Wazuh mailing list
Hi Shreyaas Viishvak,

You can download our packages from https://documentation.wazuh.com/3.10/installation-guide/packages-list/index.html to avoid dependencies such as gcc. API package can be downloaded by following this link.

Below there are the steps that you have to follow for doing that (Wazuh API requires nodejs package):

1. # curl -o nodejs-10.16.3-1nodesource.x86_64.rpm https://rpm.nodesource.com/pub_10.x/el/7/x86_64/nodejs-10.16.3-1nodesource.x86_64.rpm
2. # curl -o wazuh-api-3.10.2-1.x86_64.rpm https://packages.wazuh.com/3.x/yum/wazuh-api-3.10.2-1.x86_64.rpm
3. # rpm -i nodejs-10.16.3-1nodesource.x86_64.rpm
4. # rpm -i wazuh-api-3.10.2-1.x86_64.rpm

You can check that API is working by executing the next command:
# curl -u foo:bar localhost:55000
{"error":0,"data":{"msg":"Welcome to Wazuh HIDS API","api_version":"v3.10.2","hostname":"73099960eff3","timestamp":"Fri Sep 27 2019 10:39:13 GMT+0000 (Coordinated Universal Time)"}}


Best regards,

Demetrio.
Reply all
Reply to author
Forward
0 new messages