This error:

Template "Template OS Linux" with item key "agent.hostname" already linked to host.

Simply means that “Template App Zabbix Agent” is a child of “Template OS Linux”. So remove the Zabbix Agent template from the host and the OS Linux will add fine.