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