Zabbixのインストール
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
[[Zabbix]]
*zabbix サーバーのインストール [#sfb5c965]
# rpm -ivh http://download.fedoraproject.org/pub/epel/6/...
or
# rpm -ivh http://download.fedoraproject.org/pub/epel/6/...
# yum install zabbix-server zabbix-server-mysql
# mysql -p
mysql> create database zabbix;
mysql> grant all privileges on zabbix.* to zabbixuser01@...
mysql> flush privileges;
# mysql -u root -p zabbix < /usr/share/doc/zabbix-serve...
# mysql -u root -p zabbix < /usr/share/doc/zabbix-serve...
# mysql -u root -p zabbix < /usr/share/doc/zabbix-serve...
# 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 ...
# /etc/init.d/zabbix-server start
Starting Zabbix server: ...
# ps aux | grep zabbix
〜
zabbix 2022 0.0 0.0 152704 1788 ? S 17:4...
*WebGUIのインストール [#mcca682b]
# 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 を起動中: ...
# ps aux | grep httpd
root 2144 0.0 0.0 297876 10796 ? Ss 17:5...
apache 2146 0.0 0.0 297876 5900 ? S 17:5...
apache 2147 0.0 0.0 297876 5900 ? S 17:5...
apache 2148 0.0 0.0 297876 5900 ? S 17:5...
apache 2149 0.0 0.0 297876 5900 ? S 17:5...
apache 2150 0.0 0.0 297876 5900 ? S 17:5...
apache 2151 0.0 0.0 297876 5900 ? S 17:5...
apache 2152 0.0 0.0 297876 5900 ? S 17:5...
apache 2153 0.0 0.0 297876 5900 ? S 17:5...
root 2156 0.0 0.0 107456 952 pts/0 S+ 17:5...
*ポート解放 iptablesを使用している場合 [#db4657f0]
# 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 -...
# service iptables restart
iptables: チェインをポリシー ACCEPT へ設定中filter ...
iptables: ファイアウォールルールを消去中: ...
iptables: モジュールを取り外し中: ...
iptables: ファイアウォールルールを適用中: ...
# iptables -L
ACCEPT tcp -- anywhere anywhere ...
この後はブラウザでアクセスして画面にそってインストール [#...
~
ブラウザのインストール画面については下記PDFを確認してくだ...
#ref(Zabbixのインストール.pdf)
終了行:
[[Zabbix]]
*zabbix サーバーのインストール [#sfb5c965]
# rpm -ivh http://download.fedoraproject.org/pub/epel/6/...
or
# rpm -ivh http://download.fedoraproject.org/pub/epel/6/...
# yum install zabbix-server zabbix-server-mysql
# mysql -p
mysql> create database zabbix;
mysql> grant all privileges on zabbix.* to zabbixuser01@...
mysql> flush privileges;
# mysql -u root -p zabbix < /usr/share/doc/zabbix-serve...
# mysql -u root -p zabbix < /usr/share/doc/zabbix-serve...
# mysql -u root -p zabbix < /usr/share/doc/zabbix-serve...
# 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 ...
# /etc/init.d/zabbix-server start
Starting Zabbix server: ...
# ps aux | grep zabbix
〜
zabbix 2022 0.0 0.0 152704 1788 ? S 17:4...
*WebGUIのインストール [#mcca682b]
# 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 を起動中: ...
# ps aux | grep httpd
root 2144 0.0 0.0 297876 10796 ? Ss 17:5...
apache 2146 0.0 0.0 297876 5900 ? S 17:5...
apache 2147 0.0 0.0 297876 5900 ? S 17:5...
apache 2148 0.0 0.0 297876 5900 ? S 17:5...
apache 2149 0.0 0.0 297876 5900 ? S 17:5...
apache 2150 0.0 0.0 297876 5900 ? S 17:5...
apache 2151 0.0 0.0 297876 5900 ? S 17:5...
apache 2152 0.0 0.0 297876 5900 ? S 17:5...
apache 2153 0.0 0.0 297876 5900 ? S 17:5...
root 2156 0.0 0.0 107456 952 pts/0 S+ 17:5...
*ポート解放 iptablesを使用している場合 [#db4657f0]
# 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 -...
# service iptables restart
iptables: チェインをポリシー ACCEPT へ設定中filter ...
iptables: ファイアウォールルールを消去中: ...
iptables: モジュールを取り外し中: ...
iptables: ファイアウォールルールを適用中: ...
# iptables -L
ACCEPT tcp -- anywhere anywhere ...
この後はブラウザでアクセスして画面にそってインストール [#...
~
ブラウザのインストール画面については下記PDFを確認してくだ...
#ref(Zabbixのインストール.pdf)
ページ名: