GestioIP
2013/03/20 1件のコメント
RackTables以外にGestioIPというIP管理ツールを見つけたので取り急ぎ、ざらっと入れてみた。ざっと動くところまでインストールしただけなので落ち着いてマニュアル見てインストールしたほうが良い。ネットマスク分割できるようなので、IPアドレスの利用状況とネットワーク管理をするのであれば便利。
しばらくマニュアル見て使ってみよう。
# yum install wget unzip make.x86_64 perl-CPAN perl-YAML.noarch -y # yum groupinstall "Development Tools" -y # perl -MCPAN -e 'CPAN::Shell->install (Parallel::ForkManager)' # perl -MCPAN -e 'CPAN::Shell->install (Net::Ping::External)' # perl -MCPAN -e 'CPAN::Shell->install (Spreadsheet::ParseExcel)' # perl -MCPAN -e 'CPAN::Shell->install (SNMP::Info)' # perl -MCPAN -e 'CPAN::Shell->install (OLE-Storage_Lite)'
# mysqladmin -u root password root
SourceForgeからダウンロードし、展開したところにできる”setup_gestioip.sh”を
実施する。結構自動的に不足するパッケージなども取得する為、とりあえず実行するのも手。
$ cp gestioip_3.0.tar.gz /tmp/ # cd /tmp/ # tar xvzf gestioip_3.0.tar.gz #cd gestioip_3.0 # ./setup_gestioip.sh This script will install GestioIP 3.0 on this computer Do you wish to continue [y]/n? Starting installation Starting GestioIP setup from folder /tmp/gestioip_3.0 Storing log in file /tmp/gestioip_3.0/20130320091034.setup.log +----------------------------------------------------------+ | Checking for Apache web server daemon... | +----------------------------------------------------------+ Where is Apache daemon binary [/usr/sbin/httpd]? OK, using Apache daemon /usr/sbin/httpd +----------------------------------------------------------+ | Checking for Apache main configuration file... | +----------------------------------------------------------+ Where is Apache main configuration file [/etc/httpd/conf/httpd.conf]? OK, using Apache main configuration file /etc/httpd/conf/httpd.conf +----------------------------------------------------------+ | Checking for Apache user account... | +----------------------------------------------------------+ Which user account is running Apache web server [apache]? OK, Apache is running under user account apache +----------------------------------------------------------+ | Checking for Apache group... | +----------------------------------------------------------+ Which user group is running Apache web server [apache]? OK, Apache is running under users group apache +----------------------------------------------------------+ | Checking for Apache Include configuration directory... | +----------------------------------------------------------+ Where is Apache Include configuration directory [/etc/httpd/conf.d/]? OK, using Apache Include configuration directory /etc/httpd/conf.d +----------------------------------------------------------+ | Checking for PERL Interpreter... | +----------------------------------------------------------+ Where is PERL Intrepreter binary [/usr/bin/perl]? OK, using PERL Intrepreter /usr/bin/perl +----------------------------------------------------------+ | Checking for Apache mod_perl version... | +----------------------------------------------------------+ Checking for Apache mod_perl Apache mod_perl available - Good! +----------------------------------------------------------+ | Checking for required Perl Modules... | +----------------------------------------------------------+ Do you plan to import networks or hosts from spreadsheets [y]/n? Checking for DBI PERL module... Found that PERL module DBI is available. Checking for DBD-mysql PERL module... Found that PERL module DBD-mysql is available. Checking for Net::IP PERL module... Found that PERL module Net::IP is available. Checking for Net::Ping::External PERL module... *** ERROR ***: PERL module Net::Ping::External is not installed! Checking for Parallel::ForkManager PERL module... Found that PERL module Parallel::ForkManager is available. Checking for SNMP PERL module... Found that PERL module SNMP is available. Checking for SNMP::Info PERL module... Found that PERL module SNMP::Info is available. Checking for Mail::Mailer PERL module... Found that PERL module Mail::Mailer is available. Checking for Time::HiRes PERL module... Found that PERL module Time::HiRes is available. Checking for Date::Calc PERL module... Found that PERL module Date::Calc is available. Checking for Date::Manip PERL module... Found that PERL module Date::Manip is available. Checking for Net::DNS PERL module... Found that PERL module Net::DNS is available. Checking for Spreadsheet::ParseExcel PERL module... Found that PERL module Spreadsheet::ParseExcel is available. Checking for OLE::Storage_Lite PERL module... Found that PERL module OLE::Storage_Lite is available. Checking for GD::Graph::pie PERL module... Found that PERL module GD::Graph::pie is available. ##### There are required Perl Modules missing ##### Setup can install the missing modules Do you wish that Setup installs the missing Perl Modules now [y]/n? Executing sudo yum install perl-Net-IP perl-DBI perl-DBD-mysql perl-DateManip net-snmp-perl perl-Date-Calc perl-TimeDate perl-MailTools perl-Net-DNS perl-Time-HiRes perl-GDGraph Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: ftp.iij.ad.jp * extras: ftp.iij.ad.jp * updates: ftp.nara.wide.ad.jp Setting up Install Process Package perl-Net-IP-1.25-13.el6.noarch already installed and latest version Package perl-DBI-1.609-4.el6.x86_64 already installed and latest version Package perl-DBD-MySQL-4.013-3.el6.x86_64 already installed and latest version Package perl-Date-Manip-6.24-1.el6.noarch already installed and latest version Package 1:net-snmp-perl-5.5-44.el6.x86_64 already installed and latest version Package perl-Date-Calc-6.3-2.el6.noarch already installed and latest version Package 1:perl-TimeDate-1.16-11.1.el6.noarch already installed and latest version Package perl-MailTools-2.04-4.el6.noarch already installed and latest version Package perl-Net-DNS-0.65-4.el6.x86_64 already installed and latest version Package 4:perl-Time-HiRes-1.9721-129.el6.x86_64 already installed and latest version Package 1:perl-GDGraph-1.44-7.el6.noarch already installed and latest version Nothing to do Where is MAKE binary [/usr/bin/make]? OK, using MAKE /usr/bin/make ### Installing Net-Ping-External Downloading Net-Ping-External-0.13.zip from CPAN... OK Installation of Net-Ping-External-0.13.zip SUCCESSFUL +----------------------------------------------------------+ | Checking for required Perl Modules... | +----------------------------------------------------------+ Checking for DBI PERL module... Found that PERL module DBI is available. Checking for DBD-mysql PERL module... Found that PERL module DBD-mysql is available. Checking for Net::IP PERL module... Found that PERL module Net::IP is available. Checking for Net::Ping::External PERL module... Found that PERL module Net::Ping::External is available. Checking for Parallel::ForkManager PERL module... Found that PERL module Parallel::ForkManager is available. Checking for SNMP PERL module... Found that PERL module SNMP is available. Checking for SNMP::Info PERL module... Found that PERL module SNMP::Info is available. Checking for Mail::Mailer PERL module... Found that PERL module Mail::Mailer is available. Checking for Time::HiRes PERL module... Found that PERL module Time::HiRes is available. Checking for Date::Calc PERL module... Found that PERL module Date::Calc is available. Checking for Date::Manip PERL module... Found that PERL module Date::Manip is available. Checking for Net::DNS PERL module... Found that PERL module Net::DNS is available. Checking for Spreadsheet::ParseExcel PERL module... Found that PERL module Spreadsheet::ParseExcel is available. Checking for OLE::Storage_Lite PERL module... Found that PERL module OLE::Storage_Lite is available. Checking for GD::Graph::pie PERL module... Found that PERL module GD::Graph::pie is available. Found all required Perl Modules for GestioIP - Good! +----------------------------------------------------------+ | Configuration of Apache Web Server... | +----------------------------------------------------------+ Which is the Apache DocumentRoot directory [/var/www/html]? OK, using Apache DocumentRoot /var/www/html Where is htpasswd [/usr/bin/htpasswd]? OK, using htpasswd /usr/bin/htpasswd Which should be the read-only (ro) user [gipoper]? OK, using ro user gipoper Which should be the read-write (rw) user [gipadmin]? OK, using rw user gipadmin +++++++++++++++++++++++++++++++++++++++++++++++++++ Now open a new shell and execute the following two commands LIKE ROOT to create the GestioIP apache users: +++++++++++++++++++++++++++++++++++++++++++++++++++ sudo /usr/bin/htpasswd -c /etc/httpd/users-gestioip gipoper sudo /usr/bin/htpasswd /etc/httpd/users-gestioip gipadmin After this press ENTER ro user (gipoper) successfully created rw user (gipadmin) successfully created Under which directory should GestioIP's script files be installed [/usr/share/gestioip]? OK using script base directory /usr/share/gestioip Note for Fedora/Redhat/CentOS Linux: Some functions of GestioIP require an update of SELinux policy Setup can update SELinux policy automatically Do you wish that Setup updates SELinux policy now [y]/n? Downloading Type Enforcement File from www.gestioip.net...OK Executing "check_module"...OK Executing "semodule_package"...OK Executing "semodule"...OK Update of SELinux policy SUCCESSFUL Updating permissions of GestioIP's cgi-dir...SUCCESSFUL +-------------------------------------------------------+ | | | Installation of GestioIP successfully finished! | | | | Please, review /etc/httpd/conf.d/gestioip.conf | to ensure all is good and | | | | RESTART Apache daemon! | | | | Then, point your browser to | | | | http://server/gestioip/install | | | to configure the database server. | | Access with user "gipadmin" and the | the password which you created before | | | +-------------------------------------------------------+
対応上のポイントだけ以下にメモ。
以下が出た時に、別ターミナルでログインして終わったらEnter押す。
+++++++++++++++++++++++++++++++++++++++++++++++++++ Now open a new shell and execute the following two commands LIKE ROOT to create the GestioIP apache users: +++++++++++++++++++++++++++++++++++++++++++++++++++ sudo /usr/bin/htpasswd -c /etc/httpd/users-gestioip gipoper sudo /usr/bin/htpasswd /etc/httpd/users-gestioip gipadmin After this press ENTER
別ターミナルの入力指示が出るので、別ターミナルでログインして実行する。
gipoper, gipadmin のパスワードは控えておきましょう。
$ su - パスワード: # /usr/bin/htpasswd -c /etc/httpd/users-gestioip gipoper New password: Re-type new password: Adding password for user gipoper # /usr/bin/htpasswd /etc/httpd/users-gestioip gipadmin New password: Re-type new password: Adding password for user gipadmin #
一通り終わったら、以下のような表示が出る。
+-------------------------------------------------------+ | | | Installation of GestioIP successfully finished! | | | | Please, review /etc/httpd/conf.d/gestioip.conf | to ensure all is good and | | | | RESTART Apache daemon! | | | | Then, point your browser to | | | | http://server/gestioip/install | | | to configure the database server. | | Access with user "gipadmin" and the | the password which you created before | | | +-------------------------------------------------------+
これに従い、httpdの再起動をして。。。
# service httpd start httpd を起動中: httpd: apr_sockaddr_info_get() failed for racktables httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName [ OK ] #
とある通り。この後はWebでセットアップする。gipadminのパスワードが必要になる。
http://x.x.x.x/gestioip/install
ピンバック: IPAM (IP address management) イロイロ | My diary for @halchiyo