Zabbix Monitoring Deployment

Source: Internet
Author: User
Tags snmp

Zabbix is an open source monitoring software, let's study the deployment of Zabbix monitoring together.

Environment:

Host Name Address System Role
Tiandong 192.168.209.3 centos6.5 Service side
Winter 192.168.209.4 centos6.5 Client

Zabbix deployment is based on the LNMP environment, so prepare the LNMP environment in advance. You can refer to bloggers ' previous blogs

[Email protected] ~]# mysql-uroot-p123456
mysql> CREATE DATABASE Zabbix;
Query OK, 1 row affected (0.09 sec)
Mysql>
Mysql> Grant all on zabbix.* to [e-mail protected] identified by ' Zabbix ';
Query OK, 0 rows affected (0.14 sec)

mysql> flush Privileges;
Query OK, 0 rows affected (0.06 sec)

Mysql>
[Email protected] ~]# tar zxvf zabbix-3.0.5.tar.gz-c/usr/local/src/
[Email protected] ~]# cd/usr/local/src/zabbix-3.0.5/
[email protected] zabbix-3.0.5]# ll database/
Total 40
Drwxr-xr-x 2 4096 Sep IBM_DB2
-rw-r--r--1 392 Sep makefile.am
-rw-r--r--1 14489 Sep makefile.in
Drwxr-xr-x 2 4096 Sep MySQL
Drwxr-xr-x 2 4096 Sep
Drwxr-xr-x 2 4096 Sep
Drwxr-xr-x 2 4096 Sep sqlite3
[Email protected] zabbix-3.0.5]# Mysql-uzabbix-pzabbix Zabbix < Database/mysql/schema.sql
Warning:using a password on the command line interface can is insecure.
[Email protected] zabbix-3.0.5]# Mysql-uzabbix-pzabbix Zabbix < Database/mysql/images.sql
Warning:using a password on the command line interface can is insecure.
[Email protected] zabbix-3.0.5]# Mysql-uzabbix-pzabbix Zabbix < Database/mysql/data.sql
Warning:using a password on the command line interface can is insecure.
[email protected] zabbix-3.0.5]# Yum install net-snmp-devel-y
[Email protected] zabbix-3.0.5]#/configure--prefix=/usr/local/zabbix--enable-server--enable-agent--with-mysql= /usr/local/mysql/bin/mysql_config--with-net-snmp--with-libcurl
[[email protected] zabbix-3.0.5]# make install
[Email protected] zabbix-3.0.5]# vim/usr/local/zabbix/etc/zabbix_server.conf

Dbhost=localhost Remove Annotations

111 Dbpassword=zabbix Remove Comments

[Email protected] zabbix-3.0.5]# vim/usr/local/zabbix/etc/zabbix_agentd.conf

278 Unsafeuserparameters=1

[Email protected] zabbix-3.0.5]# useradd-m-s/sbin/nologin Zabbix
[Email protected] zabbix-3.0.5]#/usr/local/zabbix/sbin/zabbix_server #启动服务
[Email protected] zabbix-3.0.5]# echo/usr/local/zabbix/sbin/zabbix_server >>/etc/rc.local #开机自启
[Email protected] zabbix-3.0.5]# Netstat-antup|grep Zabbix
TCP 0 0 0.0.0.0:10051 0.0.0.0:* LISTEN 44456/zabbix_server
[Email protected] ~]# cd/usr/local/nginx/html/
[email protected] html]# LL
Total 12
-rw-r--r--1 root root 537 June 23:10 50x.html
-rw-r--r--1 root root 612 June 23:10 index.html
-rw-r--r--1 root root, June 00:38 index.php
[Email protected] html]# RM-RF *
[Email protected] ~]# cd/usr/local/src/zabbix-3.0.5/frontends/php/
[Email protected] php]# Cp-r */usr/local/nginx/html/
[Email protected] ~]#/usr/local/nginx/sbin/nginx-s Reload #重启nginx服务
Then access it in the browser:

Follow the steps:

There are a lot of fail places, you need to modify the configuration file.

[[email protected] ~]# Vim/usr/local/php/php.ini Modify parameters
You need to add a module

[Email protected] ~]# cd/usr/local/src/php-5.6.13/ext/gettext/
[[email protected] gettext]# ls
CONFIG.M4 config.w32 CREDITS gettext.c gettext.dsp php_gettext.h tests
[Email protected] gettext]#/usr/local/php/bin/phpize
Configuring for:
PHP Api version:20131106
Zend Module Api no:20131226
Zend Extension Api no:220131226
[[email protected] gettext]# ls
ACINCLUDE.M4 build config.m4 configure.in gettext.c ltmain.sh mkinstalldirs tests
ACLOCAL.M4 config.guess config.sub config.w32 gettext.dsp makefile.global php_gettext.h
Autom4te.cache config.h.in Configure CREDITS install-sh missing run-tests.php

[Email protected] gettext]#/configure--with-php-config=/usr/local/php/bin/php-config
[[email protected] gettext]# make && make install

[Email protected] gettext]# Vim/usr/local/php/php.ini

902 extension= "gettext.so" plus this sentence

[[email protected] gettext]#/etc/init.d/php-fpm Reload Reload

There is no error when refreshing the page.

Download the files and upload them to the Nginx file.

User name: admin, Password: Zabbix

The Zabbix was deployed here.

The interface is modifiable and can be converted into Chinese.

Isn't that nice?

Problem with garbled display:

Find a character set on Windows and put it in the configuration file.

[[email protected] ~]# cd/usr/local/nginx/html/fonts/upload the character set file here
The character can return to normal, (but the file name and the previous filename are changed to match)














Zabbix Monitoring Deployment

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.