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/03 Report--
Zabbix is an enterprise-level open source solution based on WEB interface that provides distributed system monitoring and network monitoring capabilities.
Zabbix consists of two parts, zabbix server and optional component zabbix agent.
Zabbix server can provide remote server / network status monitoring and data collection through SNMP,zabbix agent, ping, port monitoring and other methods. It can run on Linux, Solaris, HP-UX, AIX, Free BSD, Open BSD, OS X and other platforms.
Zabbix agent needs to be installed on the monitored target server, and it mainly collects hardware information or operating system-related memory, CPU and other information. Zabbix agent can run on Linux, Solaris, HP-UX, AIX, Free BSD, Open BSD, OS X, Tru64/OSF1, Windows NT4.0, Windows 2000/2003/XP/Vista) and other systems
My experimental environment
Operating system host IP host name installation software installation zabbix version MySQL version
Centos7.3192.168.0.20zabbixZabbix-serverZabbix 3.4.10MySQL5.7.22centos6.5192.168.0.157Test02zabbix-agent
Zabbix-agent-3.4.10/
Officially start installation of zabbix
1. The yum source needs to be pre-installed on the monitoring host, and the installation will begin now.
[root@zabbix ~] # rpm-ivh http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm
2. Install Zabbix-server package and zabbix-agent package
[root@zabbix ~] # yum-y install zabbix-server-mysql zabbix-web-mysql zabbix-agent
3. Download and install mysql source
[root@zabbix ~] # rpm-ivh https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
4. View the currently available Mysql installation sources
[root@zabbix ~] # yum repolist enabled | grep "mysql.*-community.*" mysql-connectors-community/x86_64 MySQL Connectors Community 51mysql-tools-community/x86_64 MySQL Tools Community 63mysql57-community/x86_64 MySQL 5.7 Community Server 267
5. Install the MySQL server
[root@zabbix ~] # yum-y install mysql-community-server
6. Start the mysql service and set boot
[root@zabbix ~] # systemctl start mysqld [root@zabbix ~] # systemctl enable mysqld
7. Enter MySQL and change your password
[root@zabbix ~] # cat / var/log/mysqld.log | grep password [root@zabbix ~] # mysql-uroot-pRir.*sJUX6M*mysql > ALTER USER USER () IDENTIFIED BY 'Pass123 passport'
8. Create database and zabbix users and authorize them
Mysql > create database zabbix character set utf8 collate utf8_bin;Query OK, 1 row affected (10.03 sec) mysql > grant all privileges on zabbix.* to zabbix@localhost identified by 'Pass123 alternative question OK, 0 rows affected, 1 warning (0.00 sec)
9. Import the initial schema (Schema) and data
[root@zabbix ~] # cd / usr/share/doc/zabbix-server-mysql-3.4.10/ [root@zabbix zabbix-server-mysql-3.4.10 ~] # zcat create.sql.gz | mysql- uzabbix-pPass123!-D zabbixmysql: [Warning] Using a password on the command line interface can be insecure.
10. Then go to mysql to see if the content is imported.
Mysql > show tables from zabbix
Mysql > select count (*) tables,table_schema from information_schema.tables where table_schema = "zabbix"
Modify the configuration file to authorize and start the Zabbix Server service
1. Modify the configuration file
[root@zabbix ~] # vim / etcswab Zabixrabbit server.confLogFileGetCZAXZAXREVERVER server.logLogFileSize0PidFileGRAZZRunZAXZBIXUBNameZabxDBUserZABxDBPasswordPass123SNMPTrapperFilesteps lead to varlogptrapThn snmptrap.logTimeout4AlertScriptsPathology and the use of rlibzubix
2. Authorize the service
[root@zabbix ~] # chown-R zabbix:zabbix / etc/zabbix/ [root@zabbix ~] # chmod-R 755 / etc/zabbix/
3. Start the Zabbix Server service
[root@zabbix ~] # systemctl start zabbix-server [root@zabbix ~] # systemctl enable zabbix-server
Edit the PHP configuration of the Zabbix front end
1) the Apache configuration file for the zabbix front end is located in / etc/httpd/conf.d/zabbix.conf. Some PHP settings have been configured.
[root@zabbix ~] # vim / etc/httpd/conf.d/zabbix.conf + 15 find the tag and add a php_value date.timezone Asia/Shanghai under it
2) start the apache service and set it to boot automatically
[root@zabbix ~] # systemctl start httpd [root@zabbix ~] # systemctl enable httpd
Log in to the web client to add a Linux machine
1. Visit ip: http://192.168.0.20/zabbix/index.php
The default user name is: Admin password: zabbix
2, add a Linux client machine (ip:192.168.0.157)
2.1) add the source under centos6:
[root@Test02 ~] # rpm-ivh http://repo.zabbix.com/zabbix/3.4/rhel/6/x86_64/zabbix-release-3.4-1.el6.noarch.rpm
2.2) install client-side agent software
[root@Test02 ~] # yum-y install zabbix-agent
2.3) modify agent configuration file
[root@Test02 ~] # grep-v'^ $'/ etc/zabbix/zabbix_agentd.conf | grep-v'^ # 'PidFile=/var/run/zabbix/zabbix_agentd.pidLogFile=/var/log/zabbix/zabbix_agentd.logLogFileSize=0Server=192.168.0.20ServerActive=192.168.0.20:10050Hostname=Test02Include=/etc/zabbix/zabbix_agentd.d/*.conf
2.4) authorize the profile
[root@Test02 ~] # chmod 775 / etc/zabbix/zabbix_agentd.conf
2.5) start the agent service and check whether the service has started successfully
[root@Test02 ~] # / etc/init.d/zabbix-agent start [root@Test02 ~] # netstat-lntup | grep zabbix_agent
3, add the first host back to the web page
3.1) create a host in the configuration-- host--
3.2) add host details
3.3) add host template information
Such a client Linux is basically added, and the Zabbix icon turns green in a few minutes to prove that the addition is successful.
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.