zabbix install from package
来源:互联网 发布:5个10m端口的集线器 编辑:程序博客网 时间:2024/05/21 18:49
转自官网
3 Installation from packages
Overview
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: RHEL5 and RHEL6
Installing repository configuration package
Install the repository configuration package. This package contains yum configuration files.
Zabbix 2.0 for RHEL5:
# rpm -ivh http://repo.zabbix.com/zabbix/2.0/rhel/5/x86_64/zabbix-release-2.0-1.el5.noarch.rpm
Zabbix 2.0 for RHEL6:
# rpm -ivh http://repo.zabbix.com/zabbix/2.0/rhel/6/x86_64/zabbix-release-2.0-1.el6.noarch.rpm
Installing Zabbix packages
Install Zabbix packages. Example for Zabbix server and web frontend with mysql database.
# 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.
# mysql -urootmysql> create database zabbix character set utf8 collate utf8_bin;mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';mysql> exit
Import initial schema and data.
# cd /usr/share/doc/zabbix-server-mysql-2.0.4/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.confDBHost=localhostDBName=zabbixDBUser=zabbixDBPassword=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 300php_value memory_limit 128Mphp_value post_max_size 16Mphp_value upload_max_filesize 2Mphp_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.
Debian / Ubuntu
Supported for version: Debian 6 (Squeeze), Debian 7 (Wheezy), Ubuntu 10.04 LTS (Lucid Lynx), Ubuntu 12.04 LTS (Precise Pangolin)
Installing repository configuration package
Install the repository configuration package. This package contains apt configuration files.
Zabbix 2.0 for Debian 6:
# wget http://repo.zabbix.com/zabbix/2.0/debian/pool/main/z/zabbix-release/zabbix-release_2.0-1squeeze_all.deb# dpkg -i zabbix-release_2.0-1squeeze_all.deb# apt-get update
Zabbix 2.0 for Debian 7:
# wget http://repo.zabbix.com/zabbix/2.0/debian/pool/main/z/zabbix-release/zabbix-release_2.0-1wheezy_all.deb# dpkg -i zabbix-release_2.0-1wheezy_all.deb# apt-get update
Zabbix 2.0 for Ubuntu 10.04 LTS:
# wget http://repo.zabbix.com/zabbix/2.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_2.0-1lucid_all.deb# dpkg -i zabbix-release_2.0-1lucid_all.deb# apt-get update
Zabbix 2.0 for Ubuntu 12.04 LTS:
# wget http://repo.zabbix.com/zabbix/2.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_2.0-1precise_all.deb# dpkg -i zabbix-release_2.0-1precise_all.deb# apt-get update
Installing and configuring MySQL database
dbconfig-common on Debian 6 and Ubuntu 10.04 cannot create database with utf-8 encoding. It is necessary to install mysql-server package and configure mysql configuration to use utf-8 in advance.
For Debian 7 and Ubuntu, this step is not necessary.
Install MySQL server package:
# apt-get install mysql-server
Set character encoding parameter in /etc/mysql/my.cnf
[mysqld]default-character-set=utf8
Then start mysqld
# service mysql start
Installing Zabbix packages
Install Zabbix packages. dbconfig-common will create the database and populate the initial schema and data automatically. If backend db is located on a different server, please set dbc_remote_questions_default='true' in /etc/dbconfig-common/config.
Example for Zabbix server and web frontend with mysql database.
# apt-get install zabbix-server-mysql zabbix-frontend-php
Example for installing Zabbix agent only.
# apt-get install zabbix-agent
Editing PHP configuration for Zabbix frontend
Apache configuration file for Zabbix frontend is located in /etc/apache2/conf.d/zabbix. Some PHP settings are already configured.
php_value max_execution_time 300php_value memory_limit 128Mphp_value post_max_size 16Mphp_value upload_max_filesize 2Mphp_value max_input_time 300# php_value date.timezone Europe/Riga
It's necessary to uncomment the “date.timezone” setting and set the correct timezone for you. After changing the configuration file restart the apache web server.
# service apache2 restart
Zabbix frontend is available at http://zabbix-frontend-hostname/zabbix in the browser. Default username/password is Admin/zabbix.
Troubleshooting
See the section on installation-specific issue troubleshooting.
- zabbix install from package
- Install Zabbix 2.2.6 From Package (CentOS 6.4)
- 安装zabbix 3.0/minimal CentOS 7 install zabbix from rpm package
- Install Zabbix 2.2.6 From Sources (CentOS 6.4)
- RedHat install MySql: conflicts with file from package mysql-libs
- Centos minimal install zabbix
- Ubuntu 14.04 install zabbix
- Install an RPM Package on Ubuntu Linux(from how to geek)
- Install software from Fedora installation DVD using Add/Remove software package manager.
- Howto Setup yum repositories to update or install package from ISO CDROM Image
- zabbix Installation from source
- Wix Install Msi package
- PM> Install-Package
- package to install
- Install Package Control
- sublime package control install
- linux ubunt install package
- Sublime Text install package
- 科普:国产芯片、芯片生产设备、通讯标准前世今生(转载)
- Android 中查看内存的使用情况集常用adb命令
- hibernate.hbm2ddl.auto配置详解
- 设计模式的使用原则和常用设计模式的说明
- 浅谈算法和数据结构: 四 快速排序
- zabbix install from package
- 通过httpclient调用webservice
- 删除html元素
- 【转】Java基础:JDK JRE JVM三者之间的联系
- 杭电 acm 2007(平方和与立方和)
- 虚函数与默认实参
- java对象 深度克隆(不实现Cloneable接口)和浅度克隆
- node.js下LDAP查询实践
- C#sealed关键字