美文网首页
zabbix安装

zabbix安装

作者: 逗比punk | 来源:发表于2017-05-23 15:14 被阅读28次

Installation from packages

rpm -ivh http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm

Installing packages

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

Creating initial database

Create Zabbix database and user on MySQL by the following commands, where <root_password> shall be replaced with the actual root password (e.g., shell> mysql -uroot -p12345) and <password> with new password for zabbix user on the database (including apostrophes: …identified by '67890';):

shell> mysql -uroot -p<root_password>
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by '<password>';
mysql> quit;

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.

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

In order to check the version you have in your package, use the following command:
rpm -q zabbix-server-mysql

Database configuration for Zabbix server

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/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=<password>

Starting Zabbix server process

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

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

PHP configuration for Zabbix frontend

Apache configuration file for Zabbix frontend is located in /etc/httpd/conf.d/zabbix.conf. Some PHP settings are already configured. But it's necessary to uncomment the “date.timezone” setting and set the right timezone for you.

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 Asia/Shanghai

SELinux configuration

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

# setsebool -P httpd_can_connect_zabbix on

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

open Zabbix URL

http://<server_ip_or_name>/zabbix

相关文章

  • zabbix简易教程

    1、Zabbix介绍 Zabbix功能 Zabbix应用 2、zabbix安装教程 安装包安装Zabbix doc...

  • zabbix3.4使用说明

    zabbix架构图 zabbix安装 ​ zabbix需要安装依赖的数据库,需要安装zabbix server...

  • zabbix安装

    安装zabbix 4.0 LTS 1:配置zabbix yum仓库 2:安装zabbix服务端和zabbix-...

  • zabbix

    zabbix-server安装 1、安装zabbix源rpm -Uvh https://repo.zabbix.c...

  • Zabbix安装

    1、创建zabbix运行的用户 2、zabbix安装 2.1 安装阿里云yum配置文件 2.2 安装zabbix-...

  • zabbix docker 安装

    第一步 安装zabbix一、docker 安装 zabbix

  • Zabbix监控nginx性能(记录)

    zabbix配置监控nginx,nginx安装的时候必须编译安装zabbix模块 需要使用zabbix监控ngin...

  • zabbix部署

    1:配置zabbix yum仓库 2:安装zabbix服务端和zabbix-web前端 3:安装mariadb,创...

  • Ansible Role 监控 之【zabbix-server】

    Ansible Role: zabbix-server 安装zabbix server 介绍 zabbix(音同 ...

  • 2.2.运维 - zabbix - 源码安装(Centos)

    参考: Zabbix系统部署及使用 zabbix的配置 [Zabbix专区] 关于zabbix 3.4.1 安装手...

网友评论

      本文标题:zabbix安装

      本文链接:https://www.haomeiwen.com/subject/hbiwxxtx.html