This paper deals with fluctuating line tracking, present on the so-called lofargram encountered in any passive sonar system. Considering such a line as a random walk modeled by a first-order Markov chain, we have recourse to the hidden Markov models (HMMs) arsenal. More precisely, we propose to track a frequency line with Viterbi and Forward-Backward algorithms. The originality of this work comes from the fact that a "probabilistic integration of the spectral power" approach allows us to construct a signal-to-noise (SNR)-knowledge-free method. Intensive simulations reveal no loss of performance.