template: disk_fill_rate_1m
on: disk.space
- lookup: max -1s at -1m unaligned
+ lookup: max -1s at -1m unaligned of avail
calc: ($this - $avail) / (1 * 60)
every: 1m
warn: $this * 2 * 86400 > $avail
# during the last hour
template: disk_fill_rate_59m
on: disk.space
- lookup: max -1s at -59m unaligned
+ lookup: max -1s at -59m unaligned of avail
every: 1m
calc: ($this - $avail) / (59 * 60)
warn: $this * 2 * 86400 > $avail
int *group_method, int *after, int *before, int *every,
uint32_t *options, char **dimensions
) {
+ debug(D_HEALTH, "Health configuration parsing database lookup %zu@%s/%s: %s", line, path, file, string);
+
if(*dimensions) freez(*dimensions);
*dimensions = NULL;
*after = 0;
*dimensions = strdupz(s);
break;
}
+ else {
+ error("Health configuration at line %zu of file '%s/%s': unknown keyword '%s'",
+ line, path, file, key);
+ }
}
return 1;
error("Health for alarm '%s', failed to evaluate calculation with error: %s", rc->name,
buffer_tostring(rc->calculation->error_msg));
} else {
- debug(D_HEALTH, "Health for alarm '%s', calculation gave value "
- CALCULATED_NUMBER_FORMAT, rc->name, rc->calculation->result);
+ debug(D_HEALTH, "Health for alarm '%s', calculation expression gave value "
+ CALCULATED_NUMBER_FORMAT ": %s",
+ rc->name, rc->calculation->result,
+ buffer_tostring(rc->calculation->error_msg)
+ );
rc->value = rc->calculation->result;
}
}