Zabbix Documentation 3.0

1 Create user account

shell>groupadd zabbix

shell>useradd -g zabbix zabbix

2 Create Zabbix database

Database creation scripts

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> flush privileges;

mysql> quit;

Installation from sources

3 Installing Zabbix daemons

shell>tar -zxvf zabbix-3.0.0.tar.gz

shell> cd database/mysql

shell> mysql -uzabbix -p<password> zabbix < schema.sql

# stop here if you are creating database for Zabbix proxy

shell> mysql -uzabbix -p<password> zabbix < images.sql

shell> mysql -uzabbix -p<password> zabbix < data.sql

databases ‘zabbix‘ pssword ‘password‘

4 Configure the sources

To configure the sources for a Zabbix server and agent, you may run something like:

shell>./configure \

--prefix=/usr/local/zabbix \

--enable-server \

--enable-agent \

--with-mysql=/usr/local/mysql/bin/mysql_config \

--enable-ipv6 \

--with-net-snmp \

--with-libcurl \

--with-libxml2

5 Make and install everything

shell>make install

6 Review and edit configuration files

edit the Zabbix agent configuration file /usr/local/etc/zabbix_agentd.conf

shell> vim /usr/local/zabbix/etc/zabbix_agentd.conf#指定server地址

Server=127.0.0.1

ServerActive=127.0.0.1

Hostname=Zabbix server#Hostname是唯一的,不能重复

edit the Zabbix server configuration file /usr/local/etc/zabbix_server.conf

shell>vim /usr/local/zabbix/etc/zabbix_server.conf#指定数据库用户名、密码

ListenPort=10051

DBHost=localhost

DBName=zabbix

DBUser=zabbix

DBPassword=zabbix

DBSocket=/var/lib/mysql/mysql.sock

DBPort=3306

7 Start up the daemons

Run zabbix_server on the server side.

shell> /usr/local/zabbix/sbin/zabbix_server

zabbix_server: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory

shell>ln -s /usr/local/mysql/lib/libmysqlclient.so.20  /usr/lib64/

Run zabbix_agentd on all the monitored machines.

shell> /usr/local/zabbix/sbin/zabbix_agentd

8 Installing Zabbix web interface

shell>mkdir <htdocs>/zabbix

shell>cd ~/zabbix-3.x.x/frontends/php

shell>cp -a . <htdocs>/zabbix

9 Installing frontend

In your browser, open Zabbix URL: http://<server_ip_or_name>/zabbix

You should see the first screen of the frontend installation wizard.

输入用户名:Admin密码:zabbix可以正常访问

Editing PHP configuration for Zabbix frontend

php.ini路径可以访问php测试页得到test.php

<?php

echo phpinfo();

?>

In php.ini:

date.timezone = Asia/Shanghai

memory_limit = 128M

post_max_size = 16M

upload_max_filesize = 2M

max_execution_time = 300

max_input_time = 300

session.auto_start = 0.

mbstring.func_overload = 0.

Required only for PHP versions 5.6.0 or newer.

In php.ini:

always_populate_raw_post_data = -1        #对于PHP7需通过修改版本

PHP7通过修改版本支持zabbix 3.0的方法

shell> cd <htdocs>/zabbix/include/classes/setup

shell> vim CFrontendSetup.php

Original code

Code:

