Zabbix Agent source code compilation and installation

Source: Internet
Author: User


Brief introduction:

Tidy up the Zabbix Agent separately.

1. installation package Selection

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

There are two source code packages, one is to install the Zabbix Server package, you can specify the parameters--enable-agent way to install the agent
One is to install the Zabbix Agent package, unzip the configuration, and by default provides a template to monitor MySQL performance Key

2, installation (I choose the first way)

Shell > Useradd-r-s/sbin/wget http://jaist.dl.sourceforge.net/project/zabbix/ zabbix%20latest%20stable/2.4.6/zabbix-2.4.6.tar.gztar zxf zabbix-2.4. 6. Tar  > CD zabbix-2.4. 6  makeinstall

3. Configuration

Shell >CP/usr/local/src/zabbix-2.4.6/misc/init.d/fedora/core/zabbix_agentd/etc/init.d/# Copy startup script Shell>sed-I.'s#basedir=/usr/local#basedir=/usr/local/zabbix_agent#'/etc/init.d/Zabbix_agentd # Modify Agent installation path Shell>grep-vp'^#|^$'/usr/local/zabbix_agent/etc/zabbix_agentd.conf # tuning profile logfile=/tmp/Zabbix_agentd.logserver=121.42.111.220# Zabbix Server IP (passive mode, client passive) serveractive=127.0.0.1# Active mode, if used also fill Zabbix Server IP, do not use can be commented out hostname=101.201.142.247# itself IP, Zabbix Server needs to be used when adding hosts, not necessarily IP Include=/usr/local/zabbix_agent/etc/zabbix_agentd.conf.d/*. conf # Load Custom monitoring profile Unsafeuserparameters=1 # allow custom Key

4. Start

Shell >> Chkconfig--Zabbix Server IP'  10050 -j ACCEPT # because it is the client passive mode, so to open the end confession Zabbix Server Connection

Zabbix Agent source code compilation and installation

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.