Monitoring system of the cockpit door