CentOS6.5 install and deploy zabbix

Source: Internet
Author: User
Download idea) create a user # groupadd &

Download

Http://www.zabbix.com/downloads/2.2.1/zabbix_agents_2.2.1.linux2_6_23.i386.tar.gz

All Agent versions Download: http://www.zabbix.com/download2.php

 

 

Install

1) create a user

# Groupadd zabbix

# Useradd-g zabbix

2) unzip the package.

# Mkdir/etc/zabbix_agent

# Tar-zxvf zabbix_agents_2.2.1.linux2_6_23.i386.tar.gz-C/etc/zabbix_agent

 

3) install the service

Cat/etc/services | grep zabbix *

Zabbix-agent 10050/tcp Zabbix Agent

Zabbix-agent 10050/udp Zabbix Agent

Zabbix-trapper 10051/tcp Zabbix Trapper

Zabbix-trapper 10051/udp Zabbix Trapper

 

4) modify the configuration file

Vim/etc/zabbix_agent/conf/zabbix_agent.conf

Modify the ip address of Zabbix server

Server = 192.168.30.145 # server IP address, please modify

5) start

Etc/zabbix_agent/sbin/zabbix_agentd-c etc/zabbix_agent/conf/zabbix_agentd.conf

Echo "etc/zabbix_agent/sbin/zabbix_agentd-c etc/zabbix_agent/conf/zabbix_agentd.conf">/etc/rc. local

6) add to system directory

Ln-s/etc/zabbix_agent/sbin/*/usr/local/sbin/

Ln-s/etc/zabbix_agent/bin/*/usr/local/bin/

7) test. the following command must be executed on the server, where 192.168.30.145 is the ip address of the agent.

#/Usr/local/zabbix/bin/zabbix_get-s192.168.30.145-p10050-k "system. uptime"

115030

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.