// check for deprecated PHP 5.6.0 option ‘always_populate_raw_post_data‘
if (version_compare(PHP_VERSION, ‘5.6‘, ‘>=‘)) {
         $result[] = $this->checkPhpAlwaysPopulateRawPostData();

After making the change

Code:

// check for deprecated PHP 5.6.0 option ‘always_populate_raw_post_data‘
if (version_compare(PHP_VERSION, ‘7.1‘, ‘>=‘)) {
         $result[] = $this->checkPhpAlwaysPopulateRawPostData();

And thats all. I have to restart my browser and launch again the setup wizzard.

Zabbix 3.0中没有中文选项,可以通过修改locales.inc.php 文件实现

方法如下:

shell> cd <htdocs>/zabbix/

shell> vim locales.inc.php

‘zh_CN‘ => [‘name‘ => _(‘Chinese (zh_CN)‘),     ‘display‘ => false],

‘zh_CN‘ => [‘name‘ => _(‘Chinese (zh_CN)‘),     ‘display‘ => true],

时间: 2024-12-22 13:51:41

Zabbix Documentation 3.0的相关文章

CentOS 7上安装Zabbix Server 3.0 图文详解

转载自 http://www.linuxidc.com/Linux/2016-09/135204.htm CentOS 7上安装Zabbix Server 3.0 图文详解 1.查看系统信息. cat /etc/RedHat-releaseCentOS Linux release 7.0.1406 (Core) uname -a Linux VM_96_155_centos3.10.0-123.el7.x86_64 #1 SMP Mon Jun 30 12:09:22 UTC 2014 x86_

手把手教你在Centos7上安装zabbix server 3.0

1.查看系统信息. cat /etc/redhat-release CentOS Linux release 7.0.1406 (Core) uname -a Linux VM_96_155_centos3.10.0-123.el7.x86_64 #1 SMP Mon Jun 30 12:09:22 UTC 2014 x86_64 x86_64 x86_64GNU/Linux 2.使用rpm命令安装zabbix 3.0最新的epel源,关闭selinux和iptables. rpm -ivh h

zabbix版本升级3.0.4 修复mysql漏洞(debian7)

wget http://repo.zabbix.com/zabbix/3.0/debian/pool/main/z/zabbix/zabbix-server-mysql_3.0.4-1+wheezy_amd64.deb dpkg -i zabbix-server-mysql_3.0.4-1+wheezy_amd64.deb apt-get update apt-get install zabbix-server-mysql zabbix-frontend-php 将frontend/php内的所

Zabbix Appliance 3.0 用户名密码

Zabbix是一款不错的开源监控软件,有兴趣的可以去官网下载Appliance版本测试,相对来说简单一些. 很多朋友会发现后台无法登陆,那很可能是你没有认真看文档: https://www.zabbix.com/documentation/3.0/manual/appliance 这里把用户名和密码贴出来,方便大家查找 States that the default username and password for the front-end is: Admin(注意大小写) zabbix a

zabbix升级至3.0.2安装步骤

将原来的zabbix升級至3.0.2版本 因在原有的基礎上進行升級,只要各個支撐軟件的版本符合要求,都沒有任何問題只需要針對zabbix進行升級即可 LAMP是zabbix安裝搭建的前提條件 在此次升級的機器中,除了php版本過低以外,其他應用版本尚可使用 故只進行php.zabbix升級動作 現查看原php版本裝了些什麽東西 yum list installed | grep php 爲了升級,需要把原先的版本的東西全部清除. 清除前,現停掉apache的服務 service httpd st

Zabbix Agent 4.0 Windows 安装配置

1.官网下载 zabbix agent 4.0 下载链接:https://www.zabbix.com/download_agents 2.下载完成后双击安装 3.安装完成后运行services.msc确认Agent服务是否启动成功 4.设定防火墙允许,zabbix默认要用到的端口是10050,需设定允许10050端口访问 原文地址:https://www.cnblogs.com/travis-li/p/12593576.html

zabbix proxy 3.0 RPM安装

安装前的准备: 1.zabbix proxy自身需要安装mysql,可以导入mysql官网的mysql5.6的yum源,进行安装并启动数据库 2.创建zabbix_proxy数据库 mysql> CREATE DATABASE zabbix_proxy; 创建zabbixproxy用户: mysql>grant all on zabbix_proxby.* to [email protected] identified by 'zabbixproxy';>flush privileges

在ubuntu14.02 LTS安装zabbix记录

1. 按照官网documentation,安装zabbix-server wget http://repo.zabbix.com/zabbix/3.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.0-1+trusty_all.deb dpkg -i zabbix-release_3.0-1+trusty_all.deb apt-get update 2. 安装zabbix-server和zabbix前端 apt-get install z

02-zabbix深度实践

自动化监控体系 监控概述 (1)监控是运维工作中比较重要的!Linux运维中几乎所有的都需要监控. (2)监控不仅仅支持zabbix工具的使用 故事主角:小王 任务:接到公司的任务公司的监控 1.将硬件设备监控起来,使用IPMI监控硬件服务器,缺点如果硬件损坏,无法获取硬盘信息,但是我们可以使用MegaCli工具查看Raid磁盘阵列状态 使用MegaCli工具查看Raid磁盘阵列状态 http://www.ttlsa.com/tools/megacli-tool-query-raid-statu