zabbix-server install
작성자 기준 테스트 환경 :
Linux localhost.localdomain 3.10.0-693.el7.x86_64 #1 SMP Tue Aug 22 21:09:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
centos-release-7-4.1708.el7.centos.x86_64
minimal 로 설치 했기 때문에 ifconfig 명령어가 없어 net-tools 설치 해야 합니다.
작업 전에 firewalld 를 iptables 변경해 줍니다. 추후 geoip 모듈을 올릴 수도 있고, iptables가 자세한 룰셋 설정시 더 익숙한 이유 입니다.
selinux disabled 도 해주세요.
-
zabbix-server agent mysql install
$ rpm -Uvh https://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm
$ yum clean all
$ yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent
$ yum install mysql mariadb-server
## 설치된 패키지 확인 ##
zabbix-web-mysql-3.0.30-2.el7.noarch
zabbix-server-mysql-3.0.30-2.el7.x86_64
zabbix-release-3.0-1.el7.noarch
zabbix-web-3.0.30-2.el7.noarch
zabbix-agent-3.0.30-2.el7.x86_64
php-5.4.16-46.1.el7_7.x86_64
mariadb-5.5.64-1.el7.x86_64
httpd-2.4.6-90.el7.centos.x86_64
$ php -i | grep -i Configuration
Loaded Configuration File => /etc/php.ini
$ vi /etc/php.ini
;date.timezone =
date.timezone = Asia/Seoul ## added
$ systemctl start mariadb ; systemctl enable mariadb
$ mysql_secure_installation
패스워드 입력하고 yyyyyy
$ mysql -uroot -p
password
mysql> use mysql;
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'eoqkraktkdthvmxm)#)@';
mysql> use zabbix; show tables;
mysql> quit;
$ zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix
$ mysql -u root -p
mysql> use zabbix; show tables;
## rows 113 confirm
$ vi /etc/zabbix/zabbix_server.conf
DBPassword=password
$ php_value date.timezone Europe/Riga
$ systemctl restart zabbix-server zabbix-agent httpd
$ netstat -nlpt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 739/sshd
tcp 0 0 0.0.0.0:10050 0.0.0.0:* LISTEN 1610/zabbix_agentd
tcp 0 0 0.0.0.0:10051 0.0.0.0:* LISTEN 1617/zabbix_server
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 1457/mysqld
$ systemctl enable zabbix-server zabbix-agent httpd mariadb
$ systemctl status zabbix-server zabbix-agent httpd mariadb
## 설정 완료 되었습니다. init 6 리부팅 테스트를 해보세요 ##
-
zabbix-server configuration
$ php -i | grep -i Configuration
Loaded Configuration File => /etc/php.ini
$ vi /etc/php.ini
;date.timezone =
date.timezone = Asia/Seoul ## added
'01_install (강좌) > 12_Zabbix' 카테고리의 다른 글
zabbix-agent ubuntu install #!!! (0) | 2020.03.12 |
---|