Zabbix

zabbix サーバーのインストール

# rpm -ivh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm
or
# rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm
# yum install zabbix-server zabbix-server-mysql
# mysql -p
mysql> create database zabbix;
mysql> grant all privileges on zabbix.* to zabbixuser01@localhost identified by 'パスワード’;
mysql> flush privileges;

# mysql -u root -p zabbix <  /usr/share/doc/zabbix-server-mysql-1.8.20/create/schema/mysql.sql
# mysql -u root -p zabbix <  /usr/share/doc/zabbix-server-mysql-1.8.20/create/data/data.sql
# mysql -u root -p zabbix <  /usr/share/doc/zabbix-server-mysql-1.8.20/create/data/images_mysql.sql
# cd /etc/zabbix/
# cp -p zabbix_server.conf zabbix_server.conf.org
DBName=zabbixデータベース名
DBUser=zabbixユーザー
DBPassword=パスワード
# chkconfig zabbix-server on
# chkconfig zabbix-server --list
zabbix-server       0:off     1:off     2:on     3:on     4:on     5:on     6:off
# /etc/init.d/zabbix-server start
Starting Zabbix server:                                    [  OK  ]
# ps aux | grep zabbix

〜

zabbix    2022  0.0  0.0 152704  1788 ?        S    17:44   0:00 zabbix_server_mysql -c /etc/zabbix/zabbix_server.conf

WebGUIのインストール

# yum install install zabbix-web-mysql
# ls -l /etc/httpd/conf.d/
-rw-r--r-- 1 root root 902  2月 13 18:01 2014 zabbix.conf
※VirtualHostの設定が必要な際は、必要に応じて設定する。
# cp -p php.ini php.ini.`date +%Y%m%d`
# vi php.ini
;date.timezone =
date.timezone = Asia/Tokyo

;post_max_size = 8M
post_max_size = 32M

;max_execution_time = 30
max_execution_time = 600

;max_input_time = 60
max_input_time = 600

;memory_limit = 128M
memory_limit = 256M

;upload_max_filesize = 2M
upload_max_filesize = 16M
# service httpd configtest
Syntax OK
# service httpd restart
httpd を停止中:                                            [失敗]
httpd を起動中:                                            [  OK  ]
# ps aux | grep httpd
root      2144  0.0  0.0 297876 10796 ?        Ss   17:58   0:00 /usr/sbin/httpd
apache    2146  0.0  0.0 297876  5900 ?        S    17:58   0:00 /usr/sbin/httpd
apache    2147  0.0  0.0 297876  5900 ?        S    17:58   0:00 /usr/sbin/httpd
apache    2148  0.0  0.0 297876  5900 ?        S    17:58   0:00 /usr/sbin/httpd
apache    2149  0.0  0.0 297876  5900 ?        S    17:58   0:00 /usr/sbin/httpd
apache    2150  0.0  0.0 297876  5900 ?        S    17:58   0:00 /usr/sbin/httpd
apache    2151  0.0  0.0 297876  5900 ?        S    17:58   0:00 /usr/sbin/httpd
apache    2152  0.0  0.0 297876  5900 ?        S    17:58   0:00 /usr/sbin/httpd
apache    2153  0.0  0.0 297876  5900 ?        S    17:58   0:00 /usr/sbin/httpd
root      2156  0.0  0.0 107456   952 pts/0    S+   17:58   0:00 grep httpd

ポート解放 iptablesを使用している場合

# cd /etc/sysconfig/
# cp -p iptables iptables.`date +%Y%m%d`
# vi iptables 
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
# service iptables restart
iptables: チェインをポリシー ACCEPT へ設定中filter         [  OK  ]
iptables: ファイアウォールルールを消去中:                  [  OK  ]
iptables: モジュールを取り外し中:                          [  OK  ]
iptables: ファイアウォールルールを適用中:                  [  OK  ]
# iptables -L
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:http

この後はブラウザでアクセスして画面にそってインストール [#tfad5692]


ブラウザのインストール画面については下記PDFを確認してください。

#ref(): File not found: "Zabbixのインストール.pdf" at page "Zabbixのインストール"


トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2022-06-30 (木) 01:40:11