Zabbixagent Installation Configuration
(1) Download and install zabbixagent software
# wget http://iweb.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/2.4.8/zabbix-2.4.8.tar.gz
[Email protected]~]# tar XF zabbix-2.4.8.tar.gz
[[Email protected]~]# CD zabbix-2.4.8
[[Email protected]]#./configure--prefix=/usr/local/zabbix--enable-agent
[[Email protected]]# make && make install
[Email protected]]# CP misc/init.d/fedora/core5/zabbix_agentd/etc/init.d/
(2) configuration zabbix_agentd
[Email protected]]# groupadd Zabbix
[Email protected]]# useradd-g Zabbix Zabbix
[Email protected]]# mkdir-p/usr/local/zabbix/logs
[Email protected]]# chown zabbix.zabbix/usr/local/zabbix/-R
[[Email protected]]# vim/usr/local/zabbix/etc/zabbix_agentd.conf
[[Email protected]]# cat/usr/local/zabbix/etc/zabbix_agentd.conf | Egrep-v "^#|^$"
Pidfile=/usr/local/zabbix/logs/zabbix_agentd.pid
Logfile=/usr/local/zabbix/logs/zabbix_agentd.log
server=192.168.1.214
listenport=10050
serveractive=192.168.1.214
hostname=zabbix_agent212
Timeout=15
include=/usr/local/zabbix/etc/zabbix_agentd.conf.d/
[[Email protected]]#
(3) Configuring the Zabbixagent system startup script
[[Email protected]]# vim/etc/init.d/zabbix_agentd
prog= "Zabbix Agent"
Zabbix_bin= "/usr/local/zabbix/sbin/zabbix_agentd"
Conf_file= "/usr/local/zabbix/etc/zabbix_agentd.conf"
Start () {
...
Daemon $ZABBIX _bin-c $CONF _file
...
}
(4) firewall settings, open firewall port 10050
[[Email protected]~]# iptables-a input-p tcp-m tcp--dport 10050-j ACCEPT
[[Email protected]~]# service Iptables Save
iptables:saving firewall rules to/etc/sysconfig/iptables:[OK]
[[Email protected]~]#
(5) Start zabbix_agentd
[[Email protected]~]#/etc/init.d/zabbix_agentd Start
Startingzabbix Agent: [OK]
(6) boot from boot
[Email protected]~]# chkconfig--add zabbix_agentd
[Email protected]~]# chkconfig--level Zabbix_agentdon
[[Email protected]~]#
(7) test whether the Zabbixagent is working properly
[[Email protected]~]#/usr/local/zabbix/sbin/zabbix_agentd-c/usr/local/zabbix/etc/zabbix_agent.conf-t System.uptime
System.uptime [u|1574020]
[[Email protected]~]#
Deploy Zabbix monitor MySQL (ii) Install Zabbix Agent