Zabbix-server End Deployment
Zabbix is a powerful monitoring tool, collection, data storage, alarm and other functions in one. Its default listener port is 10051, where the server side of Zabbix is deployed , and the database chooses MySQL .
The database needs to be installed in advance and configured as follows:
MariaDB [(None)]> CREATE DATABASE Zabbix CHARACTER SET UTF8;
Query OK, 1 row Affected (0.00 sec)
MariaDB [(None)]> GRANT all on zabbix.* to ' zabbixuser ' @ ' 192.168.1.% ' identified by ' zabbixpass ';
Query OK, 0 rows affected (0.14 sec)
MariaDB [(None)]> GRANT all on zabbix.* to ' zabbixuser ' @ ' localhost ' identified by ' zabbixpass ';
Query OK, 0 rows Affected (0.00 sec)
MariaDB [(None)]> FLUSH privileges;
Query OK, 0 rows Affected (0.00 sec)
installation Zabbix of the Server multiple mounting methods, which can be directly Yum installed, you can also compile the installation. Choose a simple yum installation here, which can be downloaded on the official website when Yum is installed zabbix-release-2.4-1.el6.noarch.rpm, of course, can also download the relevant packages, installed on each. I have a related package on the official website:
zabbix-2.4.0-1.el6.x86_64.rpm zabbix-server-2.4.0-1.el6.x86_64.rpm
zabbix-agent-2.4.0-1.el6.x86_64.rpm zabbix-server-mysql-2.4.0-1.el6.x86_64.rpm
zabbix-get-2.4.0-1.el6.x86_64.rpm zabbix-web-2.4.0-1.el6.noarch.rpm
zabbix-sender-2.4.0-1.el6.x86_64.rpm zabbix-web-mysql-2.4.0-1.el6.noarch.rpm
Installation can be installed on the
[email protected] zabbix]# Yum install zabbix-2.4.0-1.el6.x86_64.rpm zabbix-server-2.4.0-1.el6.x86_64.rpm zabbix-server-mysql-2.4.0-1.el6.x86_64.rpm zabbix-get-2.4.0-1.el6.x86_64.rpm zabbix-web-2.4.0-1.el6.noarch.rpm zabbix-web-mysql-2.4.0-1.el6.noarch.rpm zabbix-agent-2.4.0-1.el6.x86_64.rpm zabbix-sender-2.4.0-1.el6.x86_64.rpm
after installation, you need to import the database three files, // import these three files first before starting, import order Schema.sql , Images.sql , Data.sql
[Email protected] zabbix]# cd/usr/share/doc/zabbix-server-mysql-2.4.0/create/
[[email protected] create]# ls
Data.sql Images.sql Schema.sql
[[email protected] create]# MySQL Zabbix < schema.sql// Import
[[email protected] create]# MySQL Zabbix < images.sql
[[email protected] create]# MySQL Zabbix < data.sql
Make an approximate description of the configuration file
Logfile=/var/log/zabbix/zabbix_server.log// Log File Location
logfilesize=0// log File Size
# # Option:debuglevel// log level, default third level. Above the third level will be recorded.
# Specifies debug level
# 0-basic information about starting and stopping of Zabbix processes
# 1-critical Information
# 2-error Information
# 3-warnings
# 4-for Debugging (produces lots of information)
dbhost=192.168.1.117// the storage host for the database specifies the node for the database.
Dbname=zabbix// The name of the library used
Dbuser=zabbixuser// Database user name
Dbpassword=zabbixpass// Password
# dbport=3306// Default Port
# startpollersunreachable=1// probe host online or not
# Startdiscoverers=1// start several discovery processes.
# Starttimers=1// start several timer processes
Snmptrapperfile=/var/log/snmptt/snmptt.log// received Snmptrapper The location where the information is saved.
# senderfrequency=30// every number of times the alarm is sent
# startdbsyncers=4//db Synchronization Process
alertscriptspath=/usr/lib/zabbix/alertscripts// the location of the alarm script.
externalscripts=/usr/lib/zabbix/externalscripts// the location where other external scripts are called.
[email protected] zabbix]# Vim/etc/php.ini// Modify Time Zone
Date.timezone = Asia/shanghai
[[Email protected] zabbix]# service httpd restart// The restart is not valid.
stopping httpd: [OK]
Starting http: [OK]
[[Email protected] zabbix]# service Zabbix-server start
Starting Zabbix server: [OK]
Next, you'll be able to access the page Http://192.168.1.117/zabbix
650) this.width=650; "id=" Big_pic "src=" http://home.51cto.com/thumb.php?w=600&h=600&t=f&url=http:// S3.51cto.com/wyfs02/m00/5d/f0/wkiom1unj0cdcgi6aaloghc5b30826.jpg "alt=" Wkiom1unj0cdcgi6aaloghc5b30826.jpg "/>
Click Next
650) this.width=650; "Src=" http://home.51cto.com/thumb.php?w=600&h=600&t=f&url=http://s3.51cto.com/ Wyfs02/m01/5d/ec/wkiol1unkiysaw3xaaoawloubl8645.jpg "alt=" Wkiol1unkiysaw3xaaoawloubl8645.jpg "/>
's All OK the next point Next
650) this.width=650; "Src=" http://home.51cto.com/thumb.php?w=600&h=600&t=f&url=http://s3.51cto.com/ Wyfs02/m02/5d/ec/wkiol1unki2rozvcaamugkg1yfy230.jpg "alt=" Wkiol1unki2rozvcaamugkg1yfy230.jpg "/>
is to fill in some of the options, in advance in the configuration file has the settings, fill out and then click Test Connection .
650) this.width=650; "Src=" http://home.51cto.com/thumb.php?w=600&h=600&t=f&url=http://s3.51cto.com/ Wyfs02/m02/5d/f0/wkiom1unj0pc4oe7aanftgzb02g162.jpg "alt=" Wkiom1unj0pc4oe7aanftgzb02g162.jpg "/>
No problem, then next step
650) this.width=650; "Src=" http://home.51cto.com/thumb.php?w=600&h=600&t=f&url=http://s3.51cto.com/ Wyfs02/m00/5d/ec/wkiol1unki-dvfybaalkax27vru614.jpg "alt=" Wkiol1unki-dvfybaalkax27vru614.jpg "/>
Name no need to fill in, then Next .
650) this.width=650; "Src=" http://home.51cto.com/thumb.php?w=600&h=600&t=f&url=http://s3.51cto.com/ Wyfs02/m00/5d/f0/wkiom1unj0tq-fvgaanipd5h_fm272.jpg "alt=" Wkiom1unj0tq-fvgaanipd5h_fm272.jpg "/>
This is the case of configuration, confirm that there is no problem, and then next.
650) this.width=650; "Src=" http://home.51cto.com/thumb.php?w=600&h=600&t=f&url=http://s3.51cto.com/ Wyfs02/m01/5d/ec/wkiol1unkjcqisj5aak3sciqq1s422.jpg "alt=" Wkiol1unkjcqisj5aak3sciqq1s422.jpg "/>
Display Create OK , you can log in, and the default login name is Admin , the password is Zabbix .
650) this.width=650; "Src=" http://home.51cto.com/thumb.php?w=600&h=600&t=f&url=http://s3.51cto.com/ Wyfs02/m01/5d/f0/wkiom1unj0bcd1vvaakx_jud6au157.jpg "alt=" Wkiom1unj0bcd1vvaakx_jud6au157.jpg "/>
The next page appears after you sign in.
650) this.width=650; "Src=" http://home.51cto.com/thumb.php?w=600&h=600&t=f&url=http://s3.51cto.com/ Wyfs02/m02/5d/ec/wkiol1unkjkxuqjvaara1v7t-2e588.jpg "alt=" Wkiol1unkjkxuqjvaara1v7t-2e588.jpg "/>
Here are the explanations for the page:
Monitoring : Dashboards for monitoring
Inventory : Asset List
Reports: Monitoring Reports
Configuration : administrator configures the host for monitoring administration are defined here.
Administration: is used to manage the entire Web interface is defined in this
<-- This is not finished, but just beginning, real production is not the way to play. --
Zabbix-server-Side deployment