summaryrefslogtreecommitdiffstats
path: root/health
diff options
context:
space:
mode:
authorCosta Tsaousis <costa@tsaousis.gr>2018-12-02 22:04:05 +0200
committerGitHub <noreply@github.com>2018-12-02 22:04:05 +0200
commitb317b2cac0f13b590687ff06fc29d5995d086add (patch)
treeef404470276480ede94cad49be3a7e27c8fb0b97 /health
parent0b71a7738ce3d1e75d2c6687cfec402e364374e7 (diff)
added debug statements when loading health config files (#4896)
Diffstat (limited to 'health')
-rw-r--r--health/health_config.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/health/health_config.c b/health/health_config.c
index d4cf78d973..35fde90bc2 100644
--- a/health/health_config.c
+++ b/health/health_config.c
@@ -853,6 +853,9 @@ static int health_readfile(const char *filename, void *data) {
}
void health_readdir(RRDHOST *host, const char *user_path, const char *stock_path, const char *subpath) {
- if(unlikely(!host->health_enabled)) return;
+ if(unlikely(!host->health_enabled)) {
+ debug(D_HEALTH, "CONFIG health is not enabled for host '%s'", host->hostname);
+ return;
+ }
recursive_config_double_dir_load(user_path, stock_path, subpath, health_readfile, (void *) host, 0);
}