Plan
2 # Install Zabbix Master 2.4.5 & Proxy 2.4.5 in Different Path
Step
1# Copy the Zabbix-2.4.5.tgz to Test-NS12, RS9, NS3, TMS1-GF,
Peregrine, VSFTP
under /usr/local/src location and Extract the same
Step
2# Install the Proxies & Agent in Node Servers (RS9, NS3,
TMS1-GF, Peregrine, VSFTP)
#
cd /usr/local/src/zabbix-2.4.5
#
./configure --prefix=/usr/local/zabbix_proxy --enable-proxy
--enable-agent --with-mysql --with-net-snmp --with-jabber
–with-libcurl
#
make install
#
cd database/mysql
#
mysql
#
mysql> create database zabbix_proxy
#
mysql> grant all on zabbix_proxy.* to 'zabbix_proxy'@'localhost'
identified by 'zabbix_proxy';
#
mysql> flush privileges;
#
mysql> use zabbix_proxy;
#
mysql> source schema.sql;
#
mysql> quit;
#
vim /usr/local/zabbix_proxy/etc/zabbix_proxy.conf
##Modify
below lines
Server=xx.xx.xx.xx
[Master IP]
Hostname=GAIndia
[Proxy Name, here GAIndia is example]
ListenPort=20051
[Here Port changed from 10051 to 20051 for Port Conflict Issue ]
DBName=zabbix_proxy
DBUser=zabbix_proxy
DBPassword=zabbix_proxy
ConfigFrequency=300
HousekeepingFrequency=1
ProxyOfflineBuffer=24
#wq!
#
vim /usr/local/zabbix_proxy/etc/zabbix_agentd.conf
##Modify
below lines
ServerActive=xx.xx.xx.xx
[Proxy Server IP]
ListenPort=20050
[ Here Port changed from 10050 to 20050 for Port Conflict Issue ]
##Hostname=
[Disable this line]
:wq!
Step
3 # Install Zabbix Master 2.4.5 in Test-NS12
#
cd /usr/local/src/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_server
#
rsync -avz . /var/www/html/zabbix_server/
#
chown apache:apache /var/www/html/zabbix_server -Rvf
#
cd /usr/local/src/zabbix-2.4.5/database/mysql
#
mysql
#
mysql> create database zabbix_server
#
mysql> grant all on zabbix_server.* to 'zabbix_server'@'localhost'
identified by 'zabbix_server';
#
mysql> flush privileges;
#
mysql> use zabbix_server;
#
mysql> source schema.sql;
#
mysql> source data.sql;
#
mysql> source images.sql;
#
mysql> quit;
#
vim /etc/httpd/conf/httpd.conf
##Add
Below lines in End of the file
<VirtualHost
*:80>
ServerAdmin
prodsupport@globalanalytics.com
DocumentRoot /var/www/html/zabbix_server
ServerName mansoor.zabbix.net
ServerAlias
localhost
ErrorLog
logs/mansoor.zabbix.net-error_log
CustomLog
logs/mansoor.zabbix.net-access_log common
</VirtualHost>
#
/etc/init.d/httpd restart
Step
4 # Start Zabbix Server in Test-NS12
#
vim /usr/local/zabbix_server/etc/zabbix_server.conf
#
Modify below lines
ListenPort=20051
[Here Port changed from 10051 to 20051 for Port Conflict Issue ]
#
/usr/local/zabbix_server/sbin/zabbix_server -c
/usr/local/zabbix_server/etc/zabbix_server.conf
#
tail -f /tmp/zabbix_server.log
#
Add DNS Entry for mansoor.zabbix.net to 68.70.161.109
in DNS MadeEasy
#
Connect to http://mansoor.zabbix.net and Install
Zabbix_Server
Step
5# Configure the Proxy in Master Dashboard's & Start Zabbix Proxy
To
configure a proxy in Zabbix frontend:
- Go to: Administration → Proxies
- Click on Create proxy
Proxy name
|
Enter the proxy name. It must be the same name
as in the Hostname parameter in the proxy configuration
file.
|
Proxy mode
|
Select the proxy mode.
Active - the proxy will connect to the Zabbix server and request configuration data |
Hosts
|
Add hosts to be monitored by the proxy.
|
Description
|
Enter the proxy description.
|
Host Configuration in Master Dashboard
You
can specify that an individual host should be monitored by a proxy in
the host
configuration form, using the Monitored by
proxy field.
Step
6 # Start Zabbix Proxy & Zabbix Agentd in Proxy Servers [RS9,
NS3, TMS1-GF, Peregrine, VSFTP]
#
killall zabbix_server
#
killall zabbix_agentd
#
/usr/local/zabbix_proxy/sbin/zabbix_proxy -c
/usr/local/zabbix_proxy/etc/zabbix_proxy.conf
#
/usr/local/zabbix_proxy/sbin/zabbix_agentd -c
/usr/local/zabbix_proxy/etc/zabbix_agentd.conf
Step
7 # Zabbix Agentd Configuration
#
killall zabbix_agentd
#
Edit the Zabbix_Agentd Configuration File in All Zabbix Agents and
Restart the Zabbix Agentd
#
vim /usr/local/zabbix_proxy/etc/zabbix_agentd.conf
##Server=
[Disable this Option]
ServerActive=xx.xx.xx.xx [Proxy Server IP]
#
zabbix_agentd
Step
8 # check the Log Files of Server & Proxy
# Master server # tail -f /tmp/zabbix_server.log
# Proxy Servers # tail -f /tmp/zabbix_proxy.log
Step
9 # Export Below from Test-NS12 and Import the same in Test-NS12 New
Zabbix Instance
Groups, Hosts, Templates, Discovery rules, Triggers, Graphs, Screens,
Maps, Images