Hello Alex,
The Sap note 1365123 - Installation of Diagnostics Agents
will answer the questions you have. It has an attachment that you can download and go through.
The presentation within the attached zip file explains the rules that need to be followed.
Regards,
Siddhesh