Professional Documents
Culture Documents
NOTE: Do Not Blindly follow this manual, use some brain of yours too. There may be changes in your
settings.
rpm -q ntp php php-bcmath php-gd php-mysql httpd mysql gcc mysql-server mysql-
devel net-snmp net-snmp-utils net-snmp-devel net-snmp-libs curl-devel mak
Install all the necessary packages.(Only those which are not already installed, else these will be updated
which isn't bad though. )
yum -y install ntp php php-bcmath php-gd php-mysql httpd mysql gcc mysql-server
mysql-devel net-snmp net-snmp-utils net-snmp-devel net-snmp-libs curl-devel mak
Start up the time server. its important for the time between your devices to be in sync. (optional)
/etc/init.d/ntpd start
wget http://dag.wieers.com/rpm/packages/fping/fping-2.4-1.b2.2.el5.rf.i386.rpm
useradd zabbix
ZABBIX:1.82
wget http://prdownloads.sourceforge.net/zabbix/zabbix-1.8.2.tar.gz?download
ZABBIX:1.81
wget http://prdownloads.sourceforge.net/zabbix/zabbix-1.8.1.tar.gz?download
/etc/init.d/mysqld start
mysql -u root -p
mysql> quit;
cd zabbix-1.8.1
make install
make clean
make install
Add the zabbix server and agent ports to your /etc/services file.
mkdir /etc/zabbix
cp misc/conf/zabbix_agentd.conf /etc/zabbix
cp misc/conf/zabbix_server.conf /etc/zabbix
in /etc/zabbix/zabbix_server.conf, modify:
DBUser=zabbixi2cga
BPassword=zabbixmysqlpassword
DBSocket=/var/lib/mysql/mysql.sock
FpingLocation=/usr/sbin/fping
in /etc/zabbix/zabbix_agentd.conf, modify:
Server=127.0.0.1,Your.Zabbix.Server.IP
Hostname=EnterAUniqueHostNameForEachAgent
cp misc/init.d/redhat/zabbix_agentd_ctl /etc/init.d/zabbix_agentd
cp misc/init.d/redhat/zabbix_server_ctl /etc/init.d/zabbix_server
BASEDIR=/usr/local/zabbix
in /etc/init.d/zabbix_agentd (Note the # hash marks, they are necessary), add near the top, just below
#!/bin/sh:
#chkconfig: 345 95 95
#description: Zabbix Agentd
in /etc/init.d/zabbix_server (again, note the # Hash marks, they are required), add near the top, just
below #!/bin/sh:
# chkconfig: 345 95 95
# description: Zabbix Server
/etc/init.d/iptables stop
Note: I turn the iptables firewall OFF because my box is behind a firewall. You should consult with your
network folks before turning off the firewall. At the very least you should poke holes for port 80, 10050, and
10051 in the firewall.
cp -r frontends/php /var/www/html/zabbix
in /etc/php.ini, modify:
max_execution_time = 300
post_max_size = 32M
mbstring.func_overload = 7
memory_limit = 256M
date.timezone = America/Los_Angeles
Note: Obviously you should substitute your own time zone. For a list of all valid timezones, click here
/etc/init.d/httpd start
Launch http://your.servers.name/zabbix inyour browser. You should be prompted with a setup screen.
Click through the user agreement, and when you get to the Pre requisites screen, make sure you have a
green OK next to everything.
When you’ve finished walking through the web interface setup:
mv /var/www/html/zabbix/setup.php /var/www/html/zabbix/setup.php.bak
ln -s /usr/local/zabbix/sbin/zabbix_agentd /usr/local/zabbix/bin/zabbix_agentd
/etc/init.d/zabbix_agentd start
/etc/init.d/zabbix_server start
You can now login to your zabbix installation by going to http://your.server.name/zabbix, using the
username “admin”, with zabbix.
For Reference, your binaries are under /usr/local/zabbix/bin, and your configuration files are in /etc/zabbix.
References:: http://www.zabbix.com/documentation.php .