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
- shell> gunzip zabbix.tar.gz && tar -xvf zabbix.tar
-
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.
- shell> mysql -u -p
-
- mysql> create database zabbix;
-
- mysql> quit;
-
- shell> cd create/mysql
-
- shell> cat schema.sql |mysql -u -p zabbix
-
- shell> cd ../data
-
- shell> cat data.sql |mysql -u -p zabbix
-
- shell> cat images_mysql.sql |mysql -u -p zabbix
-
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.
- shell> ./configure --prefix=$dir --enable-server --enable-agent --with-mysql --with-net-snmp –with-libcurl
-
# 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.