* Install and configure zabbix service '''
Zabbix collects data in C/S mode, and displays and configures data on the Web end in B/S mode. The zabbix Service uses the lamp platform to host databases and web interfaces. In this experiment environment, to save time, the lamp architecture adopts the yum Installation Method for simple deployment.
Yum rapid deployment of lamp
Install software package
Yum install-Y \
Httpd \
PHP \
Php-mysql \
Php-Gd \
Libjpeg *\
Php-LDAP \
Php-odbc \
Php-pear \
Php-XML \
Php-XMLRPC \
Php-mhash
Install MySql in yum
Install MySQL Yum Source
Yum-y install http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
Install MySQL
Yum-y install MySQL mysql-devel mysql-server mysql-utilities
Start MySQL
/Etc/init. d/MySQL start
Install the MySQL Repository
Rpm-I https://repo.zabbix.com/zabbix/4.0/rhel/6/x86_64/zabbix-release-4.0-1.el6.noarch.rpm
Components required for installing MySQL
Yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent
Create a database
Mysql-uroot-P
Password
Mysql> Create Database zabbix Character Set utf8 collate utf8_bin;
Mysql> grant all privileges on zabbix. * to [email protected] identified by 'Password ';
Mysql> quit;
Import the initialization database. The system prompts you to enter the new password.
Zcat/usr/share/doc/zabbix-server-mysql */create. SQL .gz | mysql-uzabbix-P zabbix
Configure zabbix Server Database
Vim/etc/zabbix/zabbix_server.conf
Dbpassword = Password
Create group and user
Groupadd zabbix
Useradd-G zabbix
Download zabbix package
Https://www.zabbix.com/download_sources
Decompress the downloaded installation package
Tar-zxvf zabbix-4.0.0.tar.gz
Configure zabbix Server
./Configure -- enable-server -- enable-agent -- With-mysql -- enable-ipv6 -- With-net-snmp -- With-libcurl -- with-libxml2
Make install
Copy the file to the httpd directory.
CD/var/www/html
Mkdir zabbix
CP-F/root/zabbix-4.0.0/frontends/PHP zabbix/
Open the browser and enter http: // <server_ip_or_name>/zabbix
Ensure that all software prerequisites are met
If you have any questions, change
# Vim/etc/PHP. ini
Max_execution_time 300
Memory_limit 128 m
Post_max_size 16 m
Upload_max_filesize 2 m
Max_input_time 300
Max_input_vars 10000
Enter the account and password of the zabbix Database
View zabbix details
Show all zabbix detailed settings
Download the required configuration file and upload it to/var/www/html/zabbix/CONF.
Installation Complete
Zabbix Default User Name aadmin password zabbix
*
Install the zabbix4.0 Monitoring System