Ad Widget

Collapse

Upgrade Windows agent using MSI - but keep config file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stevemc
    Junior Member
    • Jan 2019
    • 7

    #1

    Upgrade Windows agent using MSI - but keep config file

    I need to upgrade our Windows agents (which are on a variety of versions from 3.4.x to 4.0.24) to standardise on 4.0.25.
    The agents were all installed using the MSI installer, and I would like to be able to deploy the new version in the same way - but keep the config file on each server as it was on the previous version.

    I can't see anything in the documentation that would let me do this - is it in fact possible?

    Thanks,

    Stephen
  • dimir
    Zabbix developer
    • Apr 2011
    • 1080

    #2
    The process is as follows:
    • detect previous config file
    • read the main configuration parameters from it (the list is first 19 parameters in the table: https://www.zabbix.com/documentation...d_installation)
    • back it up as <path>\zabbix_agentd.conf.old.<zabbix-version>
    • override old config file by the fresh new one using above mentioned parameters from the old config
    Unfortunately there is no way to just keep the old config file. Good point about documentation, please create new ZBX issue asking to document this process.

    Comment

    Working...