Linux Build Zabbix Monitoring service

Source: Internet
Author: User

First, the service-side deployment

#  Install the extension source, and then install the service dependency package [[email protected] ~]# yum install -y  httpd  mysql mysql-libs php php-mysql mysql-server php-bcmath php-gd php-mbstring#   Install Zabbix packet [[email protected] ~]# yum install -y  zabbix22  Zabbix22-agent zabbix22-server  zabbix22-server-mysql zabbix22-web zabbix22-web-mysql  net-snmp-devel#  start the service separately [[email protected] ~]# /etc/init.d/zabbix-server  startstarting zabbix server:                                      [Determine][[email protected] ~]# /etc/init.d/zabbix-agent  startstarting zabbix agent:                                       [OK][[email protected] ~]# /etc/init.d/httpd start is starting  httpd:                                              [determine]# mysql configuration modify character Set [[email protected] ~]# vim /etc/ my.cnf[mysql]default-character-set = utf8[mysqld]character_set_server = utf8[[email  Protected] ~]# /etc/init.d/mysqld start is starting  mysqld:                                            [ Determine]#  CREATE database, import data [[email protected] ~]# mysql -uroot -e  "Create database zabbix" [[email  protected] ~]# mysql -uroot -e  "grant all on zabbix.* to " Root ' @ ' localhost '  identified by  ' Zabbix ' "[[email protected] ~]# mysql - uroot -p --default-character-set=utf8 zabbix < /usr/share/zabbix-mysql/ schema.sqlenter password:[[email protected] ~]# mysql -uroot -p -- default-character-set=utf8 zabbix < /usr/share/zabbix-mysql/images.sqlenter password:[[ email protected] ~]# mysql -uroot -p --default-character-set=utf8   Zabbix < /usr/share/zabbix-mysql/data.sqlenter password:

Via browser access, go to Zabbix installation homepage and click Next


650) this.width=650; "style=" width:600px;height:392px; "src=" http://s3.51cto.com/wyfs02/M01/6E/92/ Wkiol1wam43wzqztaapwj0gfk0e239.jpg "title=" z1.jpg "alt=" wkiol1wam43wzqztaapwj0gfk0e239.jpg "border=" 0 "height=" 392 "hspace=" 0 "vspace=" 0 "width=" "/>


Some fail options appear here, and we need to debug the host's PHP configuration


650) this.width=650; "style=" width:600px;height:458px; "src=" http://s3.51cto.com/wyfs02/M01/6E/96/ Wkiom1wammliycazaaq5rdla82e719.jpg "title=" z2.jpg "alt=" wkiom1wammliycazaaq5rdla82e719.jpg "border=" 0 "height=" 458 "hspace=" 0 "vspace=" 0 "width=" "/>


[[email protected] ~]# vim /etc/php.inipost_max_size = 8m      Modified to       post_max_size = 16mmax_execution_time = 30       modified to       max_execution_time = 300max_ input_time = 60     modified to      max_input_time =  300;date.timezone =       modified to      date.timezone  =  ' asia/chongqing ' [[Email protected] ~]# /etc/init.d/httpd restart stop   httpd:                                                 [OK] starting  httpd:                                             [OK]


Click Retry, all OK, click Next


650) this.width=650; "style=" width:600px;height:458px; "src=" http://s3.51cto.com/wyfs02/M01/6E/93/ Wkiol1waogjbttnraaqrhd_3knu220.jpg "title=" z3.jpg "alt=" wkiol1waogjbttnraaqrhd_3knu220.jpg "border=" 0 "height=" 458 "hspace=" 0 "vspace=" 0 "width=" "/>


Configure the database information

650) this.width=650; "style=" width:600px;height:458px; "src=" http://s3.51cto.com/wyfs02/M02/6E/93/ Wkiol1wa Or2 xssueaaof9iycgjs882.jpg "title=" z4.jpg "alt=" Wkiol1wa Or2 xssueaaof9iycgjs882.jpg "border=" 0 "height=" 458 "hspace=" 0 "vspace=" 0 "width=" "/>


Click Test Connection, OK, click Next


650) this.width=650; "style=" width:600px;height:458px; "src=" http://s3.51cto.com/wyfs02/M00/6E/97/ Wkiom1waolrrphvqaaol3hycce8016.jpg "title=" z5.jpg "alt=" wkiom1waolrrphvqaaol3hycce8016.jpg "border=" 0 "height=" 458 "hspace=" 0 "vspace=" 0 "width=" "/>


Enter the host IP address and port number (default), install the name (optional), click Next


650) this.width=650; "style=" width:600px;height:458px; "src=" http://s3.51cto.com/wyfs02/M00/6E/97/ Wkiom1wao4qqm87oaamzb2jfv48555.jpg "title=" z6.jpg "alt=" wkiom1wao4qqm87oaamzb2jfv48555.jpg "border=" 0 "height=" 458 "hspace=" 0 "vspace=" 0 "width=" "/>


