In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to install Zabbix on Ubuntu16.04 Server, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
Monitoring server-what is Zabbix
Zabbix is an enterprise-class open source distributed monitoring server solution. The software monitors the different parameters of the network and the integrity of the server, and allows you to configure email-based alerts for any event. Zabbix provides reporting and data visualization based on data stored in a database, such as MySQL. Each measurement collected by the software can be accessed through a Web-based interface.
Zabbix is released under the terms of GNU General Public license version 2 (GPLv2) and is free of charge.
In this tutorial, we will install Zabbix on Ubuntu 16.04 server running MySQL, Apache, and PHP.
Install the Zabbix server
First, we need to install several PHP modules required for Zabbix:
# apt-get install php7.0-bcmath php7.0-xml php7.0-mbstring
The Zabbix package available in the Ubuntu repository is out of date. Install the latest stable version using the official Zabbix repository.
Install the warehouse package by executing the following command:
$wget http://repo.zabbix.com/zabbix/3.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.2-1+xenial_all.deb# dpkg-I zabbix-release_3.2-1+xenial_all.deb
Then update the apt package source:
# apt-get update
You can now install a Zabbix server with MySQL support and a PHP front end. Execute the command:
# apt-get install zabbix-server-mysql zabbix-frontend-php
Install the Zabbix agent:
# apt-get install zabbix-agent
Zabbix is now installed. The next step is to configure the database to store the data.
Configure MySQL for Zabbix
We need to create a new MySQL database that Zabbix will use to store the collected data.
Start MySQL shell:
$mysql-uroot-p
Next:
Mysql > CREATE DATABASE zabbix CHARACTER SET utf8 COLLATE utf8_bin;Query OK, 1 row affected (0.00 sec) mysql > GRANT ALL PRIVILEGES ON zabbix.* TO zabbix@localhost IDENTIFIED BY 'usr_strong_pwd';Query OK, 0 rows affected, 1 warning (0.00 sec) mysql > EXIT;Bye
Next, import the initial table and data.
# zcat / usr/share/doc/zabbix-server-mysql/create.sql.gz | mysql-uzabbix-p zabbix
Enter the password of the zabbix user created in MySQL shell.
Next, we need to edit the Zabbix server configuration file, which is / etc/zabbix/zabbis_server.conf:
# $EDITOR / etc/zabbix/zabbix_server.conf
Search for the DBPassword section of the file:
# Option: DBPassword # Database password. Ignored for SQLite. # Comment this line if no password is used.# # Mandatory: no # Default: # DBPassword=
Uncomment the line DBPassword= and add the password created in MySQL:
DBPassword=usr_strong_pwd
Next, look for the line DBHost= and uncomment it.
Save and exit.
Configure PHP
We need to configure PHP to use Zabbix. During installation, the installer creates a configuration file called apache.conf in / etc/zabbix. Open this file:
# $EDITOR / etc/zabbix/apache.conf
At this point, you just need to uncomment date.timezone and set the correct time zone:
Php_value max_execution_time 300 php_value memory_limit 128m php_value post_max_size 16M php_value upload_max_filesize 2m php_value max_input_time 300 php_value always_populate_raw_post_data-1 php_value date.timezone Europe/Rome
Save and exit.
At this point, restart Apache and start the Zabbix Server service so that it can start at boot time:
# systemctl restart apache2# systemctl start zabbix-server# systemctl enable zabbix-server
Check the Zabbix status with systemctl:
# systemctl status zabbix-server
This command should output:
â zabbix-server.service-Zabbix Server Loaded: loaded (/ lib/systemd/system/zabbix-server.service; enabled; vendor pr Active: active (running)...
At this point, the server side of Zabbix has been installed and configured correctly.
Configure the Zabbix Web front end
As mentioned in the introduction, Zabbix has a Web-based front end that we will use to visualize the collected data. However, this interface must be configured.
Using a Web browser, go to URL http://localhost/zabbix.
Click Next step
Make sure all the values are Ok, and then click Next step again.
Enter the user password for MySQL zabbix, and then click Next step.
Click Next step, and the installer will display a page with all configuration parameters. Check again to make sure everything is correct.
Click Next step to go to the last page.
Click finish to complete the front-end installation. The default user name is Admin and the password is zabbix.
Getting started with Zabbix Server
After logging in with the above credentials, we will see the Zabbix panel:
Go to Administration-> Users for an overview of enabled accounts:
Create a new account by clicking Create user.
Click Add in Groups, and then select a group:
Save the new user credentials, which will be displayed in the Administration-> Users panel.
Note that in Zabbix, access to hosts is assigned to user groups, not to individual users.
Thank you for reading this article carefully. I hope the article "how to install Zabbix on Ubuntu16.04 Server" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
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.