Linux under Installation configuration Zabbix monitoring

Source: Internet
Author: User
Tags value store

Zabbix installation Configuration

Environment Construction:

Service-Side 192.168.11.11

Client 192.168.11.100

1, installation Zabbix

Yum Install-y epel-release

Installing the RPM package for the lamp environment

Yum install-y httpd mysql mysql-libs php php-mysql mysql-server php-bcmath php-gd php-mbstring

Install the Zabbix server (the latest version is 2.4, the 2.2 version installed here):

Yum install-y zabbix22 zabbix22-agent zabbix22-server zabbix22-server-mysql zabbix22-web zabbix22-web-mysql Net-snmp-devel

Start the service:

/etc/init.d/zabbix-server start/etc/init.d/zabbix-agent start/etc/init.d/httpd Start

Modify the MySQL configuration file

VIM/ETC/MY.CNF//Modify or add the following content

[mysql]default-character-set = Utf8[mysqld]character_set_server = UTF8

Start the MySQL service

/etc/init.d/mysqld start

Create a database, import data

Mysql-uroot-p-E "CREATE Database Zabbix" Mysql-uroot-p--default-character-set=utf8 Zabbix </usr/share/zabbix-mys Ql/schema.sqlmysql-uroot-p--default-character-set=utf8 Zabbix </usr/share/zabbix-mysql/images.sqlmysql-uroot- P--default-character-set=utf8 Zabbix </usr/share/zabbix-mysql/data.sql

2, Web installation Zabbix

Browser Access Http://192.168.11.11/zabbix

650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s3.51cto.com/wyfs02/m02/6e/df/wkiol1wkekqyomavaanoh1-lwge101.jpg "title=" zabbix.jpg "alt=" Wkiol1wkekqyomavaanoh1-lwge101.jpg "/>

The first time it will appear, the configuration has the wrong place

650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s3.51cto.com/wyfs02/m02/6e/e2/wkiom1wkekvae06xaakokhddzqw183.jpg "title=" zabbix1.jpg "alt=" Wkiom1wkekvae06xaakokhddzqw183.jpg "/>

Need to modify Vi/etc/php.ini to set according to required

Set Date.timezone=asia/shanghai

Reboot required after Setup httpd #/etc/init.d/httpd Restart

Back to the Web page Point retry button, all show OK, continue to the next step;

Configuring DB Connect information

Need to authorize a user First

MYSQL-UROOT-E "Grant all on zabbix.* to ' Zabbix ' @localhost identified by ' Zabbix '"

Enter MySQL related information, first of all to test, if not pass, you need to debug, test pass, click Next

650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s3.51cto.com/wyfs02/m01/6e/df/wkiol1wkeqbtilf5aajeigpxnkg830.jpg "title=" zabbix2.jpg "alt=" Wkiol1wkeqbtilf5aajeigpxnkg830.jpg "/>

Name write 127.0.0.1, (can be customized)

650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s3.51cto.com/wyfs02/m01/6e/e2/wkiom1wkeswxxnq8aagjbtob2ni337.jpg "title=" zabbix3.jpg "alt=" Wkiom1wkeswxxnq8aagjbtob2ni337.jpg "/>

The next page displays the information previously filled out, after the installation is completed click the Finish button;

Fill in the configuration file as: "/etc/zabbix/web/zabbix.conf.php"

Default Administrator account is Admin:zabbix

After logging in, you will be promptedwith an error such as "Zabbix server is not running" , you need to edit/etc/zabbix/zabbix_server.conf, configure Dbuser, Dbpassword

Dbpassword=zabbix

After saving exits, restart the service to take effect/etc/init.d/zabbix-server restart

Zabbix status display yes after reboot;


Change language:

upper right corner profile--language inside select Chinese zh_cn, Chinese display;


3, access to monitor the host

Only the agent needs to be installed on the client

Yum Install-y zabbix22-agent

vim/etc/zabbix_agentd.conf//change

Server=192.168.11.11serveractive=127.0.0.1hostname=yong-zabbix

Start the client

/etc/init.d/zabbix-agent start


Web Interface Configuration Monitor host and monitor templates:

