CentOS7 zabbix ¼³Ä¡
https://www.ehostidc.co.kr/ (433)https://www.aiocp.co.kr/host/inqry/forInsertContact.do?goMenuNo=11000¡¦ (431)
1-1) 패Ȗ12;1648; 설치 |
[root@localhost ~]# yum --enablerepo=remi-safe -y install php72-php php72-php-mysqlnd php72-php-gd php72-php-xml php72-php-bcmath php72-php-ldap |
1-2) 패Ȗ12;1648; 설치 |
[root@localhost ~]# yum -y install http://repo.zabbix.com/zabbix/4.2/rhel/7/x86_64/zabbix-release-4.2-1.el7.noarch.rpm |
2) zabbix 설치 |
[root@localhost ~]# yum -y install zabbix-get zabbix-server-mysql zabbix-web-mysql zabbix-agent |
160;
3) DB생성 |
[root@localhost ~]# mysql -u root R11;p MariaDB [(none)]> create database zabbix; MariaDB [(none)]> grant all privileges on zabbix.* to zabbix@'localhost' identified by 'Password'; MariaDB [(none)]> grant all privileges on zabbix.* to zabbix@'%' identified by 'Password';160; MariaDB [(none)]> SET GLOBAL innodb_strict_mode = 0; MariaDB [(none)]> flush privileges; |
160;
4) DB덮Ǻ12;Ǹ16;기 (1060;0120; 완료.108; 상태라 gz파1068;없1020;) |
[root@localhost ~]# cd 160;/usr/share/doc/zabbix-server-mysql-4.2.8/160; [root@localhost zabbix-server-mysql-4.2.8]# gzip 160;-d 160;create.sql.gz160; [root@localhost zabbix-server-mysql-4.2.8]# mysql -u root -p zabbix < create.sql |
160;
5) zabbix_server 설1221; |
DBHost=localhost #line 91 DBPassword=Password #line 124 |
160;
6) 0169;화ǣ17; 설1221; (1060;0120; 설1221;1060; .104;Ǻ12;1080;lj16; 상태) |
[root@localhost ~]# firewall-cmd --add-service={http,https} R11;permanent160; [root@localhost ~]# firewall-cmd --add-port={10051/tcp,10050/tcp} R11;permanent160; [root@localhost ~]# firewall-cmd --reload |
160;
7) zabbix_agentd 설1221; 0143; 서비스 시1089; |
[root@localhost ~]# vi /etc/zabbix/zabbix_agentd.conf160; Server=61.14.211.34 #line 98 ServerActive=61.14.211.34 #line 139160; [root@localhost ~]# systemctl start zabbix-agent [root@localhost ~]# systemctl enable zabbix-agent |
160;
8) php ini 수1221; 0143; httpd 1116;시1089; |
max_execution_time = 300 #line 385160; post_max_size = 16M #line 674 max_input_time = 300 #line 395160; date.timezone = Asia/Seoul #line 904 [root@localhost ~]# systemctl restart httpd |