In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Basic introduction of Zabbix 3.0 [1]
Zabbix
Zabbix introduction to zabbix Zabbix is a highly integrated network monitoring solution that can provide enterprise-level open source distributed monitoring solutions, continuously maintained and updated by a foreign team, the software can be downloaded and used freely, the operation team makes a profit by providing fee-based technical support zabbix is an enterprise-level open source solution based on Web interface, providing distributed system monitoring and network monitoring functions. Zabbix can monitor various network parameters, ensure the safe operation of the server system, and provide a flexible notification mechanism to enable system administrators to quickly locate / solve all kinds of problems. Zabbix is mainly composed of two parts: zabbix server and zabbix agent. Optional zabbix proxy zabbix server can monitor the status of remote servers or networks through SNMP,zabbix agent,fping port monitoring, data collection and other functions. Both Linux and Unix platforms are supported. Only client-side Zabbix functions can be installed on Windows platforms.
① has the functions of common commercial monitoring software (host performance monitoring, network equipment performance monitoring, database, performance monitoring, FTP and other general protocol monitoring, multiple alarm methods, detailed report chart drawing)
② supports auto-discovery of network devices and servers (this can be achieved by configuring auto-discovery server rules)
③ supports automatic discovery (low discovery) key to realize batch monitoring of dynamic monitoring items (need to write scripts)
④ supports distributed, centralized display and management of distributed monitoring points.
⑤ expandable, server provides a general interface (api function), can develop and improve all kinds of monitoring (according to the relevant interfaces to write programs to achieve) easy to write plug-ins, you can customize monitoring items, alarm level settings.
⑥ data collection
Availability and performance testing
Support for snmp (including trapping and polling), IPMI,JMX,SSH,TELNET
Custom detection
Customize the frequency of data collection
Server / agent and client mode
Flexible trigger
You can define very flexible problem thresholds, called triggers, from the reference values of the back-end database
Highly customizable alarm
Send notifications, customizable alarm upgrades, recipients, media types
Notify that useful variables can be used with macro variables
Automatic operations include remote commands
Real-time drawing function
Monitoring items draw the data on the graph in real time.
WEB monitoring capability
ZABBIX can simulate a mouse click on a website and check the return value and response time
Api function
The application of api function can be easily combined with other systems, including the use of mobile phone clients.
For more features, please see
Http://www.zabbix.com/documentation.php
Zabbix version
Zabbix 3.0 Manual
Zabbix 2.4 Manual
Zabbix 2.2 Manual
Zabbix 2.0 Manual
Download address: http://www.zabbix.com/documentation.php
This time, yum is used to install zabbix3.0. Use Centos7
Advantages and disadvantages of Zabbix
Advantages
1. Open source, no software cost input
2. Server has low requirements for equipment performance.
3. Support a large number of devices, with a variety of monitoring templates
4. Support distributed centralized management, have automatic discovery function, and realize automatic monitoring.
5. Open interface, strong expansibility, easy to write plug-ins
6. When the monitoring item is more than one server queue is large, the passive state can be adopted, and the monitored client takes the initiative from
7. The server side downloads the item to be monitored and then takes the data and uploads it to the server side. This method puts less load on the server.
8. Api support for easy integration with other systems
Shortcoming
Need to install agent on the monitored host, all the data are stored in the database, the resulting data is very large, the bottleneck is mainly in the database.
Zabbix monitoring principle
Zabbix collects data through the Cramp S mode, and displays and configures it on the web side through the Bamp S mode.
Monitored side: the host collects data by installing agent, and the network equipment collects data by SNMP.
Server side: collect the data sent by SNMP and agent, write it to the database (MySQL,ORACLE, etc.), and then display it in the front end of web through php+apache.
Zabbix operating conditions
Server:Zabbix Server needs to run in LAMP (Linux+Apache+Mysql+PHP) environment (or LNMP) with low hardware requirements
Agent: the existing agent basically supports the common OS in the market, including Linux, HPUX, Solaris, Sun,
Windows
SNMP: supports all kinds of common network devices
SNMP (Simple Network Management Protocol, simple Network Management Protocol)
Zabbix monitoring process logic diagram
Monitoring type
Hardware monitoring is suitable for physical machine, remote management card (iDRAC), IPMI (only platform management interface)
Ipmitools:,MegaCli (view Raid disk)
System monitoring: monitoring cpt:lscpu, uptime, top, vmstat 1, mpstat 1, htop
Monitoring memory: free-m,
* * Monitoring hard disk: * * df-h, iotop
* * Monitoring network: * * iftop, netstat, ss
* * Application service monitoring: * * nfs, MySQL, nginx, apache, php, rsync
For more detailed monitoring types, please see http://www.abcdocker.com/abcdocker/1376
Introduction of zabbix
All monitoring areas can be integrated into Zabbix
Hardware monitoring: Zabbix, IPMI, lnterface
System monitoring: Zabbix, Agent, Interface
Java monitoring: Zabbix, JMX, lnterface
Network device monitoring: Zabbix, SNMP, lnterface
Application service monitoring: Zabbix, Agent, UserParameter
MySQL database monitoring: percona-monitoring-plulgins
URL monitoring: Zabbix Web monitoring
II. Configuration of Zabbix environment
1. Environmental information
[root@localhost ~] # cat / etc/redhat-release CentOS Linux release 7.2.1511 (Core) [root@localhost ~] # uname-r3.10.0-327.28.3.el7.x86_64
2. Yum installation
The Aliyun yum source already provides zabbix3.0, so we need to use the official yum source. The official Yum source download will be slow.
[root@localhost ~] # rpm-ivh http://mirrors.aliyun.com/zabbix/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm
Question: why download the release version of zabbix?
[root@localhost ~] # ls / etc/yum.repos.d/CentOS-Base.repo CentOS-Media.repo epel.repo.rpmnewCentOS-CR.repo CentOS-Sources.repo epel-testing.repoCentOS-Debuginfo.repo CentOS-Vault.repo zabbix.repoCentOS-fasttrack.repo epel.repo
Because downloading this version will generate a zabbix.repo file under yum.repos.d
3. Install related software packages
[root@localhost ~] # yum install zabbix-server zabbix-web zabbix-server-mysql zabbix-web-mysql mariadb-server mariadb- y
Tip: in Centos7, mysql is renamed to mariadb
4. Modify PHP time zone settings
[root@localhost ~] # sed-I's setting # php_value date.timezone Europe/Riga@php_value date.timezone Asia/Shanghai@g' / etc/httpd/conf.d/zabbix.conf III. Database settings
1. Start the database
[root@localhost ~] # systemctl start mariadb
two。 Create zabbix database and users
Mysqlcreate database zabbix character set utf8 collate utf8_bin;grant all on zabbix.* to zabbix@'localhost' identified by '123456 leaves with exit
3. Import data
[root@localhost] # cd / usr/share/doc/zabbix-server-mysql-3.0.4/ [root@localhost zabbix-server-mysql-3.0.4] # lltotal 1836 ChangeLog-rw-r--r-- 1 root root 1158948 Jul-1 root root 98 Jul 22 11:05 AUTHORS-rw-r--r-- 1 root root 687803 Jul 22 11:05 ChangeLog-rw-r--r-- 1 root root 17990 Jul 22 11:06 COPYING-rw-r--r-- 1 root root 1158948 Jul 24 02:59 create.sql.gz-rw-r--r-- 1 root root 52 Jul 22 11:06 NEWS-rw-r--r-- 1 root root 188 Jul 22 11:05 README [root@localhost zabbix-server-mysql-3.0.4] # zcat create.sql.gz | mysql- uzabbix-p123456 zabbix
We use zcat to view the sql.gz package. Basically similar to cat
4. Modify zabbix configuration file
[root@localhost zabbix-server-mysql-3.0.4] # vim / etc/zabbix/zabbix_server.conf DBHost=localhost # Host DBName=zabbix # Database name DBUser=zabbix # Database user DBPassword=123456 # Database password
5. Start zabbix and apache
[root@localhost ~] # systemctl start zabbix-server [root@localhost ~] # systemctl start httpd
6.Web interface installs master
Access address: http://192.168.56.11/zabbix/setup.php
Click Next step to install
First of all, make sure that there is no no. If the time zone is not changed, we will be prompted to make changes.
The account passwords are all set in the configuration file. The default port is 3306.
Give our zabbix a name, which will be displayed in the upper right corner.
Finally, we will show our configuration information so that we can see where there are errors.
Click Finish
Tip: please change your password as soon as you go up
7. Configure the zabbix-agent side
[root@localhost ~] # vim / etc/zabbix/zabbix_agentd.conf Server=127.0.0.1 modifies the IP address (passive mode IP address) ServerActive=127.0.0.1 active mode, and actively reports [root@localhost ~] # systemctl start zabbix-agent to the server
View port number
[root@localhost] # netstat-lntpActive Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0 0 Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 3306 0.0 0 0 LISTEN 7806/mysqld tcp 0 0 0. 0 0. 0.0LISTEN 11511/zabbix_agentd tcp * LISTEN 1062/sshd tcp 00 127.0.0.1 LISTEN 11511/zabbix_agentd tcp 25 0.0.0.0 LISTEN 2208/master tcp 00 0.0.0.010 10050 0.0.0.0 00 0.0.0.0 LISTEN 2692/snmpd tcp6 10051 0.0.0.0 LISTEN 11335/zabbix_server tcp 00 127.0.0.1 199 0.0.0.0 00:: 80:: * LISTEN 11408/httpd tcp6 0 0: 22: * LISTEN 1062/sshd tcp6 0 0:: 1:25:: * LISTEN 2208/master tcp6 0 0: 443 : * LISTEN 11408/httpd tcp6 00:: 10050:: * LISTEN 11511/zabbix_agentd tcp6 00: 10051: * LISTEN 11335MB Zabibix _ server IV, Web interface configuration
Find Configuration---- > Hosts to add a monitoring host
After enabling it, if there is an error, we can take a look at zabbix's log.
[root@localhost ~] # ls / var/log/zabbix/zabbix_zabbix_agentd.log zabbix_server.log
When the ZBX turns green, the monitoring is successful. Because we do not configure SNMP, JMX, IPMI, and so on. So I sent the surveillance.
Because we have only one server installed now, there is only one host. We can check the CPU and basic information of this host.
Click Monitoring-Graphs to select the content we want to monitor
We can choose any one to view the information.
For example, let's look at the load of CPU
The sum of the number of processes being processed by CPU and waiting for CPU to process over a period of time. Load Average reflects the usage status of CPU from another perspective.
These monitoring is actually zabbix looking up data in the database and then using jd to draw pictures.
Zabbix performance depends on mysql database
5. Zabbix page security settings
1. Set the default account password
After setting up Chinese
VI. Zabbix menu description
A brief introduction to the menu above Zabbix
Below Doshboard, you can set the graphics you want to set, and add them as follows:
At this point, you can find what you like and open it directly.
Screens is actually an aggregate graph that can put multiple images together. Then put it on the big screen for others to see.
Maps is an architecture diagram.
Status of Zabbix is a status bar.
The first line is whether Server runs [yes] and the following running address
The machine monitored in the second line (enabled / closed / template)
Third line monitoring item (enabled / off / unsupported)
Status of the fourth line trigger (enabled / off / [failed / normal])
Number of current users in line 5 (number of online users)
Line 6 A new value that zabbix can receive per second
The level of alarm
We can set the alarm to ring at the front.
The monitoring list on our home page can be dragged at will
We can also turn it off and set the refresh time
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.