Specifying the threshold for sending trap messages