1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Install Zabbix 1.8.18

Last updated at Posted at 2013-11-18

CentOSに、Zabbix 1.8.18(2013/10/8 Stable)をインストールする。
公式サイトは一部古いため、新規に手順書を記述しました。

参考: http://www.zabbix.jp/documents/installation/install-rpm

Install Zabbix Module

$ sudo yum install zabbix zabbix-agent zabbix-server zabbix-server-mysql zabbix-web zabbix-web-mysql

Edit MySQL Config

$ vi /etc/my.cnf
```

my.cnf

```vim
[mysqld]
default-character-set=utf8
skip-character-set-client-handshake
```

### Login to MySQL CLI

````shell-session
$ mysql -uroot
mysql> create database zabbix CHARACTER SET=utf8
```

### Start MySQL

````shell-session
$ sudo service mysqld start
```

### Insert init Data

````shell-session
$ mysql -uroot zabbix < /usr/share/doc/zabbix-server-mysql-1.8.18/create/schema/mysql.sql
$ mysql -uroot zabbix < /usr/share/doc/zabbix-server-mysql-1.8.18/create/data/data.sql
$ mysql -uroot zabbix < /usr/share/doc/zabbix-server-mysql-1.8.18/create/data/images_mysql.sql
```

### Edit php.ini

### Backup php.ini

````shell-session
$ sudo cp -ip /etc/php.ini /etc/php.ini.bk
```

### Edit php.ini

````shell-session
$ sudo vi /etc/php.ini 
```

### Diff Config File

````shell-session
$ diff /etc/php.ini /etc/php.ini.bk
440c440
< max_execution_time = 300     
---
> max_execution_time = 30     
449c449
< max_input_time = 300
---
> max_input_time = 60
729c729
< post_max_size = 16M
---
> post_max_size = 8M
946c946
< date.timezone =Asia/Tokyo
---
> ;date.timezone =
```

### Start Apache

```
$ sudo service httpd start
```

Check Zabbix Server Config

```
/etc/zabbix/zabbix_server.conf
```

### Start Zabbix-Server

```
$ sudo service zabbix-server start
```

Check status

```
$ sudo service zabbix-server status
zabbix_server_mysql (pid 619800) is running...
```

### Start Zabbix Agent

Check Zabbis Agent Config

```
/etc/zabbix/zabbix_agentd.conf
```

```
$ sudo service zabbix-agent start
```

Check status

```
$ sudo service zabbix-agent status
zabbix_agentd (pid 620255 620254 620253 620252 620251 620248) is running...
```

### Login to Zabbix

```
http://192.168.121.138/zabbix/
```

Login to Default Account

```
Login name: Admin
Password: zabbix
```

### Trouble shooting

Check Zabbix Server Log

```
/var/log/zabbix/zabbix_server.log
```

Check Zabbix Agent Log

```
/var/log/zabbix/zabbix_agentd.log 
```
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?