In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Introduction to Zabbix:
* Zabbix is a distributed system monitoring and network device monitoring system based on Web interface, similar to Cacti,Nagios, which provides distributed monitoring and centralized Web management interface. The monitored object only needs to support the SNMP protocol or run the Zabbix_agent agent. The official website of Zabbix is http://www.zabbix.com/, and the software can be downloaded and used freely. * be able to monitor various network parameters and provide a flexible notification mechanism to enable administrators to quickly locate faults and resolve them. * it is composed of zabbix server and zabbix agent. * remote hosts and network devices can be monitored by SNMP, zabbix, agent, ping, port monitoring and other methods.
Comparison of Zabbix and Cacti,Nagios:
* all are managed based on SNMP protocol; SNMP: simple Network Management Protocol (SNMP), which is composed of a set of network management standards, including an application layer protocol (application layer protocol), database model (database schema) and a set of data objects * Cacti: small monitoring software can be used by more than a dozen servers, and the advantage is that image processing and monitoring is more prominent. * NAGIOS: has the advantage of alarm mechanism, when the system or service status is abnormal, it will send emai or SMS alarm to the network operation and maintenance personnel as soon as possible, and send out normal email or SMS notification after the status is restored, but it is more troublesome to build; * Zabbix: combining the advantages of the former two, it is easy to build, and it can not only have a good image processing interface, but also can carry out SMS and email alarm mechanism.
Zabbix features:
* Host performance monitoring, network equipment performance monitoring, database performance monitoring, ftp and other common protocols monitoring * flexible and customizable warning mechanism can be used to allow users to send E-mail-based warnings to events to ensure that relevant maintenance personnel respond quickly to problems. * you can also use stored data to provide outstanding reports and real-time graphical data processing to achieve centralized monitoring of linux,windows hosts 24 hours a day. * Monitoring projects can include CPU, memory, disk, Nic traffic, service availability and other resources.
The mode of operation of Zabbix:
* Zabbix collects data through Cramp S mode, and displays and configures it on the web side through Bamp S mode. Among them, Zabbix_Server can run on linux systems such as CentOS,RHEL,SUSE,Ubuntu, and it also needs to use LAMP platform to host database and web interface. * the monitored end runs the zabbix_agent service to obtain host data, and then sends the collected data to Server (active mode) or Server to take the data actively (passive mode).
Environment deployment:
Host operating system IP address service Zabbix monitor side CentOS7192.168.72.128lamp architecture, zabbix serverZabbix monitored side CentOS7192.168.72.163zabbix_agentd
Deploy the Zabbix monitor:
1. First, install and configure the LAMP environment to meet the code deployment requirements of zabbix; * turn off the firewall, selinux,yum install httpd,mariadb,php and other related software packages * systemctl stop firewalld.service* setenforce 0* yum install-y httpd mariadb-server mariadb php php-mysql php-gd libjpeg* php-ldap php-odbc php-pear php-xml php-xmlrpc php-mhash
two。 Modify the httpd configuration file after installation: * vim / etc/httpd/conf/httpd.confServerName www.yun.com:80 DirectoryIndex index.html index.php
3. Change it to China time zone: * vim / etc/php.inidate.timezone = PRC
4. Enable httpd service and mariadb service: * systemctl start httpd.service* systemctl start mariadb.service* netstat-antp | egrep'80 | 3306'# View the port of httpd,mariadb service
5. Initialize mariadb configuration: * mysql_secure_installation # initialize mariadb security configuration, configure interactively, configure login password for account root, select n, and finally select y
6. Enter the database to set administrative permissions for zabbix users: * create database zabbix character set utf8 collate utf8_bin; # create zabbix database * grant all privileges on zabbix.* to 'zabbix'@'%' identified by' abc123'; # authorize zabbix users * flush privileges; # update database settings
7. There will be some blank users in the database, which will affect the zabbix connection to the database, so you need to delete these blank users:
If there is a blank user, the figure is as follows (reprinted by others):
8. Write a php web document on the web site and test the connection to the database: * vim / var/www/html/index.php
9. The browser tests the database connection:
Next, deploy and install the Zabbix server:
1. Use yum to install the zabbix server and the required software packages: * yum install php-bcmath php-mbstring-y * rpm-ivh http://repo.zabbix.com/zabbix/3.5/rhel/7/x86_64/zabbix-release-3.5-1.el7.noarch.rpm # generate a yum source with zabbix packages * yum install zabbix-server-mysql zabbix-web-mysql-y # install the zabbix service
two。 Import zabbix-related data into the database: * zcat / usr/share/doc/zabbix-server-mysql-4.0.0/create.sql.gz | mysql- uzabbix-p zabbix
3. Next, modify the zabbix configuration file and add the password setting: * vim / etc/zabbix/zabbix_server.conf * grep-n'^'[amurz] / etc/zabbix/zabbix_server.conf
4. Modify time zone: * vim / etc/httpd/conf.d/zabbix.confphp_value date.timezone Asia/Shanghai
5. Change the font to italics to prevent garbled characters on the page: * vim / usr/share/zabbix/include/defines.inc.php
6. Copy the downloaded font file to the / usr/share/zabbix/fonts directory and note that the font name corresponds to the file:
7. Enable the zabbix service and set it to enable the auto-boot item: * systemctl start zabbix-server* systemctl enable zabbix-server* systemctl restart httpd.service # restart the httpd service * netstat-antp | grep zabbix # View the port
8. Use browser to install zabbix monitoring software: * browser input: http://192.168.72.128/zabbix/* for installation. After installation, enter default user: Admin password: zabbix;* click user, set up Chinese interface
Install the monitored side: zabbix_agentd
1. Turn off the firewall, selinux, and use yum to install zabbix-agent:* systemctl stop firewalld.service* setenforce 0 * rpm-ivh http://repo.zabbix.com/zabbix/3.5/rhel/7/x86_64/zabbix-release-3.5-1.el7.noarch.rpm # install zabbix's yum source * yum install-y zabbix-agent # install the zabbix client
two。 Modify the configuration file after the installation is complete: * vim / etc/zabbix/zabbix_agentd.confServer=192.168.195.147ServerActive=192.168.195.147Hostname=agent* grep-n'^'[Amurz] / etc/zabbix/zabbix_agentd.conf # View the newly modified configuration file
3. Enable the service: * systemctl enable zabbix-agent.service* systemctl restart zabbix-agent.service* netstat-anpt | grep zabbix
4. Add monitored hosts and monitoring items in the web interface configuration:
5. Add a template to the monitored host and select the monitoring item:
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.