The article explores the issue of modeling a pipeline section, to determine the possibility of diagnosing the state of the pipeline walls, by analyzing the frequencies of natural vibrations. This method is considered as a possible alternative to in-line diagnostics of main pipelines. Frequency analysis allows to determine the defective state of the walls by reading vibrations with a vibration sensor located on the body of the pipeline.