From 00151562145df50cc65e9902d52d5fa77f89fe50 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 9 Jun 2022 06:52:47 +0200 Subject: Merging upstream version 1.35.0. Signed-off-by: Daniel Baumann --- health/health_config.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'health/health_config.c') diff --git a/health/health_config.c b/health/health_config.c index e1f5f0e31..df6d7b609 100644 --- a/health/health_config.c +++ b/health/health_config.c @@ -109,7 +109,7 @@ static inline int rrdcalctemplate_add_template_from_config(RRDHOST *host, RRDCAL && !strcmp(t->name, rt->name) && !strcmp(t->family_match?t->family_match:"*", rt->family_match?rt->family_match:"*") )) { - error("Health configuration template '%s' already exists for host '%s'.", rt->name, host->hostname); + info("Health configuration template '%s' already exists for host '%s'.", rt->name, host->hostname); return 0; } } @@ -127,7 +127,7 @@ static inline int rrdcalctemplate_add_template_from_config(RRDHOST *host, RRDCAL && !strcmp(t->name, rt->name) && !strcmp(t->family_match?t->family_match:"*", rt->family_match?rt->family_match:"*") )) { - error("Health configuration template '%s' already exists for host '%s'.", rt->name, host->hostname); + info("Health configuration template '%s' already exists for host '%s'.", rt->name, host->hostname); return 0; } } @@ -433,6 +433,9 @@ static inline int health_parse_db_lookup( else if(!strcasecmp(key, "unaligned")) { *options |= RRDR_OPTION_NOT_ALIGNED; } + else if(!strcasecmp(key, "anomaly-bit")) { + *options |= RRDR_OPTION_ANOMALY_BIT; + } else if(!strcasecmp(key, "match-ids") || !strcasecmp(key, "match_ids")) { *options |= RRDR_OPTION_MATCH_IDS; } -- cgit v1.2.3