Flume-Configure multiple agents and integrate them

Hi,
How to access all 3 datanodes in order to configure separate flume agent on each.
Scenario: data from two datanodes will flow and combined on third datanode.