Update: This has been updated for 1.8.x. Follow this link.
I was following the Zabbix forums and people are constantly having problems installing Zabbix.
To make things easier, I wrote a magic install script for CentOS/Red Hat 5. I have tested it on CentOS 5.2.
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.6.1 on CentOS 5.2
- 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
One final note, I did peruse a few other CentOS install guides, all of which will probably work, but all of them follow many bad practices. The magic script does a far better job and requires less effort, go figure.
Tags: zabbix
-
Everything running fine – thank you very much.
pass: make install
ERROR 1008 (HY000) at line 1: Can’t drop database ‘zabbix’; database doesn’t exist
patching file zabbix_server.conf
patching file zabbix_agentd.conf
patching file zabbix_server
patching file zabbix_agentd
Stopping zabbix_server: [FAILED]
Starting zabbix_server: [ OK ]
Stopping zabbix_agentd: [FAILED]
Starting zabbix_agentd: [ OK ]
Stopping httpd: [FAILED]
Starting httpd: [ OK ]
patching file include/setup.inc.php
patching file include/page_header.php
Load http://localhost/zabbix/
username: admin
password: zabbix -
Will try it to see if it runs the correct set up
-
Excellent script man. Saves so much time. Just had to make sure I went into /etc/sysconfig/network and add a couple of things and it worked a charm. Do you plan on making one for 1.6.2?
-
Your script worked to monitor agents installed within my network but when I tried getting it to monitor other agents on external networks it couldn’t for some reason
Any idea why that is? -
Does it work with the 1.6.4 zabbix version ?
Thanks !
Nikot
-
Great script, thanks it still saves me a lot of time.
I did need to run the following to resolve some dependencies on Centos 5.2:
yum install gcc-c++ libstdc++-devel make mysql-devel curl-devel openssl-devel krb5-devel libgssapi-devel e2fsprogs-libs libidn-devel zlib-devel net-snmp-devel glibc-devel
It fixed this error:
checking for main in -lcurl… no
configure: error: Not found libcurl library
fail: ConfigureI’m going to try to use the script to install the latest Zabbix release.
Thanks again,
Mikrodots
-
it work with Zabbix 1.6.5 but
if [ ! “‘rpm -qa|grep fping ……. useless, because yum -y fping install the fping
great script! thx.
-
Worked great with the most recent version 1.6.6, on an install of CentOS 5.3… minimal installation using a remote MySQL server/db
THANK YOU!!! Great time saver
-
The script works nicely on the newest 1.6.6 version. Just edit the variable called ZBX_VER to read ZBX_VER=’1.6.6′ .
Thanks for the script.
R

19 comments
Comments feed for this article
Trackback link: http://blog.brendon.com/unix/installing-zabbix-the-easy-way/trackback/