run the duplicate agent guid server tasks to fix that. These are typically imaged machines.
Depending on how migration is done, it could affect t.
I would recommend having the agents upgraded to 4.8 before migration, even if you are going with agent 5.02 on the new server. A lot of duplicate Guid problems go away them. As Andre suggested the two server tasks should also be run.
You can also create a report or a system tree filter that shows similar to below:
Hope this helps.