Under Web interface, click "Configuration"--"host" and "Create host" in the upper right corner.

Where host name, visible name is customized, groups: select "Linux Servers", IP address write client IP;

650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s3.51cto.com/wyfs02/m00/6e/df/wkiol1wke8qj_cpwaajajlattiw689.jpg "title=" host.jpg "alt=" wKioL1WKe8qj_ Cpwaajajlattiw689.jpg "/>

Configure Monitoring project Template: Point "Templates", Link new Templates box input OS select template os Linux, point Add, save save;

650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s3.51cto.com/wyfs02/m01/6e/df/wkiol1wke-qs62ceaaeh17gi-2w850.jpg "title=" 3.jpg "alt=" Wkiol1wke-qs62ceaaeh17gi-2w850.jpg "/>

or in the hosts list select Zabbix Server This line , click Items, select the desired monitoring item, tick, select the drop-down menu in the copy selected to click Go

Another window: Group Select linux servers; target Check host (custom monitor hostname).

650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s3.51cto.com/wyfs02/m00/6e/e2/wkiom1wke1jqu5-4aaamqlh4wzk927.jpg "title=" 1.jpg "alt=" Wkiom1wke1jqu5-4aaamqlh4wzk927.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6E/DF/wKioL1WKfR6ii7edAACSuvUMcIk696.jpg "title=" 2.jpg " alt= "Wkiol1wkfr6ii7edaacsuvumcik696.jpg"/>

650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>


To add a monitoring network card traffic item:

Select the Configuration--host--items point and select Create item in the upper right corner.

650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s3.51cto.com/wyfs02/m01/6e/e2/wkiom1wkeu-sp_30aanuuhevu2k019.jpg "title=" 1.jpg "alt=" WKiom1WKeu-Sp_ 30aanuuhevu2k019.jpg "/>

Name Name: NIC traffic out   Key Value key selection button inside the Select menu select   net.if.out[if,<mode>]   Change [] inside to monitor the host's network card < Strong style= "Background-color:inherit;" >eth1 , store value store Value: difference (Rate per second) Delta (speed per second)   &NBSP; units can optionally fill in :bps

650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s3.51cto.com/wyfs02/m00/6e/e2/wkiom1wkex3b2sbsaajqp7zkzfs999.jpg "title=" network card traffic. jpg "alt=" Wkiom1wkex3b2sbsaajqp7zkzfs999.jpg "/>

Monitoring chart: Monitoring--lastest data, below the list of monitoring host monitoring items, right click Graph, into the chart

650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s3.51cto.com/wyfs02/m01/6e/df/wkiol1wkfezyae4taanzqwesrku720.jpg "title=" 2.jpg "alt=" Wkiol1wkfezyae4taanzqwesrku720.jpg "/>

Network card Traffic out chart

650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s3.51cto.com/wyfs02/m00/6e/e2/wkiom1wkenbychmfaaotmtozdbg849.jpg "title=" 3.jpg "alt=" Wkiom1wkenbychmfaaotmtozdbg849.jpg "/>


Zabbix Graphics page garbled solution:

Windows fonts C:\Windows\Fonts such as italics

Copy to Desktop file name: Simkai.ttf

Upload fonts to a remote Linux host;

Overwrite the original font:

MV Simkai.ttf/usr/share/fonts/dejavu/dejavusans.ttf

Zabbix the font used by default /usr/share/fonts/dejavu/dejavusans.ttf

Defined in the config file/usr/share/zabbix/include/defines.inc.php:

Define (' Zbx_fontpath ', '/usr/share/fonts/dejavu');

Define (' Zbx_graph_font_name ', 'dejavusans');

Refresh the page to see the Chinese italic display

650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s3.51cto.com/wyfs02/m00/6e/e2/wkiom1wkd9obda66aamcwltvyzc804.jpg "title=" 1.jpg "alt=" Wkiom1wkd9obda66aamcwltvyzc804.jpg "/>



This article is from the "Model Student's Learning blog" blog, please be sure to keep this source http://8802265.blog.51cto.com/8792265/1665179

Linux under Installation configuration Zabbix monitoring

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.