Allowing to show monitoring data without ingesting information

This commit is contained in:
Jesús Ángel González 2018-05-21 10:16:07 +02:00 committed by Jesús Ángel
parent c3f0f83683
commit 35d071ed16
2 changed files with 5 additions and 2 deletions

View File

@ -85,7 +85,10 @@
# ------------------------------ wazuh-monitoring ------------------------------
#
# Custom setting to enable/disable wazuh-monitoring indices.
# Default: enabled
# Values: true, false, worker
# If worker is given as value, the app will show the Agents status visualization but won't insert data
# on wazuh-monitoring indices
# Default: true
#wazuh.monitoring.enabled: true
#
# Custom setting to set the frequency for wazuh-monitoring indices cron task.

View File

@ -30,7 +30,7 @@ export default (server, options) => {
const configFile = getConfiguration();
ENABLED = configFile && typeof configFile['wazuh.monitoring.enabled'] !== 'undefined' ?
configFile['wazuh.monitoring.enabled'] :
configFile['wazuh.monitoring.enabled'] && configFile['wazuh.monitoring.enabled'] !== 'worker' :
ENABLED;
FREQUENCY = configFile && typeof configFile['wazuh.monitoring.frequency'] !== 'undefined' ?
configFile['wazuh.monitoring.frequency'] :