As you are probably aware, I am fighting a war with squash vine borers.  After the bastards killed my winter squash last year, it was on.  For the record, they fired the first shot. This linked article from the Entomology Dept of the University of Kentucky explains how one can use daily temperature to calculate when particular little bastards arrive.  I've got my yellow pail among my most vulnerable plants.  I check the undersides of the leaves every couple of days for eggs.  I sprinkle DE powder and spray neem oil on the plants, approximately weekly.  I don't know if I've got this but dammit I like a good fight.