Linux Monitoring platform Build-zabbix

Source: Internet
Author: User
Tags mysql command line

Zabbix Monitoring Introduction
  • c/S architecture, based on the development, Monitoring Center support Web Interface Configuration and management
  • Single server node can support tens of thousands of clients
  • Latest Version 3.4, Official document Https://www.zabbix.com/manuals
  • 5 components
  • Zabbix-server Monitoring Center, receiving client escalation information, responsible for configuration, statistics, operation of data
  • Data storage to store data, such as MySQL
  • Web interface is also called Web UI, operating configuration under the Web interface is the main reason why Zabbix is easy to use.
  • Zabbix-proxy Optional component, which can replace the Zabbix-server function, reduce the pressure of the server
  • Zabbix-agent client software, responsible for collecting the data of each monitoring service or project, reporting

    Zabbix Monitoring Flowchart

    Server-side Installation Zabbix

  • Official website Www.zabbix.com/download
  • wget http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm
  • RPM-IVH zabbix-release-3.2-1.el7.noarch.rpm
  • Yum install-y zabbix-agent zabbix-get zabbix-server-mysql zabbix-web zabbix-web-mysql
  • Will install httpd and PHP
  • If MySQL is not installed before, you need to install MySQL
  • VIM/ETC/MY.CNF//need to add configuration
  • Character_set_server = UTF8
  • After restarting the MYSQLD service, go to the MySQL command line and create the Zabbix library
  • Create database Zabbix character set UTF8;
  • Create user grant all on zabbix.* to ' Zabbix ' @ ' 127.0.0.1 ' identified by ' Aming-zabbix ';
  • Import data
  • cd/usr/share/doc/zabbix-server-mysql-3.2.7
  • Gzip-d create.sql.gz
  • Mysql-uroot-pxxx Zabbix < Create.sql
  • Systemctl start httpd; Systemctl Enable httpd
  • vim/etc/zabbix/zabbix_server.conf//Modify or add
  • dbhost=127.0.0.1//Increase on Dbname=zabbix
  • Dbpassword=aming-zabbix//Add below Dbuser
  • Systemctl Start Zabbix-server
  • Systemctl Enable Zabbix-server
  • NETSTAT-LNTP |grep Zabbix//view listening port
  • The browser accesses the Http://ip/zabbix/web interface under configuration Zabbix
  • User name Admin password Zabbix
  • The first thing to do in the background is to change the password
Forgot admin password how to do
进入mysql命令行,选择zabbix库mysql -uroot -p zabbixupdate users set passwd=md5(‘newpasswd’) where alias=‘Admin’;这样就更改了Admin用户的密码
Zabbix Client Installation

You also need to download the Zabbix Yum source on the client.
wget repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm
RPM-IVH zabbix-release-3.2-1.el7.noarch.rpm
Yum Install-y zabbix-agent
vim/etc/zabbix/zabbix_agentd.conf//Modify the following configuration
server=127.0.0.1 modified to server=192.168.133.130//define the IP of the server (passive mode)
serveractive=127.0.0.1 modified to serveractive=192.168.133.130//define IP (Active mode) for the server
Hostname=zabbix Server modified to hostname=aming-123//This is a custom hostname, and you will need to set the same host name under the Web interface.
Systemctl Start Zabbix-agent
Systemctl Enable Zabbix-agent

Active mode and Passive mode

Active or passive is relative to the client
Passive mode, the server will actively connect to the client to obtain monitoring project data, the client passively accept the connection, and to pass the monitoring information to the server
Active mode, the client will proactively report the monitoring data to the service side, the server is only responsible for receiving.
When the number of clients is very large, it is recommended to use active mode, which can reduce the pressure on the service side.
Server has a public network IP, the client only intranet IP, but can connect the network, this scenario is suitable for active mode

Add Host
先添加主机组aming-test再添加主机,主机名称和可见名称都写aming-02群组选择aming_testIP地址填写客户端的ip 192.168.133.132几个概念:应用集、监控项、触发器、图形、自动发现、web监测
Add a template
可以自定义一个常用模板,方便给新增主机添加监控项目自定义aming模板把其他自带模板里面的某些监控项目(比如cpu、内存等)复制到aming模板里定义触发器添加图形自动发现,找到Template OS Linux,点击右侧的自动发现,参考Mounted filesystem discovery和Network interface discovery定义规则可以直接导出、导入模板,然后再删除不需要的对象

Linux Monitoring platform Build-zabbix

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.