This paper investigates the fixed-time (FXT) consensus issue for nonlinear multi-agent systems (MASs) via both event-triggered intermittent communication and sampled-data control. Firstly, combining the event-triggered mechanism and the centralized sampled-data control method, a new type of the event-triggered intermittent control protocol is devised, in which the auxiliary function is introduced to determine the control intervals of the protocol. Secondly, the centralized strategy, which requires obtaining the global information, may be difficult to apply in large-scale networks. Therefore, we design an intermittent communication protocol with the distributed sampled-data control strategy, in which the event-triggering condition is given only by using local neighbors' states. Furthermore, based on the Lyapunov stability theory, some sufficient conditions are obtained for achieving FXT consensus of MASs with the centralized and distributed sampled-data control strategies, and the Zeno phenomena are avoided. Finally, two examples are provided to verify the validity of the theoretical results.