zabbix-Monitoring Linux Servers

Source: Internet
Author: User
Tags import database

First, Zabbix monitoring

1. Turn off the firewall

[Email protected] ~]# Systemctl stop Firewalld

[Email protected] ~]# systemctl disable FIREWALLD

    1. Close SELinux

[[Email protected] ~]# sed ' s/=permissive/=disabled/'/etc/selinux/config

[Email protected] ~]# Setenforce 0

according to build lamph Environment

[email protected] ~]# Yum install httpd mariadb mariadb-server php-y

[Email protected] ~]# systemctl start httpd mariadb

configuring the Zabbix yum source

[[Email protected] ~] #yum Install Http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm-y

[[Email protected] ~] #yum List | grep ^zabbix

zabbix-agent.x86_64 3.4.3-1.el7 @zabbix

zabbix-get.x86_64 3.4.3-1.el7 @zabbix

Zabbix-release.noarch 3.4-2.el7 Installed

zabbix-server-mysql.x86_64 3.4.3-1.el7 @zabbix

Zabbix-web.noarch 3.4.3-1.el7 @zabbix

Zabbix-web-mysql.noarch 3.4.3-1.el7 @zabbix

zabbix-java-gateway.x86_64 3.4.3-1.el7 Zabbix

zabbix-proxy-mysql.x86_64 3.4.3-1.el7 Zabbix

zabbix-proxy-pgsql.x86_64 3.4.3-1.el7 Zabbix

zabbix-proxy-sqlite3.x86_64 3.4.3-1.el7 Zabbix

zabbix-sender.x86_64 3.4.3-1.el7 Zabbix

zabbix-server-pgsql.x86_64 3.4.3-1.el7 Zabbix

Zabbix-web-japanese.noarch 3.4.3-1.el7 Zabbix

Zabbix-web-pgsql.noarch 3.4.3-1.el7 Zabbix

[[Email protected] ~] #yum install Zabbix zabbix-server zabbix-server-mysql zabbix-get zabbix-web zabbix-web-mysql

Modify The PHP time zone

[Email protected] ~]# vim/etc/httpd/conf.d/zabbix.conf

# php_value Date.timezone Europe/ri GA

Switch

Php_value Date.timezone Asia/shanghai

Database Settings

Create a database

[Email protected] ~]# mysql-e "CREATE database Zabbix character set UTF8;"

Authorization to the database

[Email protected]~] #mysql-E "Grant all on zabbix.* to [email protected] ' localhost ' identified by ' Zabbix ';"

Refresh Permissions Table

[[Email protected] ~] #mysql-E "flush privileges"

Import Database

[Email protected] ~]# cd/usr/share/doc/zabbix-server-mysql-3.4.3/

[[email protected] zabbix-server-mysql-3.4.3]# ls

AUTHORS ChangeLog COPYING create.sql.gz NEWS README

[Email protected] ~]# Zcat create.sql.gz | Mysql-u zabbix-p Zabbix

Enter Password:

To view the imported tables

[Email protected] ~]# mysql-uzabbix-p-e ' use Zabbix; Show tables; '

modifying The Zabbix configuration file

Configuring the Zabbix_server configuration file
Path: /etc/zabbix/zabbix_server.conf

Modify the main parameters to work properly
Dbname=zabbix database name
Dbuser=zabbix Database User
Dbpassword=zabbix Database Password

Restart Apache and Zabbix

Systemctl Restart httpd

Systemctl Start Zabbix

Web Interface Login

Http:/192.168.138.11/zabbix

Login Zabbix

Default User name: admin, Password: Zabbix

Interface is English, but can be Chinese

Note: After this modification, the general view is no problem, but there will be garbled on the monitor chart

3, solve Zabbix Chinese garbled method:
1), Upload files to Zabbix
Locate the local C:\Windows\Fonts\ Simkai.ttf (in italics) that is uploaded to the server Zabbix site Directory Fonts directory.
The font directory is:/usr/share/zabbix/fonts/

2), modify Zabbix PHP configuration file
[Email protected] ~]# sed-i ' s/graphfont/simkai/g '/usr/share/zabbix/include/defines.inc.php

zabbix-monitoring Linux servers

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.