A non-transitory computer-readable recording medium storing an optical transmission line monitoring program for causing an optical transmission line monitoring device connected by an optical transmission line via a relay to a second optical transmission line monitoring device, 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 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 the second 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.