summaryrefslogtreecommitdiffstats
path: root/health
diff options
context:
space:
mode:
authorIlya Mashchenko <ilya@netdata.cloud>2023-10-06 14:14:15 +0300
committerGitHub <noreply@github.com>2023-10-06 14:14:15 +0300
commit003bb6d8d4249e1050689a7dae8b1fe5b676c450 (patch)
tree6feddc38a94a004c24c611c8fdd79b51d0a5371f /health
parent499e1923ebacd7aaf1214ecc21f7a1e6c930829e (diff)
health: don't log an unknown key error for "families" (#16145)
Diffstat (limited to 'health')
-rw-r--r--health/health_config.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/health/health_config.c b/health/health_config.c
index afc5747993..c9076e5a94 100644
--- a/health/health_config.c
+++ b/health/health_config.c
@@ -1029,8 +1029,15 @@ static int health_readfile(const char *filename, void *data) {
true);
}
else {
- netdata_log_error("Health configuration at line %zu of file '%s' for alarm '%s' has unknown key '%s'.",
- line, filename, rrdcalc_name(rc), key);
+ // "families" has become obsolete and has been removed from standard alarms, but some still have it:
+ // alarms of obsolete collectors (e.g. fping, wmi).
+ if (strcmp(key, "families"))
+ netdata_log_error(
+ "Health configuration at line %zu of file '%s' for alarm '%s' has unknown key '%s'.",
+ line,
+ filename,
+ rrdcalc_name(rc),
+ key);
}
}
else if(rt) {