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
Leave a Reply

avatar
29 Comment threads
2 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
28 Comment authors
HansonMariobrendonBrynHosting Chile Recent comment authors
  Subscribe  
Notify of
trackback

[…] Update: This has been updated for 1.8.x. Follow this link. […]

Gabriel Konig Lara
Guest
Gabriel Konig Lara

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!

Regards,
Gabriel Konig Lara.

Eri Ramos Bastos
Guest

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

Kudos for you.

Daniel
Guest
Daniel

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.

vicsparrow
Guest
vicsparrow

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.

Regards,

Tino Hager
Guest
Tino Hager

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?

Regards

Tino Hager
Guest
Tino Hager

My work arround…

rpm –import http://repo.webtatic.com/yum/RPM-GPG-KEY-webtatic-andy
wget -P /etc/yum.repos.d/ http://repo.webtatic.com/yum/webtatic.repo
yum –enablerepo=webtatic install php php-mbstring php-common php-gd php-mysql php-bcmath php-pdo

Deon Thomas [PrinceAMD]
Guest
Deon Thomas [PrinceAMD]

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

Sebastiaan
Guest
Sebastiaan

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!

Eugen Aciu
Guest

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

Brice
Guest
Brice

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

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

Axilla
Guest
Axilla

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

Elder
Guest
Elder

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?

thanks

hairul
Guest
hairul

hi, nice script.

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

thanks

Bala.J
Guest
Bala.J

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

It’s very useful to us.

Thanks for your great support Brendon

.

Alex
Guest
Alex

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

Joel
Guest

Works good on 1.8.5

Diwakar
Guest
Diwakar

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

Stuart Carter
Guest
Stuart Carter

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?

Thanks!

Alf
Guest
Alf

Very good script.
Thank you

Ray Evelyn
Guest

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.

Cheers!!

Carl
Guest

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

Kapeprt
Guest
Kapeprt

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!

kool Kid
Guest
kool Kid

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 http://repo.webtatic.com/yum/RPM-GPG-KEY-webtatic-andy
wget -P /etc/yum.repos.d/ http://repo.webtatic.com/yum/webtatic.repo
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.

stef
Guest
stef

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.

Thanks.

Hosting Chile
Guest

Funciona excelente con la versión 1.8.13

Hosting Chile

Bryn
Guest
Bryn

I’m having problems with this on CentOS 6.2. When I run the script I keep getting: –> Processing Dependency: libgnutls.so.13()(64bit) 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) Requires: libgnutls.so.13()(64bit) Error: Package: iksemel-1.4-1.el5.rf.x86_64 (rpmforge) Requires: libgnutls.so.13(GNUTLS_1_3)(64bit) 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… Read more »

Mario
Guest

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

Hanson
Guest
Hanson

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

Cheers