Solved Zabbix upgrade to 4.2

do I just copy the /usr/local/etc/zabbix34/zabbix_server.conf over to the new installation?
 
Yes. I would suggest moving your custom scripts to /usr/local/etc/zabbix/. Then include it from zabbix_server.conf. Or else you have to move everything with every version upgrade.
 
I usually do something like this to upgrade from version MM to NN:

Bash:
# in /usr/local/etc/zabbixMM/
diff -u zabbix_server.conf.sample zabbix_server.conf > ~/zabbix_server.patch
# Perform upgrade; now in /usr/local/etc/zabbixNN
cp zabbix_server.conf.sample zabbix_server.conf
patch -p0 < ~/zabbix_server.patch

As SirDice said, if you put any custom additions into /usr/local/etc/zabbix (and include them) you won't have to move them around, too.

I like to go with this approach so you can see any new options (potentially commented out / default) in the config file.
 
Back
Top