Deploy Zabbix monitor MySQL (ii) Install Zabbix Agent

Source: Internet
Author: User

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

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.