您的位置:时时app平台注册网站 > 时时app平台注册网站 > Zabbix Server 3.2时时app平台注册网站

Zabbix Server 3.2时时app平台注册网站

2019-11-21 02:57

2. Installing apache and php

mysqladmin -uroot password <newpassword>

But it's necessary to uncomment the "date.timezone" setting and set the right timezone for you.

</VirtualHost>

# yum -y install zabbix-server-mysql zabbix-web-mysql  zabbix-agent

<Directory "/usr/share/zabbix/local">

# systemctl restart httpd

Options FollowSymLinks

Zabbix 3.2

php_value memory_limit 128M

username:Admin

yum install fping

# firewall-cmd --permanent --add-port=10050-10052/tcp

yum grouplist

# yum -y install mariadb mariadb-server

开启防火墙80端口访问

# rpm -q zabbix-server-mysql  

php_value always_populate_raw_post_data -1

5.3 SELinux configuration

   DocumentRoot /usr/share/zabbix

# setsebol -p http_can_connect_zabbix on

# ZABBIX

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/Riga   

</IfModule>

# mysql -u root -p <root_password>

配置创建数据库

It's time to start Zabbix server process and make it start at system boot:

mysql> quit;

# vi /etc/zabbix/zabbix_server.conf
DBHost=localhost ##database host name
DBName=zabbix ##database name
DBUser=zabbix   ##database user name
DBPassword=<zabbix_password>   ##database user password

yum install gcc mysql-devel php-mbstring php-bcmath php-mysql OpenIPMI OpenIPMI-devel libcurl libcurl-devel libxml2 libxml2-devel net-snmp net-snmp-devel

Now you are ready to install Zabbix server with MySQL or server with PostreSQL, agent and proxy.

启动进程

# firewall-cmd --permanent --add-port=443/tcp

<Directory "/usr/share/zabbix/include">

4. Installing Zabbix server and web packages

配置数据库密码

# setsebool -p -p zabbix_can_network on

rpm -ivh

# systemctl restart zabbix-server

Alias /zabbix /usr/share/zabbix

mysql> create user 'zabbix'@'localhost' identified by 'zabbix_password';

   ServerAdmin root@localhost

Having SELinux status enabled in enforcing mode, you need to execute the following command to enable successful connection of Zabbix frontend to the server:

图片显示乱码

mysql> grant all on zabbix.* to ‘zabbix’@‘localhost';

<Directory "/usr/share/zabbix/app">

[root@localhost ~]# yum -y install httpd php php-mysql php-mbstring php-gd php-bcmath php-ldap php-xml

php_value date.timezone Aisa/Shanghai

(b) /etc/httpd/conf.d/zabbix.conf

setenforce 0

password: zabbix

touch /var/log/httpd/zabbix/access.log

# systemctl enable httpd.service  

配置过程参考Installing frontend

5.1Starting Zabbix server 

DBPassword=password

# systemctl enable mariadb.service 

vi /etc/zabbix/zabbix_server.conf

 1. Installing repository configuration package

   ErrorLog /var/log/httpd/zabbix/error.log

5.4 Firwall configuration

配置前端

4.2 Now import initial schema and data. Make sure to insert correct version for 3.2.*. You will be prompted to enter your newly created password.  

yum install mariadb-server mariadb -y

5. Database configuration for Zabbix server

AllowOverride None

Apache configuration file for Zabbix frontend is located in /etc/httpd/conf.d/zabbix.conf. Some PHP settings are already configured.

联网安装REPO源

# systemctl start mariadb.service

OS准备

Install the repository configuration package. This package contains yum (software package manager) configuration files.

<VirtualHost *:80>

# systemctl start zabbix-server
# systemctl enable zabbix-server   

</Directory>

mysql> create database zabbix character set utf8 collate utf8_bin;

Require all denied

# mysql_secure_installation

   ServerSignature On

Zabbix web configuration file

</Directory>

# zcat /usr/share/doc/zabbix-server-mysql-3.2.*/create.sql.gz | mysql -u zabbix -p -D zabbix  

数据库安装配置

Centos7.3

mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'password';

(a) php.ini

# zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix

webUI site:

systemctl restart mariadb zabbix-server zabbix-agent httpd

2.2 启动web服务

mysql> create database zabbix character set utf8 collate utf8_bin;

In order to check the version you have in your package, use the following command:  

vi /etc/selinux/config

Edit server host name, user and password in zabbix_server.conf as follows, where DBPassword is the password you've set creating initial database:

vi /etc/httpd/conf.d/zabbix.conf,

   php_value date.timezone Asia/Shanghai

# mysql -uroot -p

软件环境

touch /var/log/httpd/zabbix/error.log

5.2 PHP configuration for Zabbix web

Require all denied

mysql> grant all on zabbix.* to ’zabbix‘@‘192.168.1.%’;
mysql> quit 

数据库导入

3. **Installing mariadb  **

yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent

#f irewall-cmd --permanent --add-port=80/tcp

   # alert, emerg.

5.5 Installing and configuration Zabbix-web

php_value max_input_time 300

mysql> create user 'zabbix'@'192.168.1.%' identified by 'zabbix_password';

yum groupinstall "Web Server" "PHP Support" "MySQL Database server" "MySQL Database client" "Java Platform"

As frontend and SELinux configuration is done, you need to restart Apache web server:

firewall-cmd --permanent --add-rich-rule 'rule family=ipv4 port port=80 protocol=tcp accept'

# cat /etc/zabbix/web/zabbix.config.php    

安装apache,php,java,mysql

# systemctl restart zabbix-agent 

password

# rpm -ivh

配置Zabbix server的数据库

[root@localhost ~]# systemctl start httpd.service

php_value max_execution_time 300

4.1 Creating initial mariadb database 

mkdir /var/log/httpd/zabbix/

 2.1 配置php时区参数

Require all denied

LAMP

   LogLevel warn

# firewall-cmd  --reload 

   # Possible values include: debug, info, notice, warn, error, crit,

# setsebool -p httpd_can_network_connect on

关闭selinux

   CustomLog /var/log/httpd/zabbix/access.log combined

安装zabbix组件

yum clean all

<Directory "/usr/share/zabbix/conf">

问题处理

Require all denied

端口监控

配置ZABBIX前端

yum安装前端准备

准备日志文件夹

</Directory>

<IfModule mod_php5.c>

   ServerName zbserver

</Directory>

firewall-cmd --reload

yum list

安装扩展包

</Directory>

<Directory "/usr/share/zabbix">

php_value post_max_size 16M

systemctl enable mariadb zabbix-server zabbix-agent httpd

Require all granted

php_value upload_max_filesize 2M

本文由时时app平台注册网站发布于时时app平台注册网站,转载请注明出处:Zabbix Server 3.2时时app平台注册网站

关键词: