Greetings,
I've been exploring agent2 recently on a few new hosts (Zabbix server is 5.2). I'm getting the hang of it - there's still a few things I'm wrapping my head around with the new plug-ins but I'm getting there.
Today, I wanted to migrate the Zabbix agentd on the Zabbix server itself so that I can work with the new mysql monitoring plugin. This Zabbix server has been with me for a while. Since 4.0! And I've not been updating templates so I'm still using the really old "Template App Zabbix Server" and the "Template App Zabbix Agent". I've got a lot of history and metrics that I don't want to lose but at the same time I'm really excited about the future of agent2. I attempted to run both agents side by side but get errors due to items in both templates "already exists, inherited from another template" (which makes sense).
I'm thinking about unlinking the templates from the host without clearing the data and hoping that I don't lose it all when I add the new template in. Just not sure if that is the recommended way of doing it or not.
Is there any good way of migrating from agent to agent2 without losing lots of history? Or should I just plan on running agent until the host dies/rebuilt/history-lost and put agent2 on only new deployments?
As you can probably tell, I don't update my templates very often. I didn't see anything in my searching about recommended process for updating templates - if I just missed that in the documentation, please let me know. Thanks!
I've been exploring agent2 recently on a few new hosts (Zabbix server is 5.2). I'm getting the hang of it - there's still a few things I'm wrapping my head around with the new plug-ins but I'm getting there.

Today, I wanted to migrate the Zabbix agentd on the Zabbix server itself so that I can work with the new mysql monitoring plugin. This Zabbix server has been with me for a while. Since 4.0! And I've not been updating templates so I'm still using the really old "Template App Zabbix Server" and the "Template App Zabbix Agent". I've got a lot of history and metrics that I don't want to lose but at the same time I'm really excited about the future of agent2. I attempted to run both agents side by side but get errors due to items in both templates "already exists, inherited from another template" (which makes sense).
I'm thinking about unlinking the templates from the host without clearing the data and hoping that I don't lose it all when I add the new template in. Just not sure if that is the recommended way of doing it or not.
Is there any good way of migrating from agent to agent2 without losing lots of history? Or should I just plan on running agent until the host dies/rebuilt/history-lost and put agent2 on only new deployments?
As you can probably tell, I don't update my templates very often. I didn't see anything in my searching about recommended process for updating templates - if I just missed that in the documentation, please let me know. Thanks!
Comment