Method and apparatus for monitoring an optical repeater