Self-sustained oscillations in the divertor plasma