Methane is an easily burning and exploding gas. It is the primary component of many gas fuels such as mine gas and natural gas and so on. In the coal mine accidences of our country, the casualties caused by gas explosion covers over 50% in all great casualties, and it becomes the largest obstruction of safe production. Incident online detecting methane gas density has important significance for mine and plant safe production and personal safety. Based on the near infrared spectral absorption of methane, a system using absorption type optical fiber for high sensitivity methane detection is demonstrated in this paper. DFB LD is adopted as light source in this paper. Modulating the light source, methane gas is detected by second harmonic. The ratio of the fundamental and second harmonic signal can be used for eliminating the interference owing to light power changing. The mathematical model of gas concentration harmonic measurement is built up. The result of methane concentration is also shown. The system overcomes the defect of great interference of available instruments by light route. It has advantages such as high sensitivity, quick response speed, large dynamic range, preventing electromagnetic interference, preventing burning and explosion, not easily being poisoned and so on. The probe can be put in condition of easily burning and exploding, being poisonous being high temperature and so on that man and instrument can not easily enter. It can realize online continuous telecontrol and telemeter.