Check disk usage only if thresholds are defined.