zabbix-Installing Agent Client (Linux edition)

Source: Internet
Author: User

Installation

Create user

    1. Groupadd Zabbix

    2. Useradd-g Zabbix Zabbix



1) Unzip


Click ( here ) to collapse or open

    1. TAR-ZXVF zabbix-2.2.4.tar.gz

2) Installation



    1. CD zabbix-2.0.1

    2. ./configure--enable-agent

    3. Make install



3) Installation Services


Click ( here ) to collapse or open

    1. Cat >>/etc/services<<eof

    2. Zabbix-agent 10050/tcp Zabbix Agent

    3. Zabbix-agent 10050/UDP Zabbix Agent

    4. Zabbix-trapper 10051/tcp Zabbix Trapper

    5. Zabbix-trapper 10051/udp Zabbix Trapper

    6. Eof



4) Modify the configuration file


    1. Vi/etc/zabbix_agent.conf


Modify IP for Zabbix server

server=127.0.0.1 #若本机不是server, modify the

Host=*.*.*.* #agentIP地址

5) Create a service

    1. CP misc/init.d/fedora/core/zabbix_agentd/etc/init.d/

    2. chmod a+x/etc/init.d/zabbix_*






6) Start



    1. Service Zabbix_agentd Start

    2. PS Ax|grep Zabbix_agentd







8) test, the following command needs to be executed on the server side, where 127.0.0.1 is the agent's IP


Click ( here ) to collapse or open

    1. Zabbix_get-s192.168.60.22-p10050-k "System.uptime"

      If not executed, don't be too tangled.


This article is from the "luojing" blog, make sure to keep this source http://luojinghappy.blog.51cto.com/683032/1618892

zabbix-Installing Agent Client (Linux edition)

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.