CentOS 5.3 Zabbix 1.6.5 Install (quick)
A quick reference for a from-scratch Zabbix install on CentOS 5.3. We’ve used Zabbix for the past 3 or 4 years and just implementing 1.6.5 across multiple Xen nodes for funky distributed monitoring.
wget http://kent.dl.sourceforge.net/sourceforge/zabbix/zabbix-1.6.5.tar.gz
tar xvf zabbix-1.6.5.tar.gz
yum install mysql-server
mysql
- type > create database zabbix
- type > quit
cd zabbix-1.6.5
service mysqld start
cd create/schema/
cat mysql.sql | mysql zabbix
cd ../data
cat data.sql | mysql zabbix
cat images_mysql.sql | mysql zabbix
cd ../..
yum install gcc mysql mysql-devel curl curl-devel net-snmp net-snmp-devel
./configure –enable-server –with-mysql –with-net-snmp –with-libcurl
make install
vi /etc/services
- add > zabbix-agent 10050/tcp Zabbix Agent
- add > zabbix-agent 10050/udp Zabbix Agent
- add > zabbix-trapper 10051/tcp Zabbix Trapper
- add > zabbix-trapper 10051/udp Zabbix Trapper
cp misc/init.d/fedora/core5/zabbix_server /etc/init.d/
vi /etc/init.d/zabbix_server
- change > /usr/bin/zabbix_server
- to > /usr/local/sbin/zabbix_server
adduser zabbix
mkdir /etc/zabbix/
cp ./misc/conf/zabbix_server.conf /etc/zabbix/
/etc/init.d/zabbix_server start
chkconfig –add zabbix_server
chkconfig –add httpd
chkconfig zabbix_server on
chkconfig httpd on
chkconfig mysqld on
yum installl httpd fping php php-mysql php-bcmath
cd zabbix-1.6.5/frontends/php/
cp -rf * /var/www/html/
service httpd start
vi /etc/php.ini
- change > max_execution_time = 30;
- to > max_execution_time = 300;
- change > date.timezone =
- to > date.timezone = UTC
- change > memory_limit = 16M
- to > memory_limit = 100M
service httpd restart
service mysqld restart
Thanks for this awesome tutorial. However, after following all of these instructions I could not get the zabbix_server process to start. It looks like it was trying to run as root. Can you advise how to get the zabbix_server process to run as the zabbix user? I’m still new to linux and don’t know how to do everything yet.
Running CentOS 5.3 and Zabbix 1.6.5
Hi Steve,
You should just need to-do “/etc/init.d/zabbix_server start” and that script takes care of the appropriate permissions (zabbix.zabbix).
Ta,
Carl
For your distributed monitoring do you utilize “nodes” or “proxies”? I’m trying to set up my first Zabbix install on CentOS 5.3, but unsure which path I should take. Furthermore, it seems the zabbix-proxy package requires different configuration.
If you have any insight I would really appreciate it.
Thanks,
-Jason-
We’re not quite using the distributed element yet and no proxy. For this particular setup we have two cabs, a zabbix vm in each cabinet monitoring itself and the other cabinets hosts/vms but in basic terms it’s just like two zabbix installs linked by a common web interface as we use it.
Eventually I’ll get onto looking at getting across multiple sites, for the moment though we’re happy just having individual/independent zabbix/cacti/smokeping installs at each site.
http://www.zabbix.com/forum/showthread.php?t=9409 might be of use?
Leave a comment!
business »
Management
A man flying in a hot air balloon suddenly realizes he’s lost. He reduces height and spots a man down below. He lowers the balloon further and shouts to get directions, “Excuse me, can you …
code snippets »
Converting 32bit RRD to 64bit RRD (moving cacti between architectures)
While migrating cacti over to a new virtual machine I got “ERROR: This RRD was created on another architecture” in /var/log/httpd/error_log when the crontab ran resulting in blank graphs.
On the 32 bit machine in /var/www/cacti/rra/ …
Featured »
Ardunio Visible Distance Detector
I’ve had the Arduino Mini Pro for about 2 months now, but as I forgot to order/have some sort of USB FTDI converter I’ve not been able to play with it. As part of another …
geek, servers & tech »
Install Dell OpenManage 6.1 / omsa / omreport into Citrix XenServer dom0
A quick guide to getting openmanage installed for RAID monitoring on a Xen node.
OM 6.2 has an error with “Error: Missing Dependency: libxslt.so.1″ which is with the Dell package. Use 6.1 if 6.2 doesn’t work …
Headline »
The killer idea, death by invention
1944AC: Inventor and chemist Thomas Midgley, Jr. accidentally strangled himself with the cord of a pulley-operated mechanical bed of his own design.
Turns out Thomas Midgley, Jr. also invented CFCs but didn’t live long enough to …
odds & sods »
Money Modification
When was the last time you took a good look at the money in your wallet? You’d be supprised what you might find.
Some favorites:
photos »
Steal This Comic
This seems familiar…
projects »
http.sh
I’ve faffed with this one and poorly hacked some jquery and facebook connect examples along with trusty ol’ PHP on the front-end, on the back-end is a nice c scheduler engine which seems to be …
Uncategorized »
Modifications to www.carlheaton.co.uk
I’ve been making a few modifications to *.carlheaton.co.uk like re-introducing the core Carl Heaton index page with a list of projects and other on-going ideas.
I will still post tutorials/dumps here where appropriate for code, server …
videos »
Ardunio Visible Distance Detector
I’ve had the Arduino Mini Pro for about 2 months now, but as I forgot to order/have some sort of USB FTDI converter I’ve not been able to play with it. As part of another …
Tag Cloud
Archive
Blogroll
Random Posts
Latest Video Post