Aller au contenu principal

Wazuh Rest API

Prerequisites​

Centreon Plugin​

Install this plugin on each needed poller:

yum install centreon-plugin-Applications-Wazuh-Restapi

Centreon Configuration​

Create a host using the appropriate template​

Go to Configuration > Hosts and click Add. Then, fill the form as shown by the following table:

FieldValue
Host nameName of the host
AliasHost description
IPHost IP Address
Monitored fromMonitoring Poller to use
Host Multiple TemplatesApp-Wazuh-Restapi-custom

Click on the Save button.

Host Macro Configuration​

The following macros must be configured on host:

MacroDescriptionDefault value
WAZUHAPIPORTPort of the Wazuh API instance55000
WAZUHAPIPROTOProtocol used by the Wazuh APIhttps
WAZUHAPIUSERNAMEUsername to access Wazuh API
WAZUHAPIPASSWORDPassword to access Wazuh API

Click on the Save button.