These terms refer to the death of crops from either too little or too much rain.
A "locust" is a type of grasshopper that causes destruction. "caterpillar" refers to an early growth stage of the locust.