Zabbix server Installation manual (1)

Source: Internet
Author: User
Tags snmp

Zabbix serverThe installation process is a bit cumbersome. Let's digest it!

Step 2: Create Zabbix's superuser account

This is the user who runs the server. In actual application, you should create a dedicated Common Account (usually 'zabbix '). Using 'root', 'bin', or other special accounts may cause security issues. Do not do this.

Note: ZABBIX server processes (zabbix_server) under the root account will be protected.

Step 2 unlock ZABBIX source code

 
 
  1. shell> gunzip zabbix.tar.gz && tar -xvf zabbix.tar  
  2.  

Step 2: Create a ZABBIX Database

ZABBIX uses the SQL script to create the required database mode and insert the default configuration. There are two different scripts: MySQL and PostgreSQL. I use MySQL to store data.

 
 
  1. shell> mysql -u -p  
  2.  
  3. mysql> create database zabbix;  
  4.  
  5. mysql> quit;  
  6.  
  7. shell> cd create/mysql  
  8.  
  9. shell> cat schema.sql |mysql -u -p zabbix  
  10.  
  11. shell> cd ../data  
  12.  
  13. shell> cat data.sql |mysql -u -p zabbix  
  14.  
  15. shell> cat images_mysql.sql |mysql -u -p zabbix  
  16.  

Step 2 configure and compile the source code for your system

The source code must be compiled on the server (Monitoring machine) and client (monitored machine. To configure source code for the server, you must specify the database to be used.

 
 
  1. shell> ./configure --prefix=$dir --enable-server --enable-agent --with-mysql --with-net-snmp –with-libcurl  
  2.  

# Configure MySQL + WEB monitoring, install the agent on the server, and monitor the server itself

Note: Mark -- enable-static is used to count the Linked Library. If you plan to publish compiled binary files between different servers, you must use this tag so that these binary files can work without required library files. -- Enable-static cannot work normally on Solaris. The flag -- with-ucd-snmp can be used instead of -- with-net-snmp. If SNMP is not required, -- with-net-snmp and -- with-ucd-snmp can be omitted.


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.