zabbix

Documentation
http://www.zabbix.com/download.php

2.4 (英語)
https://www.zabbix.com/documentation/2.4/manual/installation/install_from_packages#red_hat_enterprise_linux_centos

2.2
https://www.zabbix.com/documentation/2.2/jp/manual/installation/install_from_packages

2.0
https://www.zabbix.com/documentation/2.0/jp/manual/installation/install_from_packages

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


https://www.scsk.jp/lib/product/oss/pdf/oss_16.pdf

●zabbix サーバ

1.パッケージのインストール

# rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm
# yum -y install zabbix-server-mysql zabbix-web-mysql
# yum -y install mysql-server

※場合よっては、以下。
# yum -y install httpd mysql-server php php-mysql


2./etc/my.cnf の編集

                                                          • -

[mysqld]

default-character-set=utf8
skip-character-set-client-handshake

innodb_file_per_table
innodb_buffer_pool_size=64M
innodb_log_file_size=16M
innodb_log_files_in_group=2

                                                          • -

※MySQL5.5 で、default-character-set → character-set-server になったらしい。
http://kennyqi.com/archives/334.html


3.MySQL の起動

# service mysqld start
# chkconfig mysqld on


4.DB の構築

zabbix データベースとユーザーを作成

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

初期スキーマとデータをインポートします。

# cd /usr/share/doc/zabbix-server-mysql-2.4.5/create/
# mysql -uroot zabbix < schema.sql
# mysql -uroot zabbix < images.sql
# mysql -uroot zabbix < data.sql


5.Zabbix サーバプロセスの開始

# vi /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=password

# service zabbix-server start
# chkconfig zabbix-server on


6.PHPタイムゾーン変更

/etc/php.ini を変更
date.timezone = Asia/Tokyo


7.httpd プロセスの開始

# service httpd start
# chkconfig httpd on


8.Web インタフェースのインストール

以下を参照してインストール

http://blog.torigoya.net/2012/03/10/centos6-zabbix/
http://www.letsplay-network.info/zabbix-24/
https://blog.apar.jp/linux/334/

インストール後、Adimin/zabbix でログイン。


●zabbix エージェント

1.zabbix パッケージのインストール

rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm
yum -y install zabbix-agent


2./etc/zabbix/zabbix_agentd.conf の編集

Server=192.168.11.18★zabbix サーバ
Hostname=HTTP01.testdomain1zabbix エージェントのホスト名
ListenIP=192.168.11.19★zabbix エージェントが listen する IP アドレス
※zabbix サーバの場合は、本項は不要

3.
# service zabbix-agent restart
# chkconfig zabbix-agent on





https://blog.apar.jp/linux/334/
http://blog.torigoya.net/2012/03/10/centos6-zabbix/
http://comp.senseofwonder.org/2009/05/200905291334.html
https://blog.apar.jp/zabbix/1081/
http://changineer.info/server/monitoring/monitoring_zabbix.html


http://192.168.11.18/zabbix


●Zabbix の Web Interface 日本語化
http://katzplus.com/centos-6/zabbix/zabbix-%E3%81%AE-web-interface-%E6%97%A5%E6%9C%AC%E8%AA%9E%E5%8C%96/









http://www.slideshare.net/zembutsu/is-the-order-an-automation-of-operation-and-monitoring
http://pocketstudio.jp/log3/2014/04/29/spoke_at_zabbix_jp_6th/
https://gist.github.com/zembutsu/7640108
http://knowledge.sakura.ad.jp/tech/2406/