temporary:pandora_fms
目次
Pandora FMS
リポジトリ登録
rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm rpm -ivh rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
MariaDB用レポ登録
vi /etc/yum.repos.d/MariaDB.repo
# MariaDB 5.5 CentOS repository list - created 2013-04-11 07:10 UTC # http://mariadb.org/mariadb/repositories/ [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/5.5/centos5-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1
Apache インストール
yum --enablerepo=remi,epel,rpmforge,MariaDB -y install httpd ================================================================================================================== Package Arch Version Repository Size ================================================================================================================== Installing: httpd x86_64 2.2.3-76.el5.centos updates 1.3 M Installing for dependencies: apr x86_64 1.2.7-11.el5_6.5 base 119 k apr-util x86_64 1.2.7-11.el5_5.2 base 79 k postgresql-libs x86_64 8.1.23-6.el5_8 base 197 k Transaction Summary ==================================================================================================================
MariaDBインストール
yum --enablerepo=remi,epel,rpmforge,MariaDB -y install MariaDB-server MariaDB-client ================================================================================================================== Package Arch Version Repository Size ================================================================================================================== Installing: MariaDB-client x86_64 5.5.30-1 mariadb 12 M MariaDB-server x86_64 5.5.30-1 mariadb 42 M replacing mysql.x86_64 5.0.95-5.el5_9 Installing for dependencies: MariaDB-common x86_64 5.5.30-1 mariadb 29 k mysqlclient15 x86_64 5.0.67-1.el5.remi remi 1.3 M Transaction Summary ==================================================================================================================
MariaDB初期設定
/etc/init.d/mysql start Starting MySQL.. [ OK ] mysql_secure_installation
PHP インストール
yum --enablerepo=remi,epel,rpmforge,MariaDB -y install php php-mysql ================================================================================================================== Package Arch Version Repository Size ================================================================================================================== Installing: php x86_64 5.4.14-1.el5.remi remi 3.1 M php-mysql x86_64 5.4.14-1.el5.remi remi 182 k Installing for dependencies: MariaDB-shared x86_64 5.5.30-1 mariadb 1.3 M gmp x86_64 4.1.4-10.el5 base 201 k libcurl x86_64 7.21.7-5.el5.remi.2 remi 202 k libedit x86_64 20090923-3.0_1.el5.rf rpmforge 272 k libssh2 x86_64 1.2.9-1.el5.rf rpmforge 286 k php-cli x86_64 5.4.14-1.el5.remi remi 2.9 M php-common x86_64 5.4.14-1.el5.remi remi 1.0 M php-pdo x86_64 5.4.14-1.el5.remi remi 129 k Transaction Summary ==================================================================================================================
phpMyAdmin インストール
wget "http://downloads.sourceforge.net/project/phpmyadmin/phpMyAdmin/3.5.8/phpMyAdmin-3.5.8-all-languages.zip?r=http%3A%2F%2Fwww.phpmyadmin.net%2Fhome_page%2Findex.php&ts=1366625529&use_mirror=jaist" unzip phpMyAdmin-3.5.8-all-languages.zip mv phpMyAdmin-3.5.8-all-languages /var/www/html/pma
Pandora FMS関連ダウンロード
wget "http://sourceforge.net/projects/pandora/files/Pandora%20FMS%204.0.3/RHEL_CentOS%20%28RPM%29/pandorafms_console-4.0.3-130118.noarch.rpm/download" wget "http://sourceforge.net/projects/pandora/files/Pandora%20FMS%204.0.3/RHEL_CentOS%20%28RPM%29/pandorafms_server-4.0.3-130118.noarch.rpm/download" wget "http://sourceforge.net/projects/pandora/files/Pandora%20FMS%204.0.3/RHEL_CentOS%20%28RPM%29/pandorafms_agent_unix-4.0.3-130118.noarch.rpm/download" wget "http://en.sourceforge.jp/frs/g_redir.php?m=jaist&f=%2Fpandora%2FTools+and+dependencies+%28All+versions%29%2FRPM+CentOS%2C+RHEL%2Fwmic-4.0.0SVN-2.1.el5.centos.noarch.rpm"
依存モジュールインストール
yum --enablerepo=remi,epel,rpmforge,MariaDB -y install sudo perl-DBI perl-DBD-mysql perl-XML-Simple perl-XML-Twig net-snmp-utils perl-NetAddr-IP net-snmp perl-IO-Socket-INET6 perl-Socket6 nmap wmic net-snmp-perl popt php-gd php-ldap php-snmp php-mbstring xorg-x11-fonts-75dpi xorg-x11-fonts-misc graphviz.x86_64 rpm -ivh wmic-4.0.0SVN-2.1.el5.centos.noarch.rpm
Apache スタート
/etc/init.d/httpd restart
Pandora Server
rpm -ivh pandorafms_server-4.0.3-130118.noarch.rpm 準備中... ########################################### [100%] 1:pandorafms_server ########################################### [100%] Pandora FMS Server configuration is /etc/pandora/pandora_server.conf Pandora FMS Server main directory is /usr/share/pandora_server/ The manual can be reached at: man pandora or man pandora_server Pandora FMS Documentation is in: http://pandorafms.org Don't forget to start Tentacle Server daemon if you want to receive data using tentacle
Pandora Web Console
rpm -ivh pandorafms_console-4.0.3-130118.noarch.rpm 準備中... ########################################### [100%] 1:pandorafms_console ########################################### [100%] Please, now, point your browser to http://your_IP_address/pandora_console/install.php and follow all the steps described on it.
Pandora Agent
rpm -ivh pandorafms_agent_unix-4.0.3-130118.noarch.rpm 準備中... ########################################### [100%] 1:pandorafms_agent_unix ########################################### [100%]
ブラウザでインストールウィザード
Next
Yes
下の二つ以外が緑になっていることを確認。なっていなければモジュール不足、設定不足など。
DBアクセス設定。初期設定を行うのでrootのパスワードを入力してNext
DBアクセス用のパスワードが生成されているので、メモしてNext
インストール完了
Pandora ServerのDBアクセス設定・起動
vi /etc/pandora/pandora_server.conf -) dbpass pandora +) dbpass gmlyciwl # /etc/init.d/pandora_server start Pandora FMS Server 4.0.3 Build 130118 Copyright (c) 2004-2011 ArticaST This program is OpenSource, licensed under the terms of GPL License version 2. You can download latest versions and documentation at http://www.pandorafms.org [*] Pandora FMS Enterprise module not available. [*] Backgrounding Pandora FMS Server process. Pandora Server is now running with PID 5045
# /etc/init.d/tentacle_serverd start Tentacle Server is now running with PID 5092
Pandora Agent起動
# /etc/init.d/pandora_agent_daemon start Pandora FMS Agent is now running with PID 5144
インストールウィザードファイル削除
# mv /var/www/html/pandora_console/install.php /var/www/html/pandora_console/install.php.back
ブラウザでPandora Consoleにアクセス
temporary/pandora_fms.txt · 最終更新: 2014/11/12 07:06 by clownclown