wazuh-dashboard-plugins icon indicating copy to clipboard operation
wazuh-dashboard-plugins copied to clipboard

App settings: Values of `wazuh.monitoring.enabled` not correctly managed

Open Desvelao opened this issue 3 years ago • 1 comments

Wazuh Elastic Rev Security
4.x 7.x 4xxx Basic, ODFE, Xpack

Description The wazuh.monitoring.enabled app setting according to the documentation can take three controlled values: true, false, worker. For the worker case the Evolution visualization should be visible and the monitoring job should be disabled, but in the source code for the visualization only is checking the value for the setting is truthy (evaluation to true.

Moreover, the setting can't be configurated to the worker value because its control is a switch of 2 possible values image

Tasks

  • [ ] Evaluate how we want to manage this setting if we want to keep the 3 values or only 2 (to control if the job is running or not)
  • [ ] Apply the required fixes

Acceptance criteria

  • Define the strategy to apply and modify the app according to the decision

Note This issue could be affected by https://github.com/wazuh/wazuh-kibana-app/issues/3623

Desvelao avatar Sep 23 '21 11:09 Desvelao

The wazuh.monitoring.enabled should have 2 possible values, conceptually. So, we could think to create a new setting to get the same case of when the value is worker. For example, the new setting could control if the visualization should be rendered or not. This could be useful for environments with heavy Elasticsearch load.

Desvelao avatar May 17 '22 10:05 Desvelao