We study confined scattering of a quantum particle by two centers fixed on the longitudinal axis of a harmonic-waveguide-like trap. The conditions of confinement-induced resonances (CIRs) appearing in these systems, when scattering cross section approaches the unitary limit, are derived for a regularized pseudopotential describing particle interaction with scattering centers. In the limit of a single center, the position of CIR for an even state tends to the well-known result obtained by Olshanii [Phys. Rev. Lett. 81, 938 (1998)PRLTAO0031-900710.1103/PhysRevLett.81.938]. Our result can be applicable to confined atomic scattering by fixed impurities, such as ions or Rydberg atoms, with possible extension to N impurities, or by two-atomic molecules. © 2019 American Physical Society.