Zabbix-agent Installation

Source: Internet
Author: User

Client Installation
1. Create Zabbix users and user groups

[Email protected] ~]# Groupadd Zabbix
[Email protected] ~]# useradd zabbix-g Zabbix
2. Download and compile

[Email protected] ~]# wget http://nchc.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/2.4.5/ Zabbix-2.4.5.tar.gz
[Email protected] ~]# tar zxf zabbix-2.4.5.tar.gz
[Email protected] ~]# CD zabbix-2.4.5
[Email protected] zabbix-2.4.5]#/configure--prefix=/usr/local/zabbix--enable-agent
[[email protected] zabbix-2.4.5]# make install
3. Set the startup script

[email protected] zabbix-2.4.5]# CP misc/init.d/fedora/core/zabbix_agentd/etc/init.d/
[[email protected] zabbix-2.4.5] #sed-i ' s/basedir=\/usr\/local/basedir=\/usr\/local\/zabbix/g '/etc/init.d/zabbix_ Agentd
4. Configure zabbix_agentd.conf

[Email protected] zabbix-2.4.5]# vi/usr/local/zabbix/etc/zabbix_agentd.conf
Logfile=/tmp/zabbix_agentd.log
Enableremotecommands=0
server=192.168.0.219
listenport=10050
listenip=192.168.0.230
Startagents=8
serveractive=192.168.0.219
Hostname=zabbix-agent1
Timeout=30
Unsafeuserparameters=1
5. Start the service and set the boot up

[[email protected] zabbix-2.4.5]#/etc/init.d/zabbix_agentd start
[Email protected] spool]# chkconfig zabbix_agentd on
[Email protected] spool]# Ps-ef|grep zabbix_agentd #查看服务是否启动
[Email protected] spool]# Netstat-lnp|grep 10050 #默认是10050端口
TCP 0 0 192.168.0.230:10050 0.0.0.0:* LISTEN 5272/zabbix_agentd

Zabbix-agent 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.