X

How To Setup Zabbix Proxy Server For Different Network Monitor

The Zabbix Server is a network monitoring tool. It can be used fully free when install one your environment. The Zabbix server gets data from the proxy server. Easy way to monitor different network from Zabbix proxy Server.  So now I have to show how to setup Zabbix proxy Server for different network monitor.

If you can’t install Zabbix Server on your environment.

Send Mail Notification From Zabbix Server Using Gmail
How to Install And Configure Zabbix Agent on Ubuntu

Step :01: Download Zabbix proxy mysql deb file with command line.

root@Zabbix-Proxy:~# wget http://repo.zabbix.com/zabbix/3.4/ubuntu/pool/main/z/zabbix/zabbix-proxy-mysql_3.4.7-1+xenial_amd64.deb

when download deb file then update package with command below.

root@Zabbix-Proxy:~# dpkg -i zabbix-proxy-mysql_3.4.7-1+xenial_amd64.deb

Step :02: Install mysql server for setup Zabbix proxy database.

root@Zabbix-Proxy:~# apt-get install mysql-server

Then type two time mysql root password and remember it.

Any error so command below:

root@Zabbix-Proxy:~# apt-get -f install

Step :03: You can try Zabbix proxy mysql service may be not needed.

root@Zabbix-Proxy:~# apt-get install zabbix-proxy-mysql

Now enable mysql and start mysql service

root@Zabbix-Proxy:~# systemctl enable mysql && systemctl start mysql

Step :04: Create Zabbix proxy database with grant privilege user.

root@Zabbix-Proxy:~# mysql -u root -p

Then type mysql root password when created previously.

Mysql> create database zabbix_proxy_db character set utf8 collate utf8_bin;
Mysql> grant all privileges on zabbix_proxy_db.* to zabbix_user@localhost identified by "passw0rd";
Mysql> flush privileges;
Mysql> \q

Step :05: Import schema mysql from my downloaded folder.

root@Zabbix-Proxy:~# zcat /usr/share/doc/zabbix-proxy-mysql/schema.sql.gz | mysql -u root zabbix_proxy_db -p

Type mysql root password and then wait for few minutes.

Step :06: Configure proxy conf file at first open it.

root@Zabbix-Proxy:~# vi /etc/zabbix/zabbix_proxy.conf

Must be add below info for properly zabbix proxy connection.

ProxyMode=1
Server= //IP of your zabbix server (This public IP address of your Zabbix server when using NAT)
Hostname= //Name of your proxy (IP address of your proxy server)
DBName= //Name of your proxy database (zabbix_proxy_db)
DBUser= //Name of your proxy user (zabbix_user)
DBPassword= //Password of your proxy user (passw0rd)

Enable and start zabbix proxy service using below command.

root@Zabbix-Proxy:~# systemctl enable zabbix-proxy
root@Zabbix-Proxy:~# systemctl start zabbix-proxy

Step :07: Now adding Zabbix proxy server into Zabbix server.

Go to your Zabbix Server web gui.

Click Administration / Proxies then see on the top right corner Create proxy click it. See example below image 

Step :08: Create new host for monitor via Zabbix proxy Server.

Click Configuration / Hosts then see top right corner Create host click it.

Option – (i)

New group : Type any group name
Option (ii)
Go to Template tab search windows then add (Template OS Windows) and again search proxy then add (Template App Zabbix Proxy). Now click Add button two times.

Step :09: Go to Zabbix proxy Server for check log file via command below:

root@Zabbix-Proxy:~# zabbix_proxy -R config_cache_reload

zabbix_proxy [1665]: command sent successfully

Then check log file using below command.

root@Zabbix-Proxy:~#  /etc/init.d/zabbix-proxy restart; tail -f /var/log/zabbix/zabbix_proxy.log

See like as below log details.

[ ok ] Restarting zabbix-proxy (via systemctl): zabbix-proxy.service.
Cannot adopt OID in NET-SNMP-AGENT-MIB: nsNotifyShutdown ::= { netSnmpNotifications 2 }
Cannot adopt OID in NET-SNMP-AGENT-MIB: nsNotifyRestart ::= { netSnmpNotifications 3 }
Cannot adopt OID in UCD-SNMP-MIB: laErrMessage ::= { laEntry 101 }
Cannot adopt OID in UCD-SNMP-MIB: laErrorFlag ::= { laEntry 100 }
Cannot adopt OID in UCD-SNMP-MIB: laLoadFloat ::= { laEntry 6 }
Cannot adopt OID in UCD-SNMP-MIB: laLoadInt ::= { laEntry 5 }
Cannot adopt OID in UCD-SNMP-MIB: laConfig ::= { laEntry 4 }
Cannot adopt OID in UCD-SNMP-MIB: laLoad ::= { laEntry 3 }
Cannot adopt OID in UCD-SNMP-MIB: laNames ::= { laEntry 2 }
Cannot adopt OID in UCD-SNMP-MIB: laIndex ::= { laEntry 1 }

Step :10: Go to Zabbix Server side ssh terminal and then command below for see log file.

root@Zabbix-Serv:~# tail -f /var/log/zabbix/zabbix_server.log
5361:20180510:165216.701 sending configuration data to proxy "Separate Network" at "59.143.92.198", datalen 25321

N.B. Must be Zabbix Server and Zabbix proxy Server version will be same.

Step :11: If your two server deploy in your local network then must be using port forward or using NAT rule.

Must be forward two port 10050 and 10051.

How To Port Forward Using Netgear Router
3.7 3 votes
Article Rating
Admin: I am system administrator as Windows and Linux platform. I have 4 years skilled from the professional period. I have to configure Linux based system such as an Asterisk VOIP system, Network monitoring tools (ZABBIX), Virtualization (XEN Server), Cloud computing (Apache CloudStack) etc. Now share my professional skill each interested person. Thanks to all.

View Comments (1)

  • I did the installed of zabbix 4.0 alapha on ubuntu 18.04. I was wondering if this would work with zabbix 4.0?

Leave a Comment