Adding automatic calculation of memory warn/crit tresholds