1) if the period of time for post-employment non-compete is unreasonably long. For instance, a six month period would certainly be reasonable, while a 5 year period would probably be unreasonable and therefore unenforceable.
2) if the geographical area is unreasonably large. For instance, if the agreement called for a person to non-compete in the same county, that would probably be reasonable. If the area was, say, the state of employment and all surrounding states, that would be an unreasonably large area and therefore unenforceable.