Abstract: A method for measuring and controlling oscillations in a wind turbine with the wind turbine control system using spectrum analysis, to determine the existence and amplitude of vibrations on the basis of existing sensor/transducer signals relating to the characteristics of the electrical power output. The control system of the wind turbine is adapted to attenuate the oscillations before they reach an unacceptable level, and thereafter to cause the wind turbine to resume normal operation.