


Nagiosから分岐したIcingaをRepositoryを利用してyumでインストールしてみました。
Icinga Repository
https://packages.icinga.org/epel/
Icinga2 Documentation
http://docs.icinga.org/icinga2/latest/doc/module/icinga2/toc
環境
・CentOS Linux release 7.1.1503 (Core)
・Kernel 3.10.0-229.4.2.el7.x86_64
・最小構成+開発ツール
- Repositoriesのインストール
- Icinga Repositoryの確認
- Icinga2のインストール
- プラグインのインストール
- mariadbのインストール
- icinga2-ido-mysqlモジュールのインストール
- Icinga2 DB作成
- Icinga2 DBスキーマの作成
- ido-mysqlモジュールの有効化
- Apacheのインストール
- Firewallのhttp許可
- 外部コマンドパイプの設定
- Icinga Web 2のインストール
- Icinga web DBの作成
- php TimeZone設定
- pdo-mysqlインストール
- httpd再起動
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
[root@host01 ~]# rpm --import http://packages.icinga.org/icinga.key [root@host01 ~]# curl -o /etc/yum.repos.d/ICINGA-release.repo http://packages.icinga.org/epel/ICINGA-release.repo % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 189 100 189 0 0 271 0 --:--:-- --:--:-- --:--:-- 271 [root@host01 ~]# ls -l /etc/yum.repos.d/ 合計 28 -rw-r--r--. 1 root root 1664 4月 1 07:27 CentOS-Base.repo -rw-r--r--. 1 root root 1309 4月 1 07:27 CentOS-CR.repo -rw-r--r--. 1 root root 649 4月 1 07:27 CentOS-Debuginfo.repo -rw-r--r--. 1 root root 1331 4月 1 07:27 CentOS-Sources.repo -rw-r--r--. 1 root root 1002 4月 1 07:27 CentOS-Vault.repo -rw-r--r--. 1 root root 290 4月 1 07:27 CentOS-fasttrack.repo -rw-r--r--. 1 root root 189 5月 22 2014 ICINGA-release.repo [root@host01 ~]# cat /etc/yum.repos.d/ICINGA-release.repo [icinga-stable-release] name=ICINGA (stable release for epel) baseurl=http://packages.icinga.org/epel/$releasever/release/ enabled=1 gpgcheck=1 gpgkey=http://packages.icinga.org/icinga.key |
Icinga Repositoryで利用できるパッケージ等を確認します。
icinga2もインストールできるようなので今回はicinga2をインストールしてみます。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
[root@host01 ~]# yum search all icinga 読み込んだプラグイン:fastestmirror icinga-stable-release | 951 B 00:00 icinga-stable-release/7/primary | 14 kB 00:00 Loading mirror speeds from cached hostfile * base: ftp.tsukuba.wide.ad.jp * extras: ftp.tsukuba.wide.ad.jp * updates: ftp.tsukuba.wide.ad.jp icinga-stable-release 65/65 ================================= 一致: icinga ================================= icinga-debuginfo.x86_64 : Debug information for package icinga icinga-devel.x86_64 : Provides include files that Icinga-related applications : may compile against icinga-doc.x86_64 : documentation icinga icinga-gui.x86_64 : Classic UI for icinga icinga-gui-config.x86_64 : Classic UI configuration for icinga icinga-idoutils-libdbi-mysql.x86_64 : database broker module for icinga icinga-idoutils-libdbi-pgsql.x86_64 : database broker module for icinga icinga-rpm-release.noarch : Icinga Package Repository icinga2-bin.x86_64 : Icinga 2 binaries and libraries icinga2-classicui-config.x86_64 : Icinga 2 Classic UI Standalone configuration icinga2-common.x86_64 : Common Icinga 2 configuration icinga2-debuginfo.x86_64 : Debug information for package icinga2 icinga2-doc.x86_64 : Documentation for Icinga 2 icinga2-ido-mysql.x86_64 : IDO MySQL database backend for Icinga 2 icinga2-ido-pgsql.x86_64 : IDO PostgreSQL database backend for Icinga 2 icingaweb2-vendor-Zend.noarch : Icinga Web 2 vendor library Zend Framework icinga.x86_64 : Open Source host, service and network monitoring program icinga-web.noarch : Open Source host, service and network monitoring Web UI icinga-web-module-pnp.noarch : PNP Integration module for Icinga Web icinga-web-mysql.noarch : Database config for mysql icinga-web-pgsql.noarch : Database config for pgsql icinga-web-scheduler.noarch : Scheduler for Icinga Web icinga2.x86_64 : Network monitoring application icingacli.noarch : Icinga CLI icingaweb2.noarch : Icinga Web 2 icingaweb2-common.noarch : Common files for Icinga Web 2 and the Icinga CLI icingaweb2-vendor-HTMLPurifier.noarch : Icinga Web 2 vendor library HTMLPurifier icingaweb2-vendor-JShrink.noarch : Icinga Web 2 vendor library JShrink icingaweb2-vendor-Parsedown.noarch : Icinga Web 2 vendor library Parsedown icingaweb2-vendor-dompdf.noarch : Icinga Web 2 vendor library dompdf icingaweb2-vendor-lessphp.noarch : Icinga Web 2 vendor library lessphp php-Icinga.noarch : Icinga Web 2 PHP library icinga-idoutils.x86_64 : transitional package, use idoutils-libdbi-* instead [root@host01 ~]# yum info icinga2 読み込んだプラグイン:fastestmirror Loading mirror speeds from cached hostfile * base: ftp.tsukuba.wide.ad.jp * extras: ftp.tsukuba.wide.ad.jp * updates: ftp.tsukuba.wide.ad.jp 利用可能なパッケージ 名前 : icinga2 アーキテクチャー : x86_64 バージョン : 2.3.6 リリース : 1.el7.centos 容量 : 9.1 k リポジトリー : icinga-stable-release/7 要約 : Network monitoring application URL : https://www.icinga.org/ ライセンス : GPL-2.0+ 説明 : Meta package for Icinga 2 Core, DB IDO and Web. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
[root@host01 ~]# yum install icinga2 (snip) インストール: icinga2.x86_64 0:2.3.6-1.el7.centos 依存性関連をインストールしました: boost-program-options.x86_64 0:1.53.0-23.el7 boost-regex.x86_64 0:1.53.0-23.el7 icinga2-bin.x86_64 0:2.3.6-1.el7.centos icinga2-common.x86_64 0:2.3.6-1.el7.centos libicu.x86_64 0:50.1.2-11.el7 完了しました! [root@host01 ~]# systemctl enable icinga2 ln -s '/usr/lib/systemd/system/icinga2.service' '/etc/systemd/system/multi-user.target.wants/icinga2.service' [root@host01 ~]# systemctl start icinga2 |
インストール時に有効な機能
1 2 3 |
[root@host01 ~]# icinga2 feature list Disabled features: api command compatlog debuglog gelf graphite icingastatus livestatus opentsdb perfdata statusdata syslog Enabled features: checker mainlog notification |
nagios-plugins-allパケージをインストールしますが、これはepel repoに含まれています。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 |
[root@host01 ~]# yum install epel-release [root@host01 ~]# yum info nagios-plugins-all 読み込んだプラグイン:fastestmirror Loading mirror speeds from cached hostfile * base: www.ftp.ne.jp * epel: ftp.tsukuba.wide.ad.jp * extras: www.ftp.ne.jp * updates: www.ftp.ne.jp 利用可能なパッケージ 名前 : nagios-plugins-all アーキテクチャー : x86_64 バージョン : 2.0.1 リリース : 1.el7 容量 : 14 k リポジトリー : epel/x86_64 要約 : Nagios Plugins - All plugins URL : https://www.nagios-plugins.org/ ライセンス : GPLv2+ 説明 : This package provides all Nagios plugins. [root@host01 ~]# yum -y install nagios-plugins-all (snip) インストール: nagios-plugins-all.x86_64 0:2.0.1-1.el7 依存性関連をインストールしました: autogen-libopts.x86_64 0:5.18-5.el7 bind-libs.x86_64 32:9.9.4-18.el7_1.1 bind-utils.x86_64 32:9.9.4-18.el7_1.1 cups-libs.x86_64 1:1.6.3-17.el7_1.1 fping.x86_64 0:3.5-3.el7 libldb.x86_64 0:1.1.17-2.el7 libsmbclient.x86_64 0:4.1.12-23.el7_1 libtalloc.x86_64 0:2.1.1-1.el7 libtdb.x86_64 0:1.3.0-1.el7 libtevent.x86_64 0:0.9.21-3.el7 libtirpc.x86_64 0:0.2.4-0.5.el7 libwbclient.x86_64 0:4.1.12-23.el7_1 lm_sensors.x86_64 0:3.3.4-11.el7 lm_sensors-libs.x86_64 0:3.3.4-11.el7 nagios-common.x86_64 0:3.5.1-1.el7 nagios-plugins.x86_64 0:2.0.1-1.el7 nagios-plugins-breeze.x86_64 0:2.0.1-1.el7 nagios-plugins-by_ssh.x86_64 0:2.0.1-1.el7 nagios-plugins-cluster.x86_64 0:2.0.1-1.el7 nagios-plugins-dhcp.x86_64 0:2.0.1-1.el7 nagios-plugins-dig.x86_64 0:2.0.1-1.el7 nagios-plugins-disk.x86_64 0:2.0.1-1.el7 nagios-plugins-disk_smb.x86_64 0:2.0.1-1.el7 nagios-plugins-dns.x86_64 0:2.0.1-1.el7 nagios-plugins-dummy.x86_64 0:2.0.1-1.el7 nagios-plugins-file_age.x86_64 0:2.0.1-1.el7 nagios-plugins-flexlm.x86_64 0:2.0.1-1.el7 nagios-plugins-fping.x86_64 0:2.0.1-1.el7 nagios-plugins-game.x86_64 0:2.0.1-1.el7 nagios-plugins-hpjd.x86_64 0:2.0.1-1.el7 nagios-plugins-http.x86_64 0:2.0.1-1.el7 nagios-plugins-icmp.x86_64 0:2.0.1-1.el7 nagios-plugins-ide_smart.x86_64 0:2.0.1-1.el7 nagios-plugins-ircd.x86_64 0:2.0.1-1.el7 nagios-plugins-ldap.x86_64 0:2.0.1-1.el7 nagios-plugins-load.x86_64 0:2.0.1-1.el7 nagios-plugins-log.x86_64 0:2.0.1-1.el7 nagios-plugins-mailq.x86_64 0:2.0.1-1.el7 nagios-plugins-mrtg.x86_64 0:2.0.1-1.el7 nagios-plugins-mrtgtraf.x86_64 0:2.0.1-1.el7 nagios-plugins-mysql.x86_64 0:2.0.1-1.el7 nagios-plugins-nagios.x86_64 0:2.0.1-1.el7 nagios-plugins-nt.x86_64 0:2.0.1-1.el7 nagios-plugins-ntp.x86_64 0:2.0.1-1.el7 nagios-plugins-ntp-perl.x86_64 0:2.0.1-1.el7 nagios-plugins-nwstat.x86_64 0:2.0.1-1.el7 nagios-plugins-oracle.x86_64 0:2.0.1-1.el7 nagios-plugins-overcr.x86_64 0:2.0.1-1.el7 nagios-plugins-perl.x86_64 0:2.0.1-1.el7 nagios-plugins-pgsql.x86_64 0:2.0.1-1.el7 nagios-plugins-ping.x86_64 0:2.0.1-1.el7 nagios-plugins-procs.x86_64 0:2.0.1-1.el7 nagios-plugins-real.x86_64 0:2.0.1-1.el7 nagios-plugins-rpc.x86_64 0:2.0.1-1.el7 nagios-plugins-sensors.x86_64 0:2.0.1-1.el7 nagios-plugins-smtp.x86_64 0:2.0.1-1.el7 nagios-plugins-snmp.x86_64 0:2.0.1-1.el7 nagios-plugins-ssh.x86_64 0:2.0.1-1.el7 nagios-plugins-swap.x86_64 0:2.0.1-1.el7 nagios-plugins-tcp.x86_64 0:2.0.1-1.el7 nagios-plugins-time.x86_64 0:2.0.1-1.el7 nagios-plugins-ups.x86_64 0:2.0.1-1.el7 nagios-plugins-users.x86_64 0:2.0.1-1.el7 nagios-plugins-wave.x86_64 0:2.0.1-1.el7 net-snmp-libs.x86_64 1:5.7.2-20.el7 net-snmp-utils.x86_64 1:5.7.2-20.el7 ntp.x86_64 0:4.2.6p5-19.el7.centos.1 ntpdate.x86_64 0:4.2.6p5-19.el7.centos.1 postgresql-libs.x86_64 0:9.2.13-1.el7_1 pytalloc.x86_64 0:2.1.1-1.el7 qstat.x86_64 0:2.11-13.20080912svn311.el7 rpcbind.x86_64 0:0.2.0-26.el7 samba-client.x86_64 0:4.1.12-23.el7_1 samba-common.x86_64 0:4.1.12-23.el7_1 samba-libs.x86_64 0:4.1.12-23.el7_1 完了しました! [root@host01 ~]# ls /usr/lib64/nagios/plugins check_breeze check_game check_mrtgtraf check_pgsql check_tcp check_by_ssh check_hpjd check_mysql check_ping check_time check_clamd check_http check_mysql_query check_pop check_udp check_cluster check_icmp check_nagios check_procs check_ups check_dhcp check_ide_smart check_nntp check_real check_users check_dig check_imap check_nntps check_rpc check_wave check_disk check_ircd check_nt check_sensors negate check_disk_smb check_jabber check_ntp check_simap urlize check_dns check_ldap check_ntp.pl check_smtp utils.pm check_dummy check_ldaps check_ntp_peer check_snmp utils.sh check_file_age check_load check_ntp_time check_spop check_flexlm check_log check_nwstat check_ssh check_fping check_mailq check_oracle check_ssmtp check_ftp check_mrtg check_overcr check_swap |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
[root@host01 ~]# yum install mariadb-server mariadb (snip) インストール: mariadb.x86_64 1:5.5.41-2.el7_0 mariadb-server.x86_64 1:5.5.41-2.el7_0 依存性関連をインストールしました: perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7 perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7 perl-DBD-MySQL.x86_64 0:4.023-5.el7 perl-DBI.x86_64 0:1.627-4.el7 perl-IO-Compress.noarch 0:2.061-2.el7 perl-Net-Daemon.noarch 0:0.48-5.el7 perl-PlRPC.noarch 0:0.2020-14.el7 完了しました! [root@host01 ~]# systemctl enable mariadb ln -s '/usr/lib/systemd/system/mariadb.service' '/etc/systemd/system/multi-user.target.wants/mariadb.service' [root@host01 ~]# vi /etc/my.cnf.d/server.cnf [root@host01 ~]# grep -1 utf8 /etc/my.cnf.d/server.cnf [mysqld] character-set-server=utf8 [root@host01 ~]# systemctl start mariadb [root@host01 ~]# mysql_secure_installation /usr/bin/mysql_secure_installation: 行 379: find_mysql_client: コマンドが見つか りません NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY! In order to log into MariaDB to secure it, we'll need the current password for the root user. If you've just installed MariaDB, and you haven't set the root password yet, the password will be blank, so you should just press enter here. Enter current password for root (enter for none): OK, successfully used password, moving on... Setting the root password ensures that nobody can log into the MariaDB root user without the proper authorisation. Set root password? [Y/n] New password: Re-enter new password: Password updated successfully! Reloading privilege tables.. ... Success! By default, a MariaDB installation has an anonymous user, allowing anyone to log into MariaDB without having to have a user account created for them. This is intended only for testing, and to make the installation go a bit smoother. You should remove them before moving into a production environment. Remove anonymous users? [Y/n] ... Success! Normally, root should only be allowed to connect from 'localhost'. This ensures that someone cannot guess at the root password from the network. Disallow root login remotely? [Y/n] ... Success! By default, MariaDB comes with a database named 'test' that anyone can access. This is also intended only for testing, and should be removed before moving into a production environment. Remove test database and access to it? [Y/n] - Dropping test database... ... Success! - Removing privileges on test database... ... Success! Reloading the privilege tables will ensure that all changes made so far will take effect immediately. Reload privilege tables now? [Y/n] ... Success! Cleaning up... All done! If you've completed all of the above steps, your MariaDB installation should now be secure. Thanks for using MariaDB! |
1 2 3 4 5 6 |
[root@host01 ~]# yum install icinga2-ido-mysql (snip) インストール: icinga2-ido-mysql.x86_64 0:2.3.6-1.el7.centos 完了しました! |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
[root@host01 ~]# mysql -u root -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 10 Server version: 5.5.41-MariaDB MariaDB Server Copyright (c) 2000, 2014, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> CREATE DATABASE icinga2; Query OK, 1 row affected (0.00 sec) MariaDB [(none)]> GRANT SELECT, INSERT, UPDATE, DELETE, DROP, CREATE VIEW, INDEX, EXECUTE ON icinga2.* TO 'icinga2'@'localhost' IDENTIFIED BY 'icinga2'; Query OK, 0 rows affected (0.00 sec) MariaDB [(none)]> quit Bye |
1 2 |
[root@host01 ~]# mysql -u root -p icinga2 < /usr/share/icinga2-ido-mysql/schema/mysql.sql Enter password: |
すでに有効化になっていました。
1 2 3 4 5 6 |
[root@host01 ~]# icinga2 feature enable ido-mysql warning/cli: Feature 'ido-mysql' already enabled. [root@host01 ~]# icinga2 feature list Disabled features: api command compatlog debuglog gelf graphite icingastatus livestatus opentsdb perfdata statusdata syslog Enabled features: checker ido-mysql mainlog notification [root@host01 ~]# systemctl restart icinga2 |
1 2 3 4 5 6 7 8 9 10 11 12 |
[root@host01 ~]# yum -y install httpd (snip) インストール: httpd.x86_64 0:2.4.6-31.el7.centos 依存性関連をインストールしました: httpd-tools.x86_64 0:2.4.6-31.el7.centos mailcap.noarch 0:2.1.41-2.el7 完了しました! [root@host01 ~]# systemctl enable httpd ln -s '/usr/lib/systemd/system/httpd.service' '/etc/systemd/system/multi-user.target.wants/httpd.service' [root@host01 ~]# systemctl start httpd |
1 2 3 4 |
[root@host01 ~]# firewall-cmd --permanent --add-service=http success [root@host01 ~]# firewall-cmd --reload success |
1 2 3 4 5 6 |
[root@host01 ~]# icinga2 feature enable command Enabling feature command. Make sure to restart Icinga 2 for these changes to take effect. [root@host01 ~]# icinga2 feature list Disabled features: api compatlog debuglog gelf graphite icingastatus livestatus opentsdb perfdata statusdata syslog Enabled features: checker command ido-mysql mainlog notification [root@host01 ~]# systemctl restart icinga2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
[root@host01 ~]# yum install icingaweb2 icingacli (snip) インストール: icingacli.noarch 0:2.0.0-4.rc1.el7.centos icingaweb2.noarch 0:2.0.0-4.rc1.el7.centos 依存性関連をインストールしました: ImageMagick.x86_64 0:6.7.8.9-10.el7 OpenEXR-libs.x86_64 0:1.7.1-7.el7 bash-completion.noarch 1:2.1-6.el7 cairo.x86_64 0:1.12.14-6.el7 fontconfig.x86_64 0:2.10.95-7.el7 fontpackages-filesystem.noarch 0:1.44-8.el7 gdk-pixbuf2.x86_64 0:2.28.2-4.el7 ghostscript.x86_64 0:9.07-18.el7 ghostscript-fonts.noarch 0:5.50-32.el7 graphite2.x86_64 0:1.2.2-5.el7 harfbuzz.x86_64 0:0.9.20-4.el7 icingaweb2-common.noarch 0:2.0.0-4.rc1.el7.centos icingaweb2-vendor-HTMLPurifier.noarch 0:4.6.0-1.el7.centos icingaweb2-vendor-JShrink.noarch 0:1.0.1-1.el7.centos icingaweb2-vendor-Parsedown.noarch 0:1.0.0-1.el7.centos icingaweb2-vendor-Zend.noarch 0:1.12.9-1.el7.centos icingaweb2-vendor-dompdf.noarch 0:0.6.1-1.el7.centos icingaweb2-vendor-lessphp.noarch 0:0.4.0-1.el7.centos ilmbase.x86_64 0:1.0.3-7.el7 jasper-libs.x86_64 0:1.900.1-26.el7_0.3 jbigkit-libs.x86_64 0:2.0-11.el7 lcms2.x86_64 0:2.5-4.el7 libICE.x86_64 0:1.0.8-7.el7 libSM.x86_64 0:1.2.1-7.el7 libX11.x86_64 0:1.6.0-2.1.el7 libX11-common.noarch 0:1.6.0-2.1.el7 libXau.x86_64 0:1.0.8-2.1.el7 libXdamage.x86_64 0:1.1.4-4.1.el7 libXext.x86_64 0:1.3.2-2.1.el7 libXfixes.x86_64 0:5.0.1-2.1.el7 libXfont.x86_64 0:1.4.7-2.el7_0 libXft.x86_64 0:2.3.1-5.1.el7 libXpm.x86_64 0:3.5.10-5.1.el7 libXrender.x86_64 0:0.9.8-2.1.el7 libXt.x86_64 0:1.1.4-6.1.el7 libXxf86vm.x86_64 0:1.1.3-2.1.el7 libfontenc.x86_64 0:1.1.1-5.el7 libjpeg-turbo.x86_64 0:1.2.90-5.el7 libpng.x86_64 2:1.5.13-5.el7 librsvg2.x86_64 0:2.39.0-1.el7 libthai.x86_64 0:0.1.14-9.el7 libtiff.x86_64 0:4.0.3-14.el7 libtool-ltdl.x86_64 0:2.4.2-20.el7 libwmf-lite.x86_64 0:0.2.8.4-39.el7 libxcb.x86_64 0:1.9-5.el7 libxslt.x86_64 0:1.1.28-5.el7 libzip.x86_64 0:0.10.1-8.el7 mesa-libEGL.x86_64 0:10.2.7-5.20140910.el7 mesa-libGL.x86_64 0:10.2.7-5.20140910.el7 mesa-libgbm.x86_64 0:10.2.7-5.20140910.el7 mesa-libglapi.x86_64 0:10.2.7-5.20140910.el7 pango.x86_64 0:1.34.1-5.el7 php.x86_64 0:5.4.16-36.el7_1 php-Icinga.noarch 0:2.0.0-4.rc1.el7.centos php-cli.x86_64 0:5.4.16-36.el7_1 php-common.x86_64 0:5.4.16-36.el7_1 php-gd.x86_64 0:5.4.16-36.el7_1 php-intl.x86_64 0:5.4.16-36.el7_1 php-pear.noarch 1:1.9.4-21.el7 php-pecl-imagick.x86_64 0:3.1.0-0.6.RC2.el7 php-process.x86_64 0:5.4.16-36.el7_1 php-xml.x86_64 0:5.4.16-36.el7_1 pixman.x86_64 0:0.32.4-3.el7 poppler-data.noarch 0:0.4.6-3.el7 t1lib.x86_64 0:5.1.2-14.el7 urw-fonts.noarch 0:2.4-16.el7 xorg-x11-font-utils.x86_64 1:7.5-18.1.el7 完了しました! |
Icinga Web 2のApache設定ファイル
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
[root@host01 ~]# cat /etc/httpd/conf.d/icingaweb2.conf Alias /icingaweb2 "/usr/share/icingaweb2/public" <Directory "/usr/share/icingaweb2/public"> Options SymLinksIfOwnerMatch AllowOverride None <IfModule mod_authz_core.c> # Apache 2.4 <RequireAll> Require all granted </RequireAll> </IfModule> <IfModule !mod_authz_core.c> # Apache 2.2 Order allow,deny Allow from all </IfModule> SetEnv ICINGAWEB_CONFIGDIR "/etc/icingaweb2" EnableSendfile Off <IfModule mod_rewrite.c> RewriteEngine on RewriteBase /icingaweb2/ RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ index.php [NC,L] </IfModule> <IfModule !mod_rewrite.c> DirectoryIndex error_norewrite.html ErrorDocument 404 /error_norewrite.html </IfModule> </Directory> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
[root@host01 ~]# mysql -u root -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 14 Server version: 5.5.41-MariaDB MariaDB Server Copyright (c) 2000, 2014, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> CREATE DATABASE icingaweb2; Query OK, 1 row affected (0.00 sec) MariaDB [(none)]> GRANT SELECT,INSERT,UPDATE,DELETE,DROP,CREATE VIEW,INDEX,EXECUTE ON icingaweb2.* TO 'icingaweb2'@'localhost' IDENTIFIED BY 'icingaweb2'; Query OK, 0 rows affected (0.00 sec) MariaDB [(none)]> FLUSH PRIVILEGES; Query OK, 0 rows affected (0.00 sec) MariaDB [(none)]> quit Bye |
1 2 3 4 |
[root@host01 ~]# vi /etc/php.ini [root@host01 ~]# grep -1 Tokyo /etc/php.ini ; http://php.net/date.timezone date.timezone = Asia/Tokyo |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
[root@host01 ~]# yum -y install php-ZendFramework-Db-Adapter-Pdo-Mysql (snip) インストール: php-ZendFramework-Db-Adapter-Pdo-Mysql.noarch 0:1.12.13-1.el7 依存性関連をインストールしました: php-ZendFramework.noarch 0:1.12.13-1.el7 php-ZendFramework-Db-Adapter-Pdo.noarch 0:1.12.13-1.el7 php-bcmath.x86_64 0:5.4.16-36.el7_1 php-mysql.x86_64 0:5.4.16-36.el7_1 php-pdo.x86_64 0:5.4.16-36.el7_1 完了しました! |
1 |
[root@host01 ~]# systemctl restart httpd |
これで準備は整いました。
次回はセットアップウィザードを実行してインストール完了の*はず*です。
しかしこれと言ったドキュメントを見つけられなくて、試行錯誤の結果ここまでたどり着きました。
なかなか手強い(^^;