Final message Confirmation, click Next


650) this.width=650; "style=" width:600px;height:458px; "src=" http://s3.51cto.com/wyfs02/M01/6E/97/ Wkiom1wapejrtd0xaaotsmhtdvu215.jpg "title=" z7.jpg "alt=" wkiom1wapejrtd0xaaotsmhtdvu215.jpg "border=" 0 "height=" 458 "hspace=" 0 "vspace=" 0 "width=" "/>


Installation complete, click Finish


650) this.width=650; "style=" width:600px;height:458px; "src=" http://s3.51cto.com/wyfs02/M00/6E/93/ Wkiol1wapjtdqvmlaal8jeqkhyw497.jpg "title=" z8.jpg "alt=" wkiol1wapjtdqvmlaal8jeqkhyw497.jpg "border=" 0 "height=" 458 "hspace=" 0 "vspace=" 0 "width=" "/>


Installation complete, enter login interface, default account admin, password Zabbix


650) this.width=650; "style=" width:600px;height:458px; "src=" http://s3.51cto.com/wyfs02/M01/6E/97/ Wkiom1wapnfd92v0aalfpxkbk5q763.jpg "title=" z9.jpg "alt=" wkiom1wapnfd92v0aalfpxkbk5q763.jpg "border=" 0 "height=" 458 "hspace=" 0 "vspace=" 0 "width=" "/>


After the first landing, you will be prompted with a warning that we need to make changes.


650) this.width=650; "style=" width:600px;height:531px; "src=" http://s3.51cto.com/wyfs02/M02/6E/97/ Wkiom1wapacbflcyaavbvbtuo4c101.jpg "title=" z10.jpg "alt=" wkiom1wapacbflcyaavbvbtuo4c101.jpg "border=" 0 "height=" 531 "hspace=" 0 "vspace=" 0 "width="/> "

# Modify Zabbix Server master configuration [[email protected] ~]# Vim/etc/zabbix/zabbix_server.confdbuser=rootdbpassword=zabbix[[email Protected] ~]#/etc/init.d/zabbix-server startstarting Zabbix server: [OK]


Looking at the Zabbix main interface, we found that there was no error.


650) this.width=650; "style=" width:600px;height:531px; "src=" http://s3.51cto.com/wyfs02/M02/6E/93/ Wkiol1waqlyw4xcqaaupxae2wnk001.jpg "title=" z11.jpg "alt=" wkiol1waqlyw4xcqaaupxae2wnk001.jpg "border=" 0 "height=" 531 "hspace=" 0 "vspace=" 0 "width="/> "



Second, how to add the host, to monitor the host

# Install and configure the Zabbix client on the monitored host [[email protected] ~]# yum install-y zabbix22-agent[[email protected] ~]# Vim/etc/zabbix_agentd . conf# Configure the IP address of the monitoring server server=192.168.1.134# start the client service [[email protected] ~]#/etc/init.d/zabbix-agentd startstarting Zabbix Agent: [OK]


First, add host name and host address, click Save

650) this.width=650; "style=" width:600px;height:536px; "src=" http://s3.51cto.com/wyfs02/M02/6E/AC/ Wkiom1wcq2atlxh1aatsdhqcbaw086.jpg "title=" z1.jpg "alt=" wkiom1wcq2atlxh1aatsdhqcbaw086.jpg "border=" 0 "height=" 536 "hspace=" 0 "vspace=" 0 "width=" "/>


Second, saved, the host added a just add the host

650) this.width=650; "style=" width:600px;height:82px; "src=" http://s3.51cto.com/wyfs02/M00/6E/A8/ Wkiol1wcrvtcm5pqaae9qiwi6_a060.jpg "title=" z2.jpg "alt=" wkiol1wcrvtcm5pqaae9qiwi6_a060.jpg "border=" 0 "height=" 82 " Hspace= "0" vspace= "0" width= "~"/>


Third, add the host template

Click Templates, enter the Linux keyword in link new templates, display a list of related templates, select Template OS Linux, then click Save

650) this.width=650; "style=" width:600px;height:536px; "src=" http://s3.51cto.com/wyfs02/M02/6E/AC/ Wkiom1wcrmfsqlgzaaptl7hczn8704.jpg "title=" z3.jpg "alt=" wkiom1wcrmfsqlgzaaptl7hczn8704.jpg "border=" 0 "height=" 536 "hspace=" 0 "vspace=" 0 "width=" "/>








This article is from the "topspeed_king" blog, make sure to keep this source http://mylinuxlife.blog.51cto.com/4706737/1664010

Linux Build Zabbix Monitoring service

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.