Ad Widget

Collapse

Migration from agentd to agent2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cstackpole
    Senior Member
    Zabbix Certified Specialist
    • Oct 2006
    • 225

    #1

    Migration from agentd to agent2

    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!
  • cstackpole
    Senior Member
    Zabbix Certified Specialist
    • Oct 2006
    • 225

    #2
    I tested it out on a host I didn't care so much for. Unlinking without clearing the data "works". Unlink and save. Then you need to delete the CPU and memory graphs then either delete the item "System information" or change it to "Operating System" (update the key to system.sw.os and the Application to "Inventory"). Then load the new template "Linux by Zabbix agent". I'm waiting a day to see if there are any orphaned items that will need to be cleaned up, but that gets the template to load.

    After that was working, I dumped agentd and left only agent2 running.

    Is that the best way to migrate from agentd to agent2? :shrug: But it seems to work without much data lost.

    If anyone has a more complete process, please let me know.
    Thanks!

    Comment

    Working...