ZabbixThere are three main points required for configuration and installation. Let's take a look!
If no error is reported during Zabbix configuration and installation, click OK. Then add the corresponding Port:
Vi/etc/services
Join
- zabbix_agent 10050/tcp # zabbix agent
-
- zabbix_agent 10050/udp # zabbix agent
-
- zabbix_trapper 10051/tcp # zabbix trapper
-
- zabbix_trapper 10051/udp # zabbix trapper
-
Copy the configuration file and Service Startup Script
Cp-rf misc/conf/opt/app/zabbix/etc-R
To
Misc/init. d/
Select a STARTUP script that suits your environment, or write
Add a zabbix user
Useradd zabbix
Run the script to start zabbix_server and zabbix_agentd.
[Root @ zabbix ~] # Ll/usr/local/zabbix/sbin/
Total 2344
- -rwxr-xr-x 1 root root 362581 Apr 16 22:55 zabbix_agent
-
- -rwxr-xr-x 1 root root 425336 Apr 16 22:55 zabbix_agentd
-
- -rwxr-xr-x 1 root root 136854 Apr 16 22:55 zabbix_get
-
- -rwxr-xr-x 1 root root 163086 Apr 16 22:55 zabbix_sender
-
- -rwxr-xr-x 1 root root 1284665 Apr 16 22:55 zabbix_server
-
Zabbix configuration is returned to the zabbix compilation directory:
Generate the configuration file:
- mkdir /etc/zabbix
-
- cp misc/conf/* /etc/zabbix/
-
- vi frontends/php/include/db.inc.php
-
Change database content:
- $DB_TYPE ="MYSQL";
-
- $DB_SERVER ="localhost";
-
- $DB_DATABASE ="zabbix";
-
- $DB_USER ="zabbix";
-
- $DB_PWD ="zabbix";
-
- cp -rf frontends/php /var/www/html/zabbix -R
-
Configure Zabbix to access the web: http: // localhost/zabbix for installation.