ZABBIX安装官方指南

慢慢,把这块业务要玩熟悉~~~~事前,事中,事后,它都能发挥自己的一些作用。

From Zabbix official repository

Zabbix SIA provides official RPM and DEB packages for Red Hat Enterprise Linux, Debian and Ubuntu LTS.

Package files are available at repo.zabbix.com. yum and apt repositories are also available on the server. A step-by-step tutorial for installing Zabbix from packages is provided here.

Red Hat Enterprise Linux / CentOS

Supported for versions: RHEL6, CentOS 6

Installing repository configuration package

Install the repository configuration package. This package contains yum configuration files.

Zabbix 2.4 for RHEL6:

# rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm

Installing Zabbix packages

Install Zabbix packages. Example for Zabbix server and web frontend with mysql database.

Zabbix official repository provides fping, iksemel, libssh2 packages as well. These packages are located in the non-supported directory.

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

Example for installing Zabbix agent only.

# yum install zabbix-agent

Creating initial database

Create zabbix database and user on MySQL. See database creation scripts for MySQL.

Import initial schema and data.

# cd /usr/share/doc/zabbix-server-mysql-2.4.0/create
# mysql -uroot zabbix < schema.sql
# mysql -uroot zabbix < images.sql
# mysql -uroot zabbix < data.sql

Starting Zabbix server process

Edit database configuration in zabbix_server.conf

# vi /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix

Start Zabbix server process.

# service zabbix-server start

Editing 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.

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 date.timezone Europe/Riga

It‘s necessary to uncomment the “date.timezone” setting and set the right timezone for you. After changing the configuration file restart the apache web server.

# service httpd restart

Zabbix frontend is available at http://zabbix-frontend-hostname/zabbix in the browser. Default username/password is Admin/zabbix.

=============================================================

数据操作指南:

Scripts

MySQL:

shell> 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;
shell> mysql -uzabbix -p<password> zabbix < database/mysql/schema.sql
# stop here if you are creating database for Zabbix proxy
shell> mysql -uzabbix -p<password> zabbix < database/mysql/images.sql
shell> mysql -uzabbix -p<password> zabbix < database/mysql/data.sql

=========================================================

相关依赖安装:

yum -y install wget vim tree gcc gcc-c++ autoconf httpd php mysql mysql-server php-mysql httpd-manual mod_ssl mod_perl mod_auth_mysql php-gd php-xml php-mbstring php-ldap php-pear php-xmlrpc php-bcmath mysql-connector-odbc mysql-devel libdbi-dbd-mysql net-snmp net-snmp-devel curl-devel

时间: 2024-11-10 13:11:09

ZABBIX安装官方指南的相关文章

zabbix安装详解(2)

zabbix安装方式: 源码安装 rpm包安装 此处我们演示rpm包的安装 采用centos6.8 此处为了简单明了,我们采用一台主机, 同时充当 server端,agent端,web gui端,及storage端 (在实际生产环境中,尽量将它们分开来安装) 1.作为server端,安装相应的程序包 # yum -y install zabbix22 # yum -y install zabbix22-server # yum -y install zabbix22-server-mysql #

zabbix安装+邮件(短信)报警

zabbix安装+邮件(短信)报警 一.zabbix的安装 安装开发软件包 1.yum  -ygroupinstall  "DevelopmentTools" 2.安装所需的依赖包 yum -y install httpd mysqlmysql-server mysql-devel php php-mysql php-common php-mbstring php-gd php-odbcphp-pear php-bcmath.x86_64 curl curl-devel net-snm

centos6.4下Zabbix系列之Zabbix安装搭建及汉化

1.安装开发软件包 yum  -y groupinstall  "Development Tools" 2.安装环境所需依赖包 yum -y install httpd mysql mysql-client mysql-server php php-mysql php-common php-mbstring php-gd php-odbc php-pear curl curl-devel net-snmp net-snmp-devel perl-DBI php-xml ntpdate

Zabbix 安装部署应用

Zabbix 概述 内部运行服务,内置的进程 单节点支持的数量 zabbix实验环境 环境 vmware workstation v12 实验机器192.168.148.130 OS centos 7.2 Zabbix v3.2 Zabbix 包下载安装 安装repo # rpm -ivh http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm # yum install zabbix

zabbix安装配置

安装centos linux.这次使用的是centos 6.4 X86_64版 使用base server配置安装系统 开启系统启动时显示详细信息 vim /boot/grub/grub.conf 将"rhgb"和 "quiet"去掉 启用网卡 vi /etc/sysconfig/network-scripts/ifcfg-eth0ONBOOT=yes 关闭系统防火墙 #iptables -F #service iptables stop#chkconfig ipt

zabbix安装及配置

一.所需环境介绍 1.硬件 2.软件 zabbix产生的数据主要由四部分组成: 配置数据 历史数据:50Bytes   (每次采集) 历史趋势数据: 128Bytes 事件数据: 130Bytes 二.zabbix安装 官网:www.zabbix.com

zabbix 安装和基础监控

Zabbix安装和监控 系统环境 [[email protected]~]# cat /etc/redhat-release CentOSrelease 6.3 (Final) [[email protected]~]#  uname -a Linux zabbix2.6.32-279.el6.x86_64 #1 SMP Fri Jun 22 12:19:21 UTC 2012 x86_64 x86_64 x86_64GNU/Linux Yum安装nginx.php.mysql 配置nginx

CentOS下Zabbix安装部署及汉化

搭建环境:Centos6.5_x86_64,Zabbix2.4.5,epel 源 服务端: 1.安装开发软件包yum -y groupinstall "Development Tools" 2.安装所需的依赖包yum -y install httpd mysql mysql-server mysql-devel php php-mysql php-commonphp-mbstring php-gd php-odbc php-pear curl curl-devel net-snmp n

Zabbix安装部署及汉化

搭建环境:Centos6.5_x86_64,Zabbix2.4.5(目前为止最新版本),epel源 一.安装步骤 一)服务端安装 1.安装开发软件包 yum  -y groupinstall  "Development Tools" 2.安装所需的依赖包 yum -y install httpd mysql mysql-server mysql-devel php php-mysql php-common php-mbstring php-gd php-odbc php-pear cu