Installing Zabbix 1.8.x on CentOS The Easy Way!

Update: This has been updated for 2.2.x. Follow this link.

Original Posting and Script

This is an updated script to install Zabbix 1.8.x on CentOS/Red Hat 5. I have tested it on CentOS 5.4. The script was made for Zabbix 1.8.0, but if you modify the ZBX_VER variable in the script, it should work on any version in the 1.8 series.

Basically, the script tries to do a few things and assumes some things:

  • Only run this for NEW installations, you will lose data if you run on an existing installation
  • Run at your own risk
  • Installs Zabbix 1.8.x on CentOS 5
  • Do not corrupt an existing system
  • Be able to run the script over and over in the event that it errors
  • Be somewhat flexible
  • The database server, web server, and zabbix server all run on one box

Click here to download it


  1. Gabriel Konig Lara’s avatar

    I’m from Brazil, so sorry for my bad English.
    I loved your script Zabbix installation, fast and simple … congratulations!
    I did install successfully on Linux Fedora 12. I had to just make some changes to the method of installation of “fping” and had to add another package called “patch”. If you want my version approved for Fedora 12 I can send you by e-mail!

    Gabriel Konig Lara.


  2. Eri Ramos Bastos’s avatar

    Worked right the first time, which is pretty rare when it comes to CentOS. :)

    Kudos for you.


  3. Daniel’s avatar

    This does not install php-xml which is required to import/export templates with 1.8.1. Also the path for 1.8.1 did not work for the download but it was easy to edit in the script.


  4. vicsparrow’s avatar

    tanks a lot,

    I did install very fast and successfully, i too just make changes in script, I downloaded the zabbix.tar.gz in the tmp folder manually and i did comment some script lines and it work.



  5. Tino Hager’s avatar

    Nice Script. I have test a installation with zabbix 1.8 its run fine. Now i have test it with 1.8.1 and one problem i have found with a wrong php version with no mbstring support…?

    Its a update available for this script?



  6. Tino Hager’s avatar

    My work arround…

    rpm –import
    wget -P /etc/yum.repos.d/
    yum –enablerepo=webtatic install php php-mbstring php-common php-gd php-mysql php-bcmath php-pdo


  7. Deon Thomas [PrinceAMD]’s avatar

    hey, thanks for the install script works great on fedora 12, thanks again!


  8. Sebastiaan’s avatar

    Great script! Works like a charm!
    If you make a backup of your zabbix database you can even use it to update the zabbix server; stop the zabbix_server process, export the database, run the script, import the database and voila!


  9. Eugen Aciu’s avatar

    Hello, nice job.
    From your script is missing “yum install php-mbstring”


  10. Brice’s avatar

    Cimer pour le script il marche niquel franchemennt !
    A + gros

    Thanks you for your script, it’s magical !
    See u soon


  11. Axilla’s avatar

    You’re also missing php-xml in the easy install script. You won’t be able to import/export Templates or anything without it.


  12. Elder’s avatar

    Greetings .. is a great tool but I do not work .. route fails to download from sourceforge zabbix 1.8.2 .. I am trying to install zabbix in centos 5.5 and this script would be great ..

    Anyone know if there is an installation script for centos zabbix 5.5 and 1.8.3?



  13. hairul’s avatar

    hi, nice script.

    Can you write a script for proxy installation.
    I’m still fresh in linux and unsuccessful o setup proxy with mysql



    1. brendon’s avatar

      Sorry. I won’t be doing a proxy script.

    2. Bala.J’s avatar

      I have successfully installed the Zabbix server in CentOS using your script.

      It’s very useful to us.

      Thanks for your great support Brendon



    3. Alex’s avatar

      God bless you, man! ))))
      5 minutes and here you are! Zabbix is installed!! )))


    4. Joel’s avatar

      Works good on 1.8.5


    5. Diwakar’s avatar

      Superb script… it working cool… As i’m not gud in linux this script help me alot…. Even i want to be such a script writter….


    6. Stuart Carter’s avatar

      Thank you for this script. Sadly, Zabbix didn’t do for us what we needed it to do: how can I edit the script to undo what it did?



    7. Alf’s avatar

      Very good script.
      Thank you


    8. Ray Evelyn’s avatar

      Thanks for your script. It is great to sit down and read through your blog. I have modded the script in order to incorporate Open VZ requirements in terms of time zone etc. If interested I can post a template of the zabbix install with your script. Can you share experiences with agent installs, monitoring techniques and best practices.



    9. Carl’s avatar

      Great script! Just had to modify php.ini for date.timezone option (remove warnings from zabbix interface).

      Might also be worth modifying my.cnf for innodb_file_per_table


    10. Kapeprt’s avatar

      works great, i changed the ZBX_VER=’1.8.3′ to ZBX_VER=’1.8.6′ and installed it without any trouble on centos 5.6!


    11. kool Kid’s avatar

      Thank you very much for the script. It worked nicely for 1.8.9. All I had to do was to run Tino hager’s commands and run your script. Below are the commands

      rpm –import
      wget -P /etc/yum.repos.d/
      yum –enablerepo=webtatic install php php-mbstring php-common php-gd php-mysql php-bcmath php-pdo

      Tweak your script to include the missing. Thanks again! Good job.


    12. stef’s avatar

      Kudos, nice work I appreciate the time this saved me! BTW, on my version of CENTOS, patch is missing so script threw warnings that patch was not found and patches were not applied. Maybe just add patch as dependency.



    13. Hosting Chile’s avatar

      Funciona excelente con la versión 1.8.13

      Hosting Chile


    14. Bryn’s avatar

      I’m having problems with this on CentOS 6.2. When I run the script I keep getting:

      –> Processing Dependency: for package: iksemel-1.4-1.el5.rf.x86_64
      —> Package rpm-libs.x86_64 0:4.8.0-19.el6 will be updated
      —> Package rpm-libs.x86_64 0:4.8.0-19.el6_2.1 will be an update
      —> Package rpm-python.x86_64 0:4.8.0-19.el6 will be updated
      —> Package rpm-python.x86_64 0:4.8.0-19.el6_2.1 will be an update
      –> Finished Dependency Resolution
      Error: Package: iksemel-1.4-1.el5.rf.x86_64 (rpmforge)
      Error: Package: iksemel-1.4-1.el5.rf.x86_64 (rpmforge)
      You could try using –skip-broken to work around the problem
      You could try running: rpm -Va –nofiles –nodigest
      fail: Package install

      I’ve tried to do yum install gnutls from the command line and that worked but I still get the same problem. I’ve also changed the script to use el6 instead of el5 but the problem still persists.

      Any ideas please?



      1. brendon’s avatar

        Sorry, this script hasn’t been updated in quite some time. I’ll probably do an update in about 6 months when a new Zabbix comes out. In the meantime, hopefully someone else can help and respond.

      2. Mario’s avatar

        Congrat´s for the script. It´s still function:
        – CentOS 6.3
        – Kernel 2.6.32-279.5.2.el6.x86_64
        – Chrome
        Best Regards
        Mário Mayerle Filho


      3. Hanson’s avatar

        Your script works with Centos 6.3 just tested and its great. Keep up the good scripting.




Your email address will not be published. Required fields are marked *