In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Ubuntu 14.04 (LNMP) installation configuration Zabbix 3.0 dint LNMP installation you can refer to my previous blog post "ubuntu installation configuration LNMP"
Demand analysis
(1) Zabbix databases may require a lot of CPU resources, depending on the number of monitoring parameters and the choice of database engine. Screenshot of the official website for your reference
(2) Database management system
(3) Front end
(4) for details, you can refer to the official website.
Https://www.zabbix.com/documentation/3.0/manual/installation/requirements
Network architecture:
Add a source for zabbix3.0
(1) download address on the official website
Http://www.zabbix.com/download.php
(2) you can choose the zabbix version according to your work requirements.
# wget http://repo.zabbix.com/zabbix/3.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.0-1+trusty_all.deb
# dpkg-I zabbix-release_3.0-1+trusty_all.deb
# apt-get update
Install the packages required for zabbix-server
(1) Zabbix server and mysql database and web front end.
Apt-get install zabbix-server-mysql zabbix-frontend-php php5-mysql
(2) install Zabbix agent.
Apt-get install zabbix-agent
Create and initialize zabbix database
(1) create zabbix database and users in MySQL.
# mysql-uroot-p
Password:
> create user 'zabbix'@'localhost' identified by' Bd_zabbix'
> create database zabbix
> grant all privileges on zabbix.* to 'zabbix'@'localhost'
> flush privileges
>\ Q
Bye
(2) then import the initial schema and data.
Cd / usr/share/doc/zabbix-server-mysql
Ls
Gunzip create.sql.gz
Mysql-u zabbix-p zabbix < create.sql
(1) Edit the database configuration in the zabbix_server.conf file
Vi / etc/zabbix/zabbix_server.conf
...
DBHost=localhost
...
DBName=zabbix
...
DBUser=zabbix
...
DBPassword=youpassword
...
(2) enable zabbix service
# service zabbix-server start
# / etc/init.d/zabbix-server start
Edit PHP and configure Zabbix front end
# vi / etc/php5/fpm/php.ini
Post_max_size = 16m
Max_execution_time = 300
Max_input_time = 300
Date.timezone = Asia/Shanghai
Always_populate_raw_post_data = On
Configure zabbix-web and log in
(1) copy the zabbix web file to the Nginx directory
# mkdir / usr/share/nginx/html/zabbix
# cp-r / usr/share/zabbix/* / usr/share/nginx/html/zabbix
(2) Log in to the browser to configure http://ip-address or domain-name/zabbix, and click "Next step" to start the configuration.
Such as: http://121.40.*.*/zabbix/setup.php
(3) all show OK next step. If Check of pre-requisites reports an error, you can check the php.ini file. When finished, click "Nextstep" to continue.
(4) configure the type, host, port number, database name, user name and password of zabbix-mysql in the Configure DB connection window. Click "Next step" to continue.
(5) the host name or the IP address and port number of the host Zabbix server, as well as the name of the installation, my database and the zabbix server are on the same host, I save the default settings here, click "Next step" to continue the configuration.
(6) Please check configuration parameters. If all is correct, press the "Next step" button or the "Back" button to change the configuration parameters.
(7) when a successful configuration prompt appears, Fihsh can log in.
(8) default username password
User name: Admin
Password: zabbix
(9) after successfully logging in, you will start to configure and add the hosts you want to monitor (the successful login interface is as follows)
Last!
Here, the zabbix-service installation is basically completed. According to my network architecture diagram, we can see that the company's intranet needs proxy. Distributed monitoring refers to my other blog, "zabbix distributed Monitoring (Ali Cloud zabbix-server, intranet zabbix-proxy".
The following is to add and configure monitoring hosts. You can refer to my another blog article, "zabbix servers add monitoring hosts, using monitoring templates and custom monitoring items."
Reference documentation
Https://www.zabbix.com/documentation/3.0/manual/installation/install_from_packages
You can also compile the source package installation
Official installation package download address: http://www.zabbix.com/download.php
Official installation reference documentation: https://www.zabbix.com/documentation/3.0/manual/installation/install
BUG repair during installation
PHP restart BUG
Root@zabbix-server:~# service php5-fpm restart
Stop: Unknown instance:
Php5-fpm start/running, process 31130
Solution:
Root@zabbix-server:~# service php5-fpm stop
Stop: Unknown instance:
Root@zabbix-server:~# ps aux | grep php
Www-data 8184 0.00.8 226944 17092? S Aug310:00 php-fpm: pool www
Www-data 8185 0.00.8 226724 16888? S Aug310:00 php-fpm: pool www
Root 31223 0.00.0 11744 pts/0S+ 09:59 0:00 grep-- color=auto php
Root@zabbix-server:~# kill 8184 8185 31223
-bash: kill: (31223)-No such process
Root@zabbix-server:~# kill 8184 8185
-bash: kill: (8184)-No such process
-bash: kill: (8185)-No such process
Root@zabbix-server:~# ps aux | grep php
Root 31237 0.00.0 11740 pts/0S+ 10:00 0:00 grep-- color=auto php
Root@zabbix-server:~# service php5-fpm start
Php5-fpm start/running, process 31249
Root@zabbix-server:~# php5-fpm-t
[01-Sep-2016 10:00:41] NOTICE: configuration file / etc/php5/fpm/php-fpm.conf test is successful
Finally, welcome friends to leave your questions, we learn from each other!
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.