How To Setup Zabbix Proxy Server For Different Network Monitor7 min read
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.
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)
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
- How To Install Zabbix Server 6.4 On AlmaLinux 8 Server - August 9, 2024
- How To Clear RAM Memory Cache Buffer Linux Server - February 29, 2024
- How To Install Apache Cloud Stack Management Server 4.17 On Ubuntu 22.04 - February 1, 2024
We really appreciate for your support for buying me a coffee.
It takes us a while to compose and upload new content, as they have to be checked to see if Properly works. We appreciate you if you help me for one cup of coffee to keep us awake and always deliver good quality content.
No contribution is small of an amount. We are grateful for any amount you support us with. Thank you!
I did the installed of zabbix 4.0 alapha on ubuntu 18.04. I was wondering if this would work with zabbix 4.0?