Source Installation Zabbix Client

Source: Internet
Author: User

Before installing the Zabbix server, please refer to the article I wrote before. Poke here. Start installing the Zabbix client now


Client Installation Configuration


Download Install client

All versions: Http://www.zabbix.com/download.php, you can directly download the binaries that have already been compiled, or you can install the source files as well.


# CD/USR/LOCAL/SRC

# wget "http://downloads.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/2.2.2/zabbix-2.2.2.tar.gz?r= Http%3a%2f%2fwww.zabbix.com%2fdownload.php&ts=1395066528&use_mirror=jaist "

# TAR-XZVF Zabbix-2.2.2.tar.gz

# CD zabbix-2.2.2

#./configure--prefix=/usr/local/zabbix-2.2.2/--enable-agent

# make

# make Install

Zabbix Client Configuration

Configure Zabbix_server configuration file, Zabbix source directory


# vim/usr/local/zabbix-2.2.2/etc/zabbix_agentd.conf

server=127.0.0.1 (Note that the client above needs to be modified to the IP address of the monitor machine)

serveractive=127.0.0.1 (Note that the client above needs to be modified to the IP address of the monitor machine)

Hostname=zabbix Server (the name here needs to be the same as the monitoring machine configuration above)

Where both server and serveractive specify the IP address of the Zabbixserver, the difference is that the former is passive and the latter is active. This means that the server configuration is used to allow 127.0.0.1 this IP to come to me to fetch the data. And Serveractive's 127.0.0.1 means that the client is actively submitting data to him. Do you understand? Why be active and passive? Follow up to discuss this issue again!


Other host installation clients remember to add Zabbix users.


Zabbix Client Startup (Note Be sure to create Zabbix users)

For security reasons, Zabbix only runs with a normal user, and if your current user is called ASD, then you run it and he runs with the ASD identity. But if you run Zabbix in the root environment, then Zabbix will actively use the Zabbix user to run it. But if your system does not have a user named Zabbix, you need to create a user, as follows:

# Groupadd Zabbix

# useradd-g Zabbix Zabbix


#/USR/LOCAL/ZABBIX-2.2.2/SBIN/ZABBIX_AGENTD

Default Port 10050

Vim/etc/rc.local

Add to

/usr/local/zabbix-2.2.2/sbin/zabbix_agentd

Set power-on self-boot




First, configure the firewall, open 10050, 10051 TCP and UDP ports

Vi/etc/sysconfig/iptables #编辑防火墙配置文件

-A input-s 192.168.21.127-m state--state new-m tcp-p TCP--dport 10050:10051-j ACCEPT

-A input-s 192.168.21.127-m state--state new-m udp-p UDP--dport 10050:10051-j ACCEPT

: wq! #保存退出

Service iptables Restart #重启防火墙使配置生效

Description: 192.168.21.127 is the IP address of the Zabbix server, which indicates that the port is open only to this IP, and if it is open to all IPs, the rules are as follows:

-A input-m state--state new-m tcp-p TCP--dport 10050:10051-j ACCEPT

-A input-m state--state new-m udp-p UDP--dport 10050:10051-j ACCEPT


Or you can simply empty the iptables table, Iptables-f, and then/etc/init.d/iptables save to clear all the rules of iptables.


Second, to close SELinux

Vi/etc/selinux/config

#SELINUX =enforcing #注释掉

#SELINUXTYPE =targeted #注释掉

Selinux=disabled #增加

: wq! #保存退出

Setenforce 0 #使配置立即生效


This article is from the "Lemon" blog, be sure to keep this source http://xianglinhu.blog.51cto.com/5787032/1630571

Source Installation Zabbix Client

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.