Step 1) Installing Pre-requisites
----------------------------------
yum install iksemel-devel curl-devel net-snmp-devel php-bcmath php-xmlwriter php-xmlreader php-xmlreader gcc-c++ zlib zlib-devel lynx make iksemel iksemel-devel php-mbstring php php-gd php-mysql mysql mysql-server mysql-devel
Step 2) Adding Zabbix user & group
----------------------------------
groupadd -g 10050 zabbix
useradd -u 10050 -M -p 'global!23' -g zabbix zabbix
Step 3) Installing Zabbix Server
--------------------------------
cd /usr/local/src
wget http://nchc.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/2.4.5/zabbix-2.4.5.tar.gz
tar xzvf zabbix-2.4.5.tar.gz
cd zabbix-2.4.5
./configure --prefix=/usr/local/zabbix_server --enable-server --enable-agent --with-mysql --with-net-snmp --with-jabber --with-libcurl
make install
cd frontends/php/
mkdir /var/www/html/zabbix_2.4.5
rsync -avz . /var/www/html/zabbix_2.4.5/
chown apache:apache /var/www/html/zabbix_2.4.5/
cd zabbix-2.4.5/database/mysql
mysql>mysql -u root -p'password'
mysql>create database zabbix_server;
mysql>use zabbix_server;
mysql>grant all on zabbix_server.* to 'zabbix_server'@'localhost' identified by 'zabbix_server'
mysql>flush privileges;
mysql>source schema.sql
mysql>source images.sql
mysql>source data.sql
Step 4) Start Zabbix Server & Agent
-----------------------------------------
/usr/local/zabbix_server/sbin/zabbix_server
/usr/local/zabbix_server/sbin/zabbix_agentd
Step 5) Add below lines in apache conf file
--------------------------------------------
<VirtualHost *:80>
ServerAdmin sysalerts@globalanalytics.com
DocumentRoot /var/www/html/zabbix_server
ServerName zabbix.gai.net
Errorlog logs/zabbix.gai.net-error_log
CustomLog logs/zabbix.gai.net-access_log common
</VirtualHost>
/etc/init.d/httpd restart
Step 6) Browse http://zabbix.gai.net and complete the installation
Zabbix_Agent_Installation
-----------------------------------
Step 1) Installing Pre-requisites
----------------------------------------------
yum install gcc-c++ zlib zlib-devel lynx make
Step 2) Adding Zabbix user & group
------------------------------------------------------
groupadd -g 10050 zabbix
useradd -u 10050 -M -p 'global!23' -g zabbix zabbix
Step 3) Installing Zabbix Agent
----------------------------------------------
cd /usr/local/src
wget wget http://nchc.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/2.4.5/zabbix-2.4.5.tar.gz
tar xzvf zabbix-2.4.5.tar.gz
cd zabbix-2.4.5
./configure --with-net-snmp --enable-agent
make install
Step 4) Add below lines in /etc/services
----------------------------------------------------------
zabbix-agent 10050/tcp Zabbix Agent
zabbix-agent 10050/udp Zabbix Agent
zabbix-trapper 10051/tcp Zabbix Trapper
zabbix-trapper 10051/udp Zabbix Trapper
Step 5) Modify below line
----------------------------------------
#vim /usr/local/etc/zabbix_agentd.conf
Server= zabbix.gai.net [Zabbix server IP]
##Disable the below tag line Hostname
#Hostname
Step 6) Starting zabbix agent
------------------------------
#/usr/local/sbin/zabbix_agentd
Step 7) Adding into rc.local
---------------------------------------
#vim /etc/rc.local
##Add the below line at end of file
/usr/local/sbin/zabbix_agentd
----------------------------------
yum install iksemel-devel curl-devel net-snmp-devel php-bcmath php-xmlwriter php-xmlreader php-xmlreader gcc-c++ zlib zlib-devel lynx make iksemel iksemel-devel php-mbstring php php-gd php-mysql mysql mysql-server mysql-devel
Step 2) Adding Zabbix user & group
----------------------------------
groupadd -g 10050 zabbix
useradd -u 10050 -M -p 'global!23' -g zabbix zabbix
Step 3) Installing Zabbix Server
--------------------------------
cd /usr/local/src
wget http://nchc.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/2.4.5/zabbix-2.4.5.tar.gz
tar xzvf zabbix-2.4.5.tar.gz
cd zabbix-2.4.5
./configure --prefix=/usr/local/zabbix_server --enable-server --enable-agent --with-mysql --with-net-snmp --with-jabber --with-libcurl
make install
cd frontends/php/
mkdir /var/www/html/zabbix_2.4.5
rsync -avz . /var/www/html/zabbix_2.4.5/
chown apache:apache /var/www/html/zabbix_2.4.5/
cd zabbix-2.4.5/database/mysql
mysql>mysql -u root -p'password'
mysql>create database zabbix_server;
mysql>use zabbix_server;
mysql>grant all on zabbix_server.* to 'zabbix_server'@'localhost' identified by 'zabbix_server'
mysql>flush privileges;
mysql>source schema.sql
mysql>source images.sql
mysql>source data.sql
Step 4) Start Zabbix Server & Agent
-----------------------------------------
/usr/local/zabbix_server/sbin/zabbix_server
/usr/local/zabbix_server/sbin/zabbix_agentd
Step 5) Add below lines in apache conf file
--------------------------------------------
<VirtualHost *:80>
ServerAdmin sysalerts@globalanalytics.com
DocumentRoot /var/www/html/zabbix_server
ServerName zabbix.gai.net
Errorlog logs/zabbix.gai.net-error_log
CustomLog logs/zabbix.gai.net-access_log common
</VirtualHost>
/etc/init.d/httpd restart
Step 6) Browse http://zabbix.gai.net and complete the installation
Zabbix_Agent_Installation
-----------------------------------
Step 1) Installing Pre-requisites
----------------------------------------------
yum install gcc-c++ zlib zlib-devel lynx make
Step 2) Adding Zabbix user & group
------------------------------------------------------
groupadd -g 10050 zabbix
useradd -u 10050 -M -p 'global!23' -g zabbix zabbix
Step 3) Installing Zabbix Agent
----------------------------------------------
cd /usr/local/src
wget wget http://nchc.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/2.4.5/zabbix-2.4.5.tar.gz
tar xzvf zabbix-2.4.5.tar.gz
cd zabbix-2.4.5
./configure --with-net-snmp --enable-agent
make install
Step 4) Add below lines in /etc/services
----------------------------------------------------------
zabbix-agent 10050/tcp Zabbix Agent
zabbix-agent 10050/udp Zabbix Agent
zabbix-trapper 10051/tcp Zabbix Trapper
zabbix-trapper 10051/udp Zabbix Trapper
Step 5) Modify below line
----------------------------------------
#vim /usr/local/etc/zabbix_agentd.conf
Server= zabbix.gai.net [Zabbix server IP]
##Disable the below tag line Hostname
#Hostname
Step 6) Starting zabbix agent
------------------------------
#/usr/local/sbin/zabbix_agentd
Step 7) Adding into rc.local
---------------------------------------
#vim /etc/rc.local
##Add the below line at end of file
/usr/local/sbin/zabbix_agentd
No comments:
Post a Comment