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

This entry was posted in UNIX and tagged . Bookmark the permalink.

31 Responses to Installing Zabbix 1.8.x on CentOS The Easy Way!

  1. Pingback: BB's Blog · Installing Zabbix The Easy Way

  2. Gabriel Konig Lara says:

    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.

  3. Awesome!
    Worked right the first time, which is pretty rare when it comes to CentOS. 🙂

    Kudos for you.

  4. Daniel says:

    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.

  5. vicsparrow says:

    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.


  6. Tino Hager says:

    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?


  7. Tino Hager says:

    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

  8. Deon Thomas [PrinceAMD] says:

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

  9. Sebastiaan says:

    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!

  10. Eugen Aciu says:

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

  11. Brice says:

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

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

  12. Axilla says:

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

  13. Elder says:

    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?


  14. hairul says:

    hi, nice script.

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


  15. Bala.J says:

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

    It’s very useful to us.

    Thanks for your great support Brendon


  16. Alex says:

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

  17. Joel says:

    Works good on 1.8.5

  18. Diwakar says:

    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….

  19. Stuart Carter says:

    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?


  20. Alf says:

    Very good script.
    Thank you

  21. Ray Evelyn says:

    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.


  22. Carl says:

    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

  23. Kapeprt says:

    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!

  24. kool Kid says:

    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.

  25. stef says:

    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.


  26. Funciona excelente con la versión 1.8.13

    Hosting Chile

  27. Bryn says:

    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?


    • brendon says:

      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.

  28. Mario says:

    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

  29. Hanson says:

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


Leave a Reply

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