Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

A series of zabbix monitoring services-NO1yum installation

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Yum installation, everything for convenience

Red Hat Enterprise Linux / CentOS

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

Zabbix 2.2 for RHEL5, Oracle Linux 5, CentOS 5:

Installation of yum feeds

# rpm-ivh http://repo.zabbix.com/zabbix/2.2/rhel/5/x86_64/zabbix-release-2.2-1.el5.noarch.rpm

Zabbix 2.2 for RHEL6, Oracle Linux 6, CentOS 6:x86_64

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

Zabbix 2.2 for RHEL6, Oracle Linux 6, CentOS 6:i386

Http://repo.zabbix.com/zabbix/2.2/rhel/6/i386/zabbix-release-2.2-1.el6.noarch.rpm

Installing Zabbix packages

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

Zabbix

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

# yum install zabbix-agent

Database

Create zabbix database and user on MySQL.

# mysql-uroot

Mysql > 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.2.0/create

# mysql-uroot zabbix < schema.sql

# mysql-uroot zabbix < p_w_picpaths.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, pay attention to case.

If some plug-ins such as (zabbix_sender,zabbix_get) cannot be used, please install them using the source package,

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report