[Linux] Zabbix

네트워크 기반 모니터링 툴

https://www.zabbix.com/download

홈페이지 순서대로 하면 정말 간단히 설치할 수 있다.

zabbix version : 4.0 LTS
OS Distribution : Ubuntu
OS Version : 16.04 (Xenial)
Database : MySQL

설치 과정을 홈페이지에서 복사해 온 것이나 다름 없습니다.^^

Server

step 1: install

> wget https://repo.zabbix.com/zabbix/4.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_4.0-2+xenial_all.deb

> dpkg -i zabbix-release_4.0-2+xenial_all.deb

> apt update

> apt -y install zabbix-server-mysql zabbix-frontend-php zabbix-agent

step 2: mysql setting

mysql install

> apt -y install mysql-server

create user

> mysql -uroot -p
password
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix_password';
mysql> quit;

copy table

> zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix_password

step 3: Configure

/etc/zabbix/zabbix_server.conf

DBPassword=zabbix_password

/etc/zabbix/apache.conf

php_value date.timezone Asia/Seoul

step 4: start

> systemctl restart zabbix-server zabbix-agent apache2
> systemctl enable zabbix-server zabbix-agent apache2

Client

port : 10050

step 1: install

> apt -y install zabbix-agent

step 2: configure

/etc/zabbix/zabbix_agented.conf

Hostname=client_Name
Server=Zabbix_Server_IP

step 3: start

> systemctl restart zabbix-server zabbix-agent
> systemctl enable zabbix-server zabbix-agent

Web

http://Zabbix_Server_IP/zabbix

이미지는 편집 후 업로드

Categories:

Updated: