A mathematical model of the in-line control of the insulation resistance state for cathodically polarized main pipelines according to electrometry data is considered. The relevance of the work is caused by the opportunity to create in-line internal isolation defects indicators of the main pipelines for transported liquids that are good conductors and expand the functionality of monitoring and controlling cathodic protection systems of the main pipelines. Features of the mathematical model are: consideration of the electric conductivity of transported liquid influence on electric field distribution; consideration of the influence of external and internal insulating coating resistance; use of the electric field of an in-line diagnostic probe for quality control of internal insulation. Practical significance consists in the development of modeling methods for control subsystems of main pipeline protection against corrosion and the development of special mathematical and algorithmic support systems for monitoring and controlling the operating modes of the cathodic protection station of main pipelines.