@cryptotaxi247 / netdata-1 / commits / 001598a48

better messages for overlapping alarms

Costa Tsaousis (ktsaou) committed Apr 11, 2017 at 00:39 UTC 001598a48101ce8c413b450d327313de134015c2
2 files changed +2 -2
src/rrdcalc.c
+1 -1
@@ -219,7 +219,7 @@ inline int rrdcalc_exists(RRDHOST *host, const char *chart, const char *name, ui
219 for(rc = host->alarms; rc ; rc = rc->next) {
220 if (unlikely(rc->chart && rc->hash == hash_name && rc->hash_chart == hash_chart && !strcmp(name, rc->name) && !strcmp(chart, rc->chart))) {
221 debug(D_HEALTH, "Health alarm '%s.%s' already exists in host '%s'.", chart, name, host->hostname);
222 - error("Health alarm '%s.%s' already exists in host '%s'.", chart, name, host->hostname);
222 + info("Health alarm '%s.%s' already exists in host '%s'.", chart, name, host->hostname);
223 return 1;
224 }
225 }
src/rrdcalctemplate.c
+1 -1
@@ -12,7 +12,7 @@ void rrdcalctemplate_link_matching(RRDSET *st) {
12 && (!rt->family_pattern || simple_pattern_matches(rt->family_pattern, st->family))) {
13 RRDCALC *rc = rrdcalc_create(st->rrdhost, rt, st->id);
14 if(unlikely(!rc))
15 - error("Health tried to create alarm from template '%s', but it failed", rt->name);
15 + info("Health tried to create alarm from template '%s' on chart '%s' of host '%s', but it failed", rt->name, st->id, st->rrdhost->hostname);
16
17 #ifdef NETDATA_INTERNAL_CHECKS
18 else if(rc->rrdset != st)