I have seen a lot of post lately about how to upgrade ZABBIX. I wrote a scriipt for myself a year or so ago and it is included here. You may have to modify it to better fit your own environment. I use this on CentOS 4 and 5 with ZABBIX running as a service under the username zabbix.
1) Save the attached file as upgradeZABBIX.sh to whatever directory you want to download\extract the new version into ( I use /usr/src but you can use wherever you like).
2) Change the permissions to allow execute (chmod u+x upgradeZABBIX.sh )
3) run .\upgradeZABBIX.sh <version> [yes\no]
The script has one mandatory parameter and that is the version number (i.e 1.4.5). Optionally if you pass in "yes" as the second parameter it wont restart the zabbix_server service so you can update the database if neccessary (check the readme for the version if database upgrades are neccessary).
So as an example run the following to download\install Zabbix 1.4.5 (which does not require any database upgrades if upgrading from 1.4.0 or later)
# .\upgradeZABBIX.sh 1.4.5
1) Save the attached file as upgradeZABBIX.sh to whatever directory you want to download\extract the new version into ( I use /usr/src but you can use wherever you like).
2) Change the permissions to allow execute (chmod u+x upgradeZABBIX.sh )
3) run .\upgradeZABBIX.sh <version> [yes\no]
The script has one mandatory parameter and that is the version number (i.e 1.4.5). Optionally if you pass in "yes" as the second parameter it wont restart the zabbix_server service so you can update the database if neccessary (check the readme for the version if database upgrades are neccessary).
So as an example run the following to download\install Zabbix 1.4.5 (which does not require any database upgrades if upgrading from 1.4.0 or later)
# .\upgradeZABBIX.sh 1.4.5
Comment