From 5070dde5e0715d772a8b9fbe62e97f74d88013b7 Mon Sep 17 00:00:00 2001 From: tanguyvda Date: Mon, 14 Jun 2021 18:36:09 +0200 Subject: [PATCH] enable event dedup by default --- modules/centreon-stream-connectors-lib/sc_params.lua | 4 ++-- modules/docs/sc_param.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/centreon-stream-connectors-lib/sc_params.lua b/modules/centreon-stream-connectors-lib/sc_params.lua index 743c619a..fec7ef2e 100644 --- a/modules/centreon-stream-connectors-lib/sc_params.lua +++ b/modules/centreon-stream-connectors-lib/sc_params.lua @@ -61,8 +61,8 @@ function sc_params.new(common, logger) skip_nil_id = 1, -- enable or disable dedup - enable_host_status_dedup = 0, - enable_service_status_dedup = 0, + enable_host_status_dedup = 1, + enable_service_status_dedup = 1, -- communication parameters max_buffer_size = 1, diff --git a/modules/docs/sc_param.md b/modules/docs/sc_param.md index 4f17ac26..2f11310d 100644 --- a/modules/docs/sc_param.md +++ b/modules/docs/sc_param.md @@ -51,8 +51,8 @@ The sc_param module provides methods to help you handle parameters for your stre | ack_service_status | string | | | coma separated list of accepted service status for an acknowledgement event. It uses the service_status parameter by default (0 = OK, 1 = WARNING, 2 = CRITICAL, 3 = UNKNOWN) | acknowledgement(neb) | | | dt_host_status | string | | | coma separated list of accepted host status for a downtime event. It uses the host_status parameter by default (0 = UP, 1 = DOWN, 2 = UNREACHABLE) | downtime(neb) | | | dt_service_status | string | | | coma separated list of accepted service status for a downtime event. It uses the service_status parameter by default (0 = OK, 1 = WARNING, 2 = CRITICAL, 3 = UNKNOWN) | downtime(neb) | | -| enable_host_status_dedup | number | 0 | | enable the deduplication of host status event when set to 1 | host_status(neb) | | -| enable_service_status_dedup | number | 0 | | enable the deduplication of service status event when set to 1 | service_status(neb) | | +| enable_host_status_dedup | number | 1 | | enable the deduplication of host status event when set to 1 | host_status(neb) | | +| enable_service_status_dedup | number | 1 | | enable the deduplication of service status event when set to 1 | service_status(neb) | | | accepted_authors | string | | | coma separated list of accepted authors for a comment. It uses the alias (login) of the Centreon contacts | downtime(neb), acknowledgement(neb) | | | local_time_diff_from_utc | number | default value is the time difference the centreon central server has from UTC | | the time difference from UTC in seconds | all | | | timestamp_conversion_format | string | %Y-%m-%d %X | | the date format used to convert timestamps. Default value will print dates like this: 2021-06-11 10:43:38 | all | (date format information)[https://www.lua.org/pil/22.1.html] |