Install Zabbix Linux Client under Centos

Source: Internet
Author: User

(1) Download Zabbix client software

http://www.zabbix.com/download.php different  versions of Zabbix are also selected depending on the version of the client system.  I used the Linux 2.6.X i386 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) Unzip the client software

Tar zxvf zabbix_agents_2.0.3.linux2_6.i386.tar.gz   Note: This 2.0 tar package looks somewhat different from the others, and after running the unzip command, the files in the tar package are extracted into the current directory, a bin, and 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 for loop is to link the program under Zabbix/sbin to/usr/sbin  

(4) Add Zabbix monitoring port on the client

Vim/etc/services  Add the following content  zabbix_agent    10050/tcp  zabbix_agent    10050/udp  

(5) Copy and modify the client configuration file

Note: The download of the client source package is not a configuration file, Zabbix Client configuration file is also common, the Zabbix server on the CP can be used.  I have the Client Profile CP coming up on the Zabbix server.  (if you are following the configuration in my previous article, the client file is executed on the CP server in/etc/zabbix)    : scp/etc/zabbix/zabbix_agentd.conf client ip:/usr/local/etc  Vim/usr/local/etc/zabbix_agentd.conf  Modify the following server  = Monitor server IP  

(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  

(7) Start the Zabbix client and add boot-up

Service Zabbix_agentd start               #启动zabbix客户端  echo "service zabbix_agentd start" >>/etc/rc.local     # Boot from Boot  

(8) Review the process, indeed Zabbix whether the client started

Ps-ef | grep Zabbix   

You can see 6 Zabbix processes stating that the client installation is complete and the startup is successful.

About Zabbix on the Linux client installation is complete, follow-up research how to add monitoring and alarm, there are problems also ask you to put forward, learn together, communicate together.

Related Article

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.