Risk based maintenance of petroleum pipelines door