Ad Widget

Collapse

ZABBIX upgrade script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • swaterhouse
    Senior Member
    • Apr 2006
    • 268

    #1

    ZABBIX upgrade script

    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
    Attached Files
    Last edited by swaterhouse; 06-05-2008, 14:27.
  • kberrien
    Member
    • Mar 2007
    • 43

    #2
    upgrade zabbix

    >I have seen a lot of post lately about how to upgrade ZABBIX.

    Well, when the release notes say see the manual, and the manual only talks about an old version --> 4.x upgrade, it's no wonder everyone is posting! If your running a production install like I am, I don't want to guess on the upgrade procedure.

    It would be helpful if the upgrade procedure was listed (ver # to ver #) within the release notes.

    >(check the readme for the version if database upgrades are neccessary).

    Readme for 1.4.5 says see www.zabbix.com

    I don't mean to pick on you, your script is a step in the right direction and likely a big help to many, but I've been looking around the forums for upgrade info and wanted to express my frustration somewhere with the lack of upgrade information, and your post
    seemed to be the best to illustrate the troubles users are having.

    Sure, I understand the open source tradeoff, and I'm very very grateful for this software, but some things are important and just to basic that it very might well turn away users.

    Comment

    • swaterhouse
      Senior Member
      • Apr 2006
      • 268

      #3
      I totally agree with you. Upgrades are not something to be taken lightly and simple info like whether or not database upgrades are necessry from version to version is VERY important and should be included in the Readme for every release.

      As an example the 1.4.5 readme should say:
      No database upgrades neccesary if upgrading from 1.4.0 or later

      Comment

      • Alexei
        Founder, CEO
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2004
        • 5654

        #4
        Originally posted by swaterhouse
        As an example the 1.4.5 readme should say:
        No database upgrades neccesary if upgrading from 1.4.0 or later
        I do not think it is required. No upgrades within one major release requires database patches! This is described in ZABBIX Manual.
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        Working...