2012年7月21日土曜日

Centreonのインストールメモ - CentOS 6.3


概要説明

以下、CentOS 6.3でのCentreonのインストールメモであり、ほぼ個人的な備忘録です。what-are-the-best-open-source-nagios-interfaces[stackoverflow.com] では、Centreon, NagVis, Icinga がnagiosのフロントエンドの候補として上がっていました。

インストール準備

NDOUtilsのインストール

参考にしたサイト

 RRDs.pmのインストール

参考にしたサイト

rrdtoolのインストール

yum install rrdtool

インストール

まず、Centreonのサイトよりcentreon-2.3.8.tar.gzをダウンロードしてきます。
$ tar xvfz centreon-2.3.8.tar.gz
$ cd centreon-2.3.8
$ sudo ./install.sh -i
 必要なバイナリが全てOKになっていることを確認して、使用許諾書に同意します。

 Do you accept GPL license ?
[y/n], default to [n]:
> y
4つともインストール
Do you want to install : Centreon Web Front
[y/n], default to [n]:
> y
Do you want to install : Centreon CentCore
[y/n], default to [n]:
> y
Do you want to install : Centreon Nagios Plugins
[y/n], default to [n]:
> y
Do you want to install : Centreon Snmp Traps process
[y/n], default to [n]:
> y

変更の必要な項目。それ以外は全てデフォルトのパスでyを押す。自分の環境では以下のパスとしました
Where is the RRD perl module installed [RRDs.pm]
    default to [/usr/lib/perl5/RRDs.pm]
    > /usr/lib64/perl5/RRDs.pm
Where is PEAR [PEAR.php]
    default to [/usr/share/php/PEAR.php]
    > /usr/share/pear/PEAR.php
Where is installed Nagios ?
    default to [/usr/local/nagios]
    > /usr/lib64/nagios
Where is your nagios config directory
    default to [/usr/local/nagios/etc]
    > /etc/nagios
Where is your Nagios var directory ?
    default to [/usr/local/nagios/var]
    > /var/spool/nagios
Where is your Nagios plugins (libexec) directory ?
    default to [/usr/local/nagios/libexec]
    > /usr/lib64/nagios/plugins
Where is your Nagios image directory ?
    default to [/usr/local/nagios/share/images/logos]
    > /usr/share/nagios/html/images/logos 
Where is your NDO ndomod binary ?
    default to [/usr/sbin/ndomod.o]
    > /usr/local/nagios/bin/ndomod.o
Where is your SNMPTT binaries directory
    default to [/usr/local/centreon/bin/]
    > /usr/sbin
インストールが終了したら、http://[設置ホスト]/centreon/にアクセスします。

http://[設置ホスト]/centreon/の初期設定











アンインストール

設定にミスった場合などのアンインストール方法。うっかりrootでrm -rf /なんてやらないように。

rm -rf /usr/local/centreon
rm -rf /etc/centreon
rm -rf /var/lib/centreon
rm -rf /etc/cron.d/centreon
rm -rf /etc/cron.d/centstorage
rm -rf /etc/httpd/conf.d/centreon.conf

mysqlのデータベースに設定が登録されているので消去します。
mysql --protocol=TCP -uroot -h localhost -p --prompt="\u@\h%\d[\c]> "
drop database centreon;
drop database centstatus;
drop database centstorage;

 

0 件のコメント:

コメントを投稿