Measuring vibration of machine or workpiece or tool