Monitoring of safety-relevant flange gaskets