added check_memory function

this function checks all pools and their usage over X percent