In this paper, we consider the output feedback event-triggered tracking control problem for a class of switched nonlinear multi-agent systems (MASs) with sensor faults and state constraints. For unknown nonlinear functions in the system, fuzzy logic systems are used to approximate them. To address sensor faults, sensor error compensation coefficients are designed to compensate for the errors caused by sensor faults. Meanwhile, state observer is designed to estimate the unmeasurable states in the system, providing necessary information for control design. Based on directed switching networks containing a directed spanning tree, an event-triggered output feedback controller is designed to enable the MAS to track the leader agent. By constructing a suitable barrier Lyapunov function, the stability of the system is analyzed, and it is proved that the consensus tracking can be achieved without violating the state constraints, the uniform boundedness of all the closed-loop system signals is ensured and the Zeno behavior can be eliminated. Finally, the effectiveness of the proposed algorithm is verified through a simulation example.