A non-transitory computer-readable recording medium storing an optical transmission line monitoring program for causing one of two optical transmission line monitoring devices, facing each other and connected by an optical transmission line relayed by a relay, to execute
- a transmission process to transmit an own-device monitoring signal to the optical transmission line,
- a reception process to receive a monitoring signal in which a turnback monitoring signal and an other-device monitoring signal are mixed, the turnback monitoring signal being the own-device monitoring signal turned back through control by the relay, the other-device monitoring signal having a pulse width and an amplitude different from a pulse width and an amplitude of the own-device monitoring signal and being transmitted from an optical transmission line monitoring device facing the optical transmission line monitoring device,
- an identification process to identify the turnback monitoring signal and the other-device monitoring signal included in the monitoring signal by using identification criteria for identifying the turnback monitoring signal and the other-device monitoring signal from the monitoring signal, and
- an output process to output an identification result for the turnback monitoring signal and the other-device monitoring signal.