We study the dynamics of a two-degrees-of-freedom (two-DOF) nonlinear oscillator representing a quarter-car model excited by a road roughness profile. Modeling the road profile by means of a harmonic function, we derive the Melnikov criterion for a system transition to chaos or escape. The analytically obtained estimations are confirmed by numerical simulations. To analyze the transient vibrations, we used recurrences.