Installation of monitoring software Zabbix

Source: Internet
Author: User
Tags snmp

1. Build lamp environment and install system dependency package

[[email protected] ~]# Yum install gcc gcc-c++ crul crul-devel mysql mysql-server httpd php-gd php php-xml php-mbstring NE T-snmp SNMP net-snmp-devel php-mysql php-bcmath-y

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

ServerName localhost

DirectoryIndex index.php index.html Index.html.var

AddType application/x-httpd-php. php

[Email protected] conf]# vim/var/www/html/index.php

<?php
Phpinfo ();
?>

[Email protected] conf]# Vim/etc/php.ini

Date.timezone = "Asia/shanghai"

[Email protected] conf]#/etc/init.d/httpd restart
stopping httpd: [FAILED]
Starting httpd: [OK]
[Email protected] conf]#/etc/init.d/mysqld restart
Shutting down MySQL ... success!
Starting MySQL. success!
[Email protected] conf]#

Test:

650) this.width=650; "title=" 11.jpg "alt=" wkiom1ucztlhxehsaarvblzf9yi325.jpg "src=" http://s3.51cto.com/wyfs02/M02/ 5c/3b/wkiom1ucztlhxehsaarvblzf9yi325.jpg "/>

2. Download and install the Zabbix software

[Email protected] ~]# wget http://jaist.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest% 20stable/2.4.4/zabbix-2.4.4.tar.gz

[Email protected] ~]# tar xvf zabbix-2.4.4.tar.gz

[Email protected] ~]# mysql-u root-p
Enter Password:
Welcome to the MySQL Monitor. Commands End With; or \g.
Your MySQL Connection ID is 3
Server Version:5.6.21-log MySQL Community Server (GPL)

Copyright (c), the Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of the Oracle Corporation and/or its
Affiliates. Other names trademarks of their respective
Owners.

Type ' help ', ' or ' \h ' for help. Type ' \c ' to clear the current input statement.

mysql> CREATE DATABASE Zabbix;
Query OK, 1 row Affected (0.00 sec)

Mysql> Grant all privileges the zabbix.* to [email protected]' localhost ' identified by ' system ';
Query OK, 0 rows Affected (0.00 sec)

mysql> flush Privileges;
Query OK, 0 rows Affected (0.00 sec)

Mysql>\u Zabbix

Mysql> Source/root/zabbix-2.4.4/database/mysql/schema.sql;

Mysql> Source/root/zabbix-2.4.4/database/mysql/images.sql;

Mysql> Source/root/zabbix-2.4.4/database/mysql/data.sql;

Mysql> exit
Bye

[Email protected] ~]# CD zabbix-2.4.4

[Email protected] zabbix-2.4.4]#/configure--prefix=/usr/local/zabbix-2.4.4--enable-server--enable-agent-- With-net-snmp--with-libcurl--enable-proxy--with-mysql=/usr/bin/mysql_config

[[email protected] zabbix-2.4.4]# make && make install

[Email protected] zabbix-2.4.4]# vim/etc/services

Zabbix-agent 10050/tcp # Client
Zabbix-agent 10050/UDP #
Zabbix-trapper 10051/TCP # Server
Zabbix-trapper 10051/UDP # Server

[Email protected] zabbix-2.4.4]# cd/usr/local/zabbix-2.4.4/sbin/

[Email protected] sbin]# useradd-r-s/sbin/nologin-u 10050 Zabbix

[Email protected] sbin]# vim. /etc/zabbix_server.conf

Dbname=zabbix-- database name

Dbuser=zabbix --Database user name

dbpassword=123456-- Database Password

listenip=127.0.0.1-- database IP address

[Email protected] sbin]# cp-a ~/zabbix-2.4.4/misc/init.d/tru64/zabbix_*/etc/init.d/

[Email protected] sbin]# chmod +x/etc/init.d/zabbix_agentd
[Email protected] sbin]# chmod +x/etc/init.d/zabbix_server

[Email protected] sbin]# VIM/ETC/INIT.D/ZABBIX_AGENTD

Daemon=/usr/local/zabbix-2.4.4/sbin/zabbix_agentd

[Email protected] sbin]# Vim/etc/init.d/zabbix_server

Daemon=/usr/local/zabbix-2.4.4/sbin/zabbix_server

[[email protected] sbin]#/etc/init.d/zabbix_agentd start
Zabbix agent started.
[[email protected] sbin]#/etc/init.d/zabbix_server start
Zabbix server started.

[Email protected] sbin]# cp-a ~/zabbix-2.4.4/frontends/php/var/www/html/zabbix

[Email protected] sbin]# cd/var/www/html/

[Email protected] html]# chown-r Apache:apache zabbix/

[Email protected] html]# Vim/etc/php.ini

Post_max_size = 16M

Max_execution_time = 300

Max_input_time = 300

[Email protected] html]#

Figure:

650) this.width=650; "title=" 12.jpg "style=" Float:none; "alt=" wkiol1uc3ott8laeaaoolunpixo002.jpg "src=" http:/ S3.51cto.com/wyfs02/m01/5c/36/wkiol1uc3ott8laeaaoolunpixo002.jpg "/>

650) this.width=650; "title=" 13.jpg "style=" Float:none; "alt=" wkiom1uc26asioqaaas8wfbxjsq894.jpg "src=" http:/ S3.51cto.com/wyfs02/m01/5c/3b/wkiom1uc26asioqaaas8wfbxjsq894.jpg "/>

650) this.width=650; "title=" 14.jpg "style=" Float:none; "alt=" wkiol1uc3oxqcromaao99ikprnm382.jpg "src=" http:/ S3.51cto.com/wyfs02/m02/5c/36/wkiol1uc3oxqcromaao99ikprnm382.jpg "/>

650) this.width=650; "title=" 15.jpg "style=" Float:none; "alt=" wkiom1uc26eckyo8aamtxclplew135.jpg "src=" http:/ S3.51cto.com/wyfs02/m02/5c/3b/wkiom1uc26eckyo8aamtxclplew135.jpg "/>

650) this.width=650; "title=" 16.jpg "style=" Float:none; "alt=" wkiol1uc3oaq52fcaaoyvtqnpmo551.jpg "src=" http:/ S3.51cto.com/wyfs02/m00/5c/36/wkiol1uc3oaq52fcaaoyvtqnpmo551.jpg "/>

650) this.width=650; "title=" 17.jpg "style=" Float:none; "alt=" wkiom1uc26ibeni1aal1l5p9euy203.jpg "src=" http:/ S3.51cto.com/wyfs02/m00/5c/3b/wkiom1uc26ibeni1aal1l5p9euy203.jpg "/>

User name: admin, Password: Zabbix

650) this.width=650; "title=" 18.jpg "style=" Float:none; "alt=" wkiol1uc3oeacen_aanj1jamoe4954.jpg "src=" http:/ S3.51cto.com/wyfs02/m01/5c/36/wkiol1uc3oeacen_aanj1jamoe4954.jpg "/> 650) this.width=650;" title= "20.jpg" src= " Http://s3.51cto.com/wyfs02/M02/5C/37/wKioL1Uc4AiTEGmdAAUWPYjEbsY395.jpg "alt=" Wkiol1uc4aitegmdaauwpyjebsy395.jpg "/>

This article is from the "Days Together" blog, please be sure to keep this source http://tongcheng.blog.51cto.com/6214144/1627641

Installation of monitoring software Zabbix

Related Article

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.