Zabbix The Linux client installation process

Source: Internet
Author: User
Tags linux

Last said the Zabbix server installation, today on Linux installed the client, the process is as follows:

(1) Download Zabbix client software

http://www.zabbix.com/download.php

Choose a different version of the Zabbix, depending on the client system version.

I use the Linux 2.6.X i386 to take this as an example

wget www.zabbix.com/downloads/2.0.3/zabbix_agents_2.0.3.linux2_6.i386.tar.gz

(2) New Zabbix Users and Groups

Groupadd Zabbix #新建zabbix组

Useradd-g Zabbix Zabbix #新建zabbix用户并将其加入到zabbix组

(3) Decompression client software

Tar zxvf zabbix_agents_2.0.3.linux2_6.i386.tar.gz

Note: This 2.0 tar package looks a little different from the other, after running the decompression command is to extract the files in the tar package to the current directory, a bin, a sbin.

Mkdir/usr/local/zabbix

MV Bin/usr/local/zabbix #将解压出来的bin目录移动到新建的zabbix下

For i in *;d o ln-s/usr/local/zabbix/bin/${i}/usr/bin/${i};d one

MV Sbin/usr/local/zabbix #将解压出来的sbin目录移动到新建的zabbix下

For i in *;d o ln-s/usr/local/zabbix/sbin/${i}/usr/sbin/${i};d one

The For loop is to link the program under Zabbix/sbin to/usr/sbin

(4) Add the Zabbix monitoring port on the client

Vim/etc/services

Add the following content

Zabbix_agent 10050/tcp

Zabbix_agent 10050/UDP

Save Exit!

(5) Copy and modify the client configuration file

Note: The download of the client source package is not a configuration file, Zabbix client's configuration file is also common, the Zabbix server on the CP over can be used.

I've got the client's profile CP on the Zabbix server.

(If you are following the configuration of my previous article, the client file is in/etc/zabbix CP)

Server execution: scp/etc/zabbix/zabbix_agentd.conf client ip:/usr/local/etc

Vim/usr/local/etc/zabbix_agentd.conf

Modify the following

Server = Monitor Servers IP

Hostnae= the host name of this machine

(6) Copy startup script

Cp/usr/local/zabbix/sbin/zabbix_agentd/etc/init.d

Copy boot script to/ETC/INIT.D

chmod A+x/etc/init.d/zabbix_agentd

Add executable permissions for startup under/ETC/INIT.D

(7) Start the Zabbix client and add the Power-on self starter

Service Zabbix_agentd Start #启动zabbix客户端

echo "Service zabbix_agentd start" >>/etc/rc.local #开机自启动

(8) View the process, do Zabbix the client to start

Ps-ef | grep Zabbix

You can see 6 Zabbix processes that indicate client installation complete and start successfully.

About Zabbix on the Linux client installed on the completion of the follow-up study on how to add monitoring and alarm, there are questions please put forward, learn together, exchange.

This article comes from "My future is not a dream." "Blog, please be sure to keep this source http://song49.blog.51cto.com/4480450/1030102

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/Network/wgzs/

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.