【tech】ubuntu18.04 zabbix4.0 install log作業ログ

Welcome to Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-32-generic x86_64)

  • Documentation: https://help.ubuntu.com
  • Management: https://landscape.canonical.com
  • Support: https://ubuntu.com/advantage

    212 packages can be updated.
    78 updates are security updates.

    Failed to connect to https://changelogs.ubuntu.com/meta-release-lts. Check your Internet connection or proxy settings

    Last login: Tue Oct 30 01:34:01 2018 from 192.168.56.1
    ubuntu@ubuntu-VirtualBox:~$ ubuntu@ubuntu-VirtualBox:~$ sudo dpkg-reconfigure keyboard-configuration
    password for ubuntu:
    ubuntu@ubuntu-VirtualBox:~$ sudo apt install language-pack-ja-base language-ppack-ja
    Reading package lists... 0%Reading package lists... 0%Reading package lists... 6%Reading package lists... Done
    language-pack-ja is already the newest version (1:18.04+20180712).
    language-pack-ja set to manually installed.
    language-pack-ja-base is already the newest version (1:18.04+20180712).
    language-pack-ja-base set to manually installed.
    0 upgraded, 0 newly installed, 0 to remove and 214 not upgraded.
    1 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Affected packages: apparmor:amd64
    ubuntu@ubuntu-VirtualBox:~$ sudo update-locale LANG=ja_JP.UTF-8 LANGUAGE="ja_JP:ja"
    ubuntu@ubuntu-VirtualBox:~$ sudo apt-get upgrade -y
    パッケージリストを読み込んでいます... 0%パッケージリストを読み込んでいます... 100%パッケージリストを読み込んでいます... 完了
    libjavascriptcoregtk-4.0-18 libwebkit2gtk-4.0-37 linux-generic
    linux-headers-generic linux-image-generic
    以下のパッケージはアップグレードされます:
    apport apport-gtk appstream apt apt-config-icons apt-utils apturl
    ubuntu-mono ubuntu-release-upgrader-core ubuntu-release-upgrader-gtk
    ubuntu-report ubuntu-settings ubuntu-software udisks2 unattended-upgrades
    update-manager update-manager-core util-linux uuid-runtime wpasupplicant
    xbrlapi xserver-common xserver-xephyr xserver-xorg-core
    xserver-xorg-legacy xwayland
    アップグレード: 207 個、新規インストール: 0 個、削除: 0 個、保留: 7 個。
    129 MB 中 14.2 MB のアーカイブを取得する必要があります。
    この操作後に追加で 10.3 MB のディスク容量が消費されます。
    console-setup (1.178ubuntu2.7) で (1.178ubuntu2.6 に) 上書き展開しています ...
    .../012-keyboard-configuration_1.178ubuntu2.7_all.deb を展開する準備をしています ...
    libcurl3-gnutls:amd64 (7.58.0-2ubuntu3.3) を設定しています ...
    light-themes (16.10+18.04.20181005-0ubuntu1) を設定しています ...
    cracklib-runtime (2.9.2-5build1) のトリガを処理しています ...
    tzdata (2018g-0ubuntu0.18.04) を設定しています ...

    Current default time zone: 'Asia/Tokyo'
    Local time is now: 2018年 10月 31日 水曜日 00:11:57 JST.
    Universal Time is now: Tue Oct 30 15:11:57 UTC 2018.
    Run 'dpkg-reconfigure tzdata' if you wish to change it.

    mutter-common (3.28.3-2~ubuntu18.04.1) を設定しています ...
    ubuntu-report (1.3.0~18.04) を設定しています ...
    Generating grub configuration file ...
    Linux イメージを見つけました: /boot/vmlinuz-4.15.0-32-generic
    Found initrd image: /boot/initrd.img-4.15.0-32-generic
    Found memtest86+ image: /boot/memtest86+.elf
    Found memtest86+ image: /boot/memtest86+.bin
    完了
    dbus (1.12.2-1ubuntu1) のトリガを処理しています ...
    たいていの場合良い考え x x です。
    Found memtest86+ image: /boot/memtest86+.elf
    Found memtest86+ image: /boot/memtest86+.bin
    完了
    libirs160:amd64 (1:9.11.3+dfsg-1ubuntu1.2) を設定しています ...
    gstreamer1.0-packagekit (1.1.9-1ubuntu2.18.04.3) を設定しています ...
    libbind9-160:amd64 (1:9.11.3+dfsg-1ubuntu1.2) を設定しています ...
    libpangoxft-1.0-0:amd64 (1.40.14-1ubuntu0.1) を設定しています ...
    apport-gtk (2.20.9-0ubuntu7.4) を設定しています ...
    update-initramfs: Generating /boot/initrd.img-4.15.0-32-generic
    ubuntu@ubuntu-VirtualBox:~$ sudo apt-get update
    fontconfig (2.12.6-0ubuntu2) のトリガを処理しています ...

    ubuntu@ubuntu-VirtualBox:~$ sudo reboot

    Welcome to Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-32-generic x86_64)

  • Documentation: https://help.ubuntu.com

  • Management: https://landscape.canonical.com
  • Support: https://ubuntu.com/advantage

  • Canonical Livepatch is available for installation.

    • Reduce system reboots and improve kernel security. Activate at:
      https://ubuntu.com/livepatch

    14 個のパッケージがアップデート可能です。
    9 個のアップデートはセキュリティアップデートです。

    Last login: Wed Oct 31 00:04:03 2018 from 192.168.56.1
    ubuntu@ubuntu-VirtualBox:~$
    ubuntu@ubuntu-VirtualBox:~$ sudo apt-get install -y mysql-server
    ubuntu のパスワード:
    パッケージリストを読み込んでいます... 0%パッケージリストを読み込んでいます... 100%パッケージリストを読み込んでいます... 完了
    systemd (237-3ubuntu10.3) のトリガを処理しています ...
    ubuntu@ubuntu-VirtualBox:~$ sudo vi /etc/mysql/my.cnf
    "/etc/mysql/my.cnf" 21 lines, 682 characters#

 # The MySQL database server configuration file.
 #
 # You can copy this to one of:
 # - "/etc/mysql/my.cnf" to set global options,
 # - "~/.my.cnf" to set user-specific options.
 #
 # One can use all long options that the program supports.
 # Run program with --help to get a list of available options and with
 # --print-defaults to see which it would actually understand and use.
 #
 # For explanations see
 # http://dev.mysql.com/doc/mysql/en/server-system-variables.html

 #
 # * IMPORTANT: Additional settings that can override those from this file!
 #   The files must end with '.cnf', otherwise they'll be ignored.
 #

 !includedir /etc/mysql/conf.d/
 !includedir /etc/mysql/mysql.conf.d/

[mysqld]
character-set-server = utf8
collation-server     = utf8_bin
skip-character-set-client-handshake
innodb_file_per_table


 ~                                                                            ~                                                                            ~                                                                            ~                                                                            ~                                                                            ~                                                                            ~                                                                            ~                                                                            ~                                                                            ~                                                                            ~                                                                            ~                                                                            /character-set-server = utf8collation-server = utf8_binskip-character-set-client-handshakeinnodb_file_per_table:wq"/etc/mysql/my.cnf" 27 lines, 806 characters written

ubuntu@ubuntu-VirtualBox:~$ sudo service mysql restart
ubuntu@ubuntu-VirtualBox:~$ sudo wget https://repo.zabbix.com/zabbix/4.0/ubunttu/pool/main/z/zabbix-release/zabbix-release_4.0-2+bionic_all.deb
--2018-10-31 00:17:15-- https://repo.zabbix.com/zabbix/4.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_4.0-2+bionic_all.deb
repo.zabbix.com (repo.zabbix.com) をDNSに問いあわせています... 162.243.159.138
repo.zabbix.com (repo.zabbix.com)|162.243.159.138|:443 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 200 OK
長さ: 4008 (3.9K)
zabbix-release_4.0-2+bionic_all.deb' に保存中

zabbix-re 0% 0 --.-KB/s zabbix-release_4.0- 100% 3.91K --.-KB/s 時間 0s

2018-10-31 00:17:18 (339 MB/s) - zabbix-release_4.0-2+bionic_all.deb' へ保存完了

ubuntu@ubuntu-VirtualBox:~$ sudo dpkg -i zabbix-release_4.0-2+bionic_all.deb
以前に未選択のパッケージ zabbix-release を選択しています。
進捗: 進捗: .../04-gir1.2-webkit2-4.0_2.22.2-0ubuntu0.18.04.2_amd64.deb を展開する準備をしています ...
進捗: gir1.2-webkit2-4.0:amd64 (2.22.2-0ubuntu0.18.04.2) で (2.20.5-0ubuntu0.18.04.1 に) 上書き展開しています ...
進捗: 進捗: .../05-gir1.2-javascriptcoregtk-4.0_2.22.2-0ubuntu0.18.04.2_amd64.deb を展開する準備をしています ...
進捗: gir1.2-javascriptcoregtk-4.0:amd64 (2.22.2-0ubuntu0.18.04.2) で (2.20.5-0ubuntu0.18.04.1 に) 上書き展開しています ...
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
完了
進捗:
ubuntu@ubuntu-VirtualBox:~$ sudo apt update
状態情報を読み取っています... 0%状態情報を読み取っています... 3%状態情報を読み取っています... 完了
パッケージはすべて最新です。
ubuntu@ubuntu-VirtualBox:~$ sudo apt install -y zabbix-server-mysql zabbix-froontend-php zabbix-agent
状態情報を読み取っています... 0%状態情報を読み取っています... 3%状態情報を読み取っています... 完了
以下の追加パッケージがインストールされます:
apache2 apache2-bin apache2-data apache2-utils fping libapache2-mod-php
libapache2-mod-php7.2 libapr1 libaprutil1 libaprutil1-dbd-sqlite3
libaprutil1-ldap libcurl4 libiksemel3 liblua5.2-0 libmysqlclient20
libodbc1 libopenipmi0 libssh2-1 php-bcmath php-common php-gd php-ldap
進捗: libapr1:amd64 (1.6.3-2) を展開しています...
進捗: 以前に未選択のパッケージ libaprutil1:amd64 を選択しています。
ureadahead (0.100.0-20) のトリガを処理しています ...
libc-bin (2.27-3ubuntu1) のトリガを処理しています ...
systemd (237-3ubuntu10.3) のトリガを処理しています ...
ufw (0.35-5) のトリガを処理しています ...

ubuntu@ubuntu-VirtualBox:~$ sudo mysql_secure_installation

Securing the MySQL server deployment.

Connecting to MySQL using a blank password.

VALIDATE PASSWORD PLUGIN can be used to test passwords
and improve security. It checks the strength of password
and allows the users to set only those passwords which are
secure enough. Would you like to setup VALIDATE PASSWORD plugin?

Press y|Y for Yes, any other key for No: no
Please set the password for root here.

New password:

Re-enter new password:
By default, a MySQL installation has an anonymous user,
allowing anyone to log into MySQL 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? (Press y|Y for Yes, any other key for No) : y
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? (Press y|Y for Yes, any other key for No) : y
Success.

By default, MySQL 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? (Press y|Y for Yes, any other key for No) : y
- 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? (Press y|Y for Yes, any other key for No) : y
    Success.

    All done!

    ubuntu@ubuntu-VirtualBox:~$ sudo mysql -uroot -p
    Enter password:
    Welcome to the MySQL monitor. Commands end with ; or \g.
    Your MySQL connection id is 4
    Server version: 5.7.24-0ubuntu0.18.04.1 (Ubuntu)

    Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.

    Oracle is a registered trademark of Oracle Corporation and/or its
    affiliates. Other names may be trademarks of their respective
    owners.

    Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

    mysql> create database zabbixDB character set utf8 collate utf8_bin;
    Query OK, 1 row affected (0.00 sec)

    mysql> grant all privileges on zabbixDB.* to zabbixuser@localhost identified by 'ZabbixPW123!!';
    Query OK, 0 rows affected, 1 warning (0.00 sec)

    mysql> quit
    Bye
    ubuntu@ubuntu-VirtualBox:~$ zcat /usr/share/doc/zabbix-server-mysql*/create.sqql.gz | mysql -uzabbixuser -p zabbixDB
    Enter password:
    ubuntu@ubuntu-VirtualBox:~$ sudo vi /etc/zabbix/zabbix_server.conf
    "/etc/zabbix/zabbix_server.conf" 714 lines, 16870 characters# This is a configuration file for Zabbix server daemon

    To get more information about Zabbix, visit http://www.zabbix.com

 ############ GENERAL PARAMETERS #################

 ### Option: ListenPort
 #Listen port for trapper.
 #
 # Mandatory: no
 # Range: 1024-32767
 # Default:
 # ListenPort=10051

 ### Option: SourceIP
 #Source IP address for outgoing connections.
 #
 # Mandatory: no
 # Default:
 # SourceIP=

 ### Option: LogType
 #Specifies where log messages are written to:
 #system  - syslog
 #file    - file specified with LogFile parameter
 #console - standard output
 #
 # Mandatory: no
 # Default:
 # LogType=file

 ### Option: LogFile
 #Log file name for LogType 'file' parameter.
 ##IPC socket directory.
 #Directory to store IPC sockets used by internal Zabbix services.
 #
 # Mandatory: no
 # Default:
 # SocketDir=/tmp

 SocketDir=/var/run/zabbix

 ### Option: DBHost
 #Database host name.
 #If set to localhost, socket is used for MySQL.
 #If set to empty string, socket is used for PostgreSQL.
 #
 # Mandatory: no
 # Default:
 # DBHost=localhost

 ### Option: DBName
 #Database name.
 #For SQLite3 path to database file must be provided. DBUser and DBPasssword are ignored.
 #
 # Mandatory: yes
 # Default:
 # DBName=

 DBName=zabbix

 ### Option: DBSchema
 #Schema name. Used for IBM DB2 and PostgreSQL.
 #
 # Mandatory: no DBHost=localhostDBHost=localhost


 DBName=zabbixDB


 #
 # Mandatory: no
 # Default:
 # DBSchema=

 ### Option: DBUser
 #Database user. Ignored for SQLite.
 #
 # Mandatory: no
 # Default:
 # DBUser=

 DBUser=zabbixuser

 ### Option: DBPassword
 #Database password. Ignored for SQLite.
 #Comment this line if no password is used.
 #
 # Mandatory: no
 Default:# DBPassword=ZabbixPW123!!


 ### Option: DBSocket
/etc/zabbix/zabbix_server.conf" 716 lines, 16887 characters written

ubuntu@ubuntu-VirtualBox:~$ sudo vi /etc/zabbix/apache.conf

# Define /zabbix alias, this is the default
<IfModule mod_alias.c>
    Alias /zabbix /usr/share/zabbix
</IfModule>

<Directory "/usr/share/zabbix">
    Options FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all

    <IfModule mod_php5.c>
        php_value max_execution_time 300
        php_value memory_limit 128M
        php_value post_max_size 16M
        php_value upload_max_filesize 2M
        php_value max_input_time 300
        php_value max_input_vars 10000
        php_value always_populate_raw_post_data -1
        php_value date.timezone Asia/Tokyo
    </IfModule>
    <IfModule mod_php7.c>
        php_value max_execution_time 300
        php_value memory_limit 128M
        php_value post_max_size 16M
        php_value upload_max_filesize 2M
        php_value max_input_time 300
        php_value max_input_vars 10000
        php_value always_populate_raw_post_data -1
        php_value date.timezone Asia/Tokyo
    </IfModule>
</Directory>

ubuntu@ubuntu-VirtualBox:~$ sudo systemctl enable zabbix-server zabbix-agent aapache2
Synchronizing state of zabbix-server.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable zabbix-server
Synchronizing state of zabbix-agent.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable zabbix-agent
Synchronizing state of apache2.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable apache2
ubuntu@ubuntu-VirtualBox:~$ sudo systemctl restart zabbix-server zabbix-agent apache2
ubuntu@ubuntu-VirtualBox:~$

how to install zabbix 4.0 on CentOS 7 (for beginner. include log and movie)

Zabbix4.0をVirtualBox上のCentOS7へインストールした手順のメモです。
うまくいかないところがあればお問い合わせください
install movie

ひとまず手順のみのメモです!
!!質問があればお気軽にコメントください!!
(わたし自身も成長の為に質問頂きたいので、ぜひご質問ください!)

・環境
CentOS7.5 (minimal) on VirtualBox
(IP:192.168.56.150)
DB:MariaDB
MariaDB root PW:RootRoot123!!
zabbix DBname:zabbixDB
zabbix DBuser:zabbixuser
zabbixuser PW:ZabbixPW123!!

※teratermを使用してCentOSへアクセス

#から始まる行がコマンドです

zabbix・mariadbのインストール

1.zabbix keyのインストール
#rpm -i https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm

2.zabbix関連PKGのインストール
#yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-agent

3.mariadbのダウンロード
#yum -y install mariadb mariadb-server

4.selinuxのステータスを確認
#getenforce
:Enforcing

5.selinuxをdisabledにする
#vi /etc/sysconfig/selinux
→SELINUX=disabled

6.selinuxの変更を反映させるために再起動
#reboot

7.MariaDBステータスの確認
#systemctl status mariadb

8.MariaDBの自動起動設定
#systemctl enable mariadb

9.MariaDBの自動起動設定
#systemctl start mariadb

10.MariaDBのステータス確認
#systemctl status mariadb

データベースの作成

11.初期設定
#mysql_secure_installation

初期PWを変更して、rootPWも変更しておく。
そのほかはすべてyでOK

Enter current password for root (enter for none):
→enter

Change the root password? [Y/n] y
→rootPWを入力
RootRoot123!!

12.mysqlモードへ移行
#mysql -uroot -p
→Enter password:RootRoot123!!

13.zabbix用データベースの作成
#create database zabbixDB character set utf8 collate utf8_bin;

14.データベースへユーザ/PWの作成
#grant all privileges on zabbixDB.* to zabbixuser@localhost identified by 'ZabbixPW123!!';

15.mysqlモードを終了
#exit

16.データベース「zabbix」のテーブル作成用のsql文を実行
#zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbixuser -p zabbixDB
:Enter password: ZabbixPW123!!

17.作成後の確認
#mysql -uroot -p zabbixDB
PW:RootRoot123!!

18.databaseの確認
#show databases;

19.mysqlモードを終了
#exit

20.webサーバステータスの確認
#systemctl status httpd

21.webサーバの自動起動設定
#systemctl enable httpd

22.webサーバの起動
#systemctl start httpd

23.webサーバステータスの確認
#systemctl status httpd

24.zabbixのステータスの確認
#systemctl status zabbix-server

25.zabbixの自動起動設定
#systemctl enable zabbix-server

26.zabbixサーバの起動
#systemctl start zabbix-server

27.zabbixのステータスの確認
#systemctl status zabbix-server

28.zabbixフロントの設定
#vi /etc/zabbix/zabbix_server.conf
DBパスワードを記載
125行目付近の
・DBName=zabbixDB
・DBUser=zabbixuser
・DBPassword=ZabbixPW123!!

30.PHPのtimezoneの編集
#vi /etc/httpd/conf.d/zabbix.conf

20行目の
'# php_value date.timezone Europe/Riga
→php_value date.timezone Asia/Tokyo
(「#」コメントアウトを削除して「Asia/Tokyo」へ編集)

31.firewall追加
#firewall-cmd --add-service=http --permanent

32.firewalldの再起動
#firewall-cmd --reload

33.webサーバの再起動
#systemctl restart httpd

34.zabbixの再起動
#systemctl restart zabbix-server

ブラウザから「IPアドレス/zabbix」へアクセス
(firefoxなどを立ち上げて、「192.168.56.150/zabbix」へアクセス)

※ダメだったら
httpd、mariadb、zabbix-serverの再起動を試してみましょう
→mariadbの再起動
systemctl restart zabbix-server

ブラウザアクセスが成功したら、初期設定する。

Welcome to zabbixの画面
→Next step

Check of pre-requisites
→Next step

Configure DB connection
→PasswordにZabbixPW123!
→Next step

Zabbix server details
→Nameに任意のサーバ名記入

Pre-installation summary
→Next step

Install
Congratulations! You have successfully installed Zabbix frontend.
→Finish

ZabbixのTOP画面※下記は初期ユーザ/パスワード
Username:Admin
Password:zabbix

以上です。
無事インストールできましたか?

Logです
MarkDownが効いてしまって見づらくなっています、申し訳ありません。。

【tech】how to install zabbix 4.0 on ubuntu 18.04 (for beginner. include log and movie)



Zabbix4.0をVirtualBox上のubuntu1804へインストールした手順のメモです。
うまくいかないところがあればお問い合わせください。
※わたしもubuntuは触り始めたので全然わからずにやっている部分があります・・

ひとまず手順のみのメモです!
!!質問があればお気軽にコメントください!!
(わたし自身も成長の為に質問頂きたいので、ぜひご質問ください!)

環境


Ubuntu1804 (minimal) on VirtualBox
IF1:Nat
IF2:hostonly(IP:192.168.56.150)
DB:Mysql
Mysql rootPW:RootRoot123!!
zabbixDBname:zabbixDB
zabbixDBuser:zabbixuser
zabbixuser PW:ZabbixPW123!!

※teratermを使用してUbuntuへアクセス
以下手順です!




日本語環境の設定


・キーボードの設定
sudo dpkg-reconfigure keyboard-configuration

→keyboardに合わせて選択
 (私はわからなかったのですべて変更せずにENTER(OK)しました)

・日本語パックのインストール(your country)
sudo apt install language-pack-ja-base language-pack-ja

・ロケールの日本設定(your country)
sudo update-locale LANG=ja_JP.UTF-8 LANGUAGE="ja_JP:ja"

・フォントのインストール
sudo apt-get install fonts-vlgothic

・アップグレード
sudo apt-get upgrade -y

→GRUBのインストール先を選択。
 (わたしはわからなかったので「/dev/sda」を選びました。)
・アップデート
sudo apt-get update

・リブート
sudo reboot

Mysql・Zabbixのインストール




・mysqlのインストール
sudo apt-get install -y mysql-server

・mysqlの設定
sudo vi /etc/mysql/my.cnf

ファイル内の最下部(23行目辺り)に、下記5行([mysqld]から5行)を追記


[mysqld]
character-set-server = utf8
collation-server = utf8_bin
skip-character-set-client-handshake
innodb_file_per_table


・mysqlの再起動
sudo service mysql restart

・Zabbix4.0のリポジトリダウンロード
sudo wget https://repo.zabbix.com/zabbix/4.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_4.0-2+bionic_all.deb

・Zabbix4.0のリポジトリインストール
sudo dpkg -i zabbix-release_4.0-2+bionic_all.deb

・アップグレード
sudo apt upgrade -y

・アップデート
sudo apt update

・Zabbix4.0のインストール
sudo apt install -y zabbix-server-mysql zabbix-frontend-php zabbix-agent


Zabbix用DBの作成


・Mysql初期設定
sudo mysql_secure_installation

→No
New password:RootRootPW123!!

それ以降はyを4回

・Mysqlを起動
sudo mysql -uroot -p

・Databaseの作成
create database zabbixDB character set utf8 collate utf8_bin;

・ユーザの作成
grant all privileges on zabbixDB.* to zabbixuser@localhost identified by 'ZabbixPW123!!';

・mysqlから抜ける
quit

・イニシャルスキーマ・データのインポート
zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbixuser -p zabbixDB

Enter password:ZabbixPW123!!

・zabbixフロントの設定
sudo vi /etc/zabbix/zabbix_server.conf
→下記4か所パラメータの更新



91行目あたりのDBHost
DBHost=localhost
→#を消す

101行目・DBName
DBName=ZabbixDB

117行目・DBUser
DBUser=Zabbixuser

125行目・DBPassword
DBPassword=ZabbixPW123!!

保存して閉じる(:wq)


・PHPのtimezoneの編集
sudo vi /etc/zabbix/apache.conf

※ほんとうは、多分30行目だけでいいと思います。。。


line 20
php_value date.timezone Asia/Tokyo
→#を消して「Europe/Riga」を「Asia/Tokyo(※your country)」へ
  
line 30
php_value date.timezone Asia/Tokyo
→#を消して「Europe/Riga」を「Asia/Tokyo(※your country)」へ




・apahce2/zabbixの再起動
sudo systemctl enable zabbix-server zabbix-agent apache2

・apahce2/zabbixの自動起動設定
sudo systemctl restart zabbix-server zabbix-agent apache2

ブラウザから「IPアドレス/zabbix」へアクセス
(firefoxなどを立ち上げて、「192.168.56.150/zabbix」へアクセス)

※ダメだったら
apache2、Mysql、zabbix-serverの再起動を試してみましょう
→zabbixの再起動
systemctl restart zabbix-server


ブラウザアクセスが成功したら、初期設定する。

Welcome to zabbixの画面
→Next step

Check of pre-requisites
→Next step

Configure DB connection
→PasswordにZabbixPW123!
→Next step

Zabbix server details
→Nameに任意のサーバ名記入

Pre-installation summary
→Next step

Install
Congratulations! You have successfully installed Zabbix frontend.
→Finish

ZabbixのTOP画面※下記は初期ユーザ/パスワード
Username:Admin
Password:zabbix

以上です。
無事インストールできましたか?

もしわかりづらかったらCentOS7での手順もありますので、部分的にでも参考にしていただければ幸いです!

作業ログは作らない予定でしたが、リクエストありましたので後ほどアップいたします!
リクエストありがとうございました!!



久しぶりにみてみると、モバイルバッテリーもずいぶん安くなってるんですね!

皆さん既にやってると思いますが、 AmazonPrimeだとAmazon Music Unlimitedが月額780円でできるんですね!
最近知ってapple musicから乗り換えました。(200円ですが安い方がいいに越したことはないです笑)

下のPythonの本は kindle unlimitedで無料で読めますのでお勧めです!(30日無料期間に読んで解約もアリだと思います。笑)



centos openstack packstack インストールログ



####ログです。
VirtualBox上のCentOS7にPackstackを使用してOpenstack Rockyをインストールしています。作業手順はこちら
※Markdownが効いて拡大されたりすることを避けるために「\」を入れています。
(もっといいやり方ご存知の方は教えてください・・・泣)

以降install LOG(抜粋)です!


\
\ [root@localhost ~]# sudo vi /etc/environment
\ "/etc/environment" 0L, 0C~
\
\ LANG=en_US.utf-8
\ LC_ALL=en_US.utf-8
\
\
\ [root@localhost ~]# sudo systemctl stop NetworkManager
\ [root@localhost ~]# sudo systemctl disable NetworkManager
\ Removed symlink /etc/systemd/system/multi-user.target.wants/NetworkManager.service.
\ Removed symlink /etc/systemd/system/dbus-org.freedesktop.NetworkManager.service.
\ Removed symlink /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service.
\ [root@localhost ~]# sudo systemctl stop firewalld
\ [root@localhost ~]# sudo systemctl disable firewalld
\ Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
\ Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
\ [root@localhost ~]# sudo systemctl restart network
\ [root@localhost ~]# getenforce
\ Enforcing
\ [root@localhost ~]# vi /etc/sysconfig/selinux
\ "/etc/sysconfig/selinux" 14L, 547C# This file controls the state of SELinux on the system.
\ # SELINUX= can take one of these three values:
\ # enforcing - SELinux security policy is enforced.
\ # permissive - SELinux prints warnings instead of enforcing.
\ # disabled - No SELinux policy is loaded.
\ SELINUX=disabled
\ # SELINUXTYPE= can take one of three two values:
\ # targeted - Targeted processes are protected,
\ # minimum - Modification of targeted policy. Only selected processes are protected.
\ # mls - Multi Level Security protection.
\ SELINUXTYPE=targeted
\
\
\ [root@localhost ~]# reboot
\
\
\
\ [root@localhost ~]# sudo yum -y update
\ Loaded plugins: fastestmirror
\ Determining fastest mirrors
\ * base: ftp-srv2.kddilabs.jp
\ * extras: ftp-srv2.kddilabs.jp
\ * updates: ftp-srv2.kddilabs.jp
\ --> Running transaction check
\ ---> Package NetworkManager.x86_64 1:1.10.2-13.el7 will be updated
\ ---> Package NetworkManager.x86_64 1:1.10.2-16.el7_5 will be an update
\ ---> Package tzdata.noarch 0:2018c-1.el7 will be updated
\ ---> Package tzdata.noarch 0:2018f-2.el7 will be an update
\ ---> Package util-linux.x86_64 0:2.23.2-52.el7 will be updated
\ ---> Package util-linux.x86_64 0:2.23.2-52.el7_5.1 will be an update
\ ---> Package yum-plugin-fastestmirror.noarch 0:1.1.31-45.el7 will be updated
\ ---> Package yum-plugin-fastestmirror.noarch 0:1.1.31-46.el7_5 will be an update
\ --> Finished Dependency Resolution
\
\ Dependencies Resolved
\
\ =============================================================================


\ Package Arch Version Repository
\ Size
\ =============================================================================
\ Installing:
\ kernel x86_64 3.10.0-862.14.4.el7 updates 46 M
\ Updating:
\ NetworkManager x86_64 1:1.10.2-16.el7_5 updates 1.7 M
\ NetworkManager-libnm x86_64 1:1.10.2-16.el7_5 updates 1.3 M
\ NetworkManager-team x86_64 1:1.10.2-16.el7_5 updates 161 k
\ NetworkManager-tui x86_64 1:1.10.2-16.el7_5 updates 235 k
\ NetworkManager-wifi x86_64 1:1.10.2-16.el7_5 updates 192 k
\ audit x86_64 2.8.1-3.el7_5.1 updates 247 k
\ audit-libs x86_64 2.8.1-3.el7_5.1 updates 99 k
\ bind-libs-lite x86_64 32:9.9.4-61.el7_5.1 updates 734 k
\ bind-license noarch 32:9.9.4-61.el7_5.1 updates 85 k
\ python-firewall noarch 0.4.4.4-15.el7_5 updates 328 k
\ python-libs x86_64 2.7.5-69.el7_5 updates 5.6 M
\ python-perf x86_64 3.10.0-862.14.4.el7 updates 6.3 M
\ rsyslog x86_64 8.24.0-16.el7_5.4 updates 607 k
\ selinux-policy noarch 3.13.1-192.el7_5.6 updates 453 k
\ selinux-policy-targeted noarch 3.13.1-192.el7_5.6 updates 6.6 M
\ sudo x86_64 1.8.19p2-14.el7_5 updates 1.1 M
\ systemd x86_64 219-57.el7_5.3 updates 5.0 M
\ systemd-libs x86_64 219-57.el7_5.3 updates 402 k
\ systemd-sysv x86_64 219-57.el7_5.3 updates 80 k
\ tuned noarch 2.9.0-1.el7_5.2 updates 244 k
\ tzdata noarch 2018f-2.el7 updates 484 k
\ util-linux x86_64 2.23.2-52.el7_5.1 updates 2.0 M
\ yum-plugin-fastestmirror
\ noarch 1.1.31-46.el7_5 updates 33 k
\
\ Transaction Summary
\ =============================================================================
\ Install 1 Package
\ Upgrade 82 Packages
\
\ Total download size: 179 M
\ Downloading packages:
\ Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
\ Public key for NetworkManager-wifi-1.10.2-16.el7_5.x86_64.rpm is not installed
\ (1/83): NetworkManager-wifi-1.10.2-16.el7_5.x86_64.rpm | 192 kB 00:00
\ (2/83): NetworkManager-team-1.10.2-16.el7_5.x86_64.rpm | 161 kB 00:00
\ (3/83): audit-2.8.1-3.el7_5.1.x86_64.rpm | 247 kB 00:00
\ (4/83): NetworkManager-tui-1.10.2-16.el7_5.x86_64.rpm | 235 kB 00:00
\ (5/83): audit-libs-2.8.1-3.el7_5.1.x86_64.rpm | 99 kB 00:00
\ Package : centos-release-7-5.1804.el7.centos.x86_64 (@anaconda)
\ From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
\ Running transaction check
\ Running transaction test
\ Transaction test succeeded
\ Running transaction
\ Updating : nspr-4.19.0-1.el7_5.x86_6 [ ] 1/165
\ Updating : nspr-4.19.0-1.el7_5.x86_6 [##### ] 1/165
\ Cleanup : iwl3160-firmware-22.0.7.0-62.el7.noarch 101/165
\ Cleanup : iwl5150-firmware-8.24.2.2-62.el7.noarch 102/165
\ Cleanup : iwl100-firmware-39.31.5.1-62.el7.noarch 103/165



\ Cleanup : 1:iwl1000-firmware-39.31.5.1-62.el7.noarch 104/165
\ Cleanup : ca-certificates-2017.2.20-71.el7.noarch 105/165
\ Cleanup : iwl4965-firmware-228.61.2.24-62.el7.noarch 106/165
\ Cleanup : iwl6000-firmware-9.221.4.1-62.el7.noarch 107/165
\ Cleanup : yum-plugin-fastestmirror-1.1.31-45.el7.noarch 108/165
\ Cleanup : iwl2030-firmware-18.168.6.1-62.el7.noarch 109/165
\ Cleanup : iwl7265-firmware-22.0.7.0-62.el7.noarch 110/165
\ Cleanup : linux-firmware-20180220-62.git6d51311.el7.noarch 111/165
\ Cleanup : 1:NetworkManager-tui-1.10.2-13.el7.x86_64 112/165
\ Cleanup : e2fsprogs-1.42.9-11.el7.x86_64 113/165
\ Cleanup : audit-2.8.1-3.el7.x86_64 114/165
\ Cleanup : rsyslog-8.24.0-16.el7.x86_64 115/165
\ Cleanup : kexec-tools-2.0.15-13.el7.x86_64 116/165
\ Cleanup : dracut-network-033-535.el7.x86_64 117/165
\ Cleanup : 12:dhclient-4.2.5-68.el7.centos.x86_64 118/165
\ Cleanup : systemd-sysv-219-57.el7.x86_64 119/165
\ Cleanup : dracut-033-535.el7.x86_64 120/165
\ Cleanup : initscripts-9.49.41-1.el7.x86_64 121/165
\ Cleanup : util-linux-2.23.2-52.el7.x86_64 122/165
\ Cleanup : 32:bind-libs-lite-9.9.4-61.el7.x86_64 123/165
\ Cleanup : python-perf-3.10.0-862.el7.x86_64 124/165
\ Cleanup : 1:NetworkManager-wifi-1.10.2-13.el7.x86_64 125/165
\ Cleanup : 1:NetworkManager-team-1.10.2-13.el7.x86_64 126/165
\ Cleanup : 1:NetworkManager-1.10.2-13.el7.x86_64 127/165
\ Cleanup : 1:NetworkManager-libnm-1.10.2-13.el7.x86_64 128/165
\ Cleanup : sudo-1.8.19p2-13.el7.x86_64 129/165
\ Cleanup : 12:dhcp-common-4.2.5-68.el7.centos.x86_64 130/165
\ Cleanup : 12:dhcp-libs-4.2.5-68.el7.centos.x86_64 131/165
\ Cleanup : python-2.7.5-68.el7.x86_64 132/165
\ Cleanup : krb5-libs-1.15.1-18.el7.x86_64 133/165
\ Cleanup : procps-ng-3.3.10-17.el7.x86_64 134/165
\ Cleanup : e2fsprogs-libs-1.42.9-11.el7.x86_64 135/165
\ Cleanup : libss-1.42.9-11.el7.x86_64 136/165
\ Cleanup : 2:microcode_ctl-2.1-29.el7.x86_64 137/165
\ Verifying : iwl3945-firmware-15.32.2.9-62.el7.noarch 153/165
\ Verifying : libss-1.42.9-11.el7.x86_64 154/165
\ Verifying : procps-ng-3.3.10-17.el7.x86_64 155/165
\ Verifying : libblkid-2.23.2-52.el7.x86_64 156/165
\ Verifying : kpartx-0.4.9-119.el7.x86_64 157/165
\ Verifying : krb5-libs-1.15.1-18.el7.x86_64 158/165
\ Verifying : nss-3.34.0-4.el7.x86_64 159/165
\ Verifying : 1:mariadb-libs-5.5.56-2.el7.x86_64 160/165
\ Verifying : iwl5000-firmware-8.83.5.1_1-62.el7.noarch 161/165
\ Verifying : systemd-219-57.el7.x86_64 162/165
\ Verifying : yum-plugin-fastestmirror-1.1.31-45.el7.noarch 163/165
\ Verifying : systemd-libs-219-57.el7.x86_64 164/165
\ Verifying : e2fsprogs-1.42.9-11.el7.x86_64 165/165
\
\ Installed:
\ kernel.x86_64 0:3.10.0-862.14.4.el7



\
\ Updated:
\ NetworkManager.x86_64 1:1.10.2-16.el7_5
\ NetworkManager-libnm.x86_64 1:1.10.2-16.el7_5
\ NetworkManager-team.x86_64 1:1.10.2-16.el7_5
\ systemd.x86_64 0:219-57.el7_5.3
\ systemd-libs.x86_64 0:219-57.el7_5.3
\ systemd-sysv.x86_64 0:219-57.el7_5.3
\ tuned.noarch 0:2.9.0-1.el7_5.2
\ tzdata.noarch 0:2018f-2.el7
\ util-linux.x86_64 0:2.23.2-52.el7_5.1
\ yum-plugin-fastestmirror.noarch 0:1.1.31-46.el7_5
\
\ Complete!
\ [root@localhost ~]# sudo yum install -y centos-release-openstack-rocky
\ Loaded plugins: fastestmirror
\ Loading mirror speeds from cached hostfile
\ * base: ftp-srv2.kddilabs.jp
\ * extras: ftp-srv2.kddilabs.jp
\ * updates: ftp-srv2.kddilabs.jp
\ Resolving Dependencies
\ --> Running transaction check
\ ---> Package centos-release-virt-common.noarch 0:1-1.el7.centos will be installed
\ --> Finished Dependency Resolution
\
\ Dependencies Resolved
\
\ =============================================================================
\ Package Arch Version Repository
\ Size
\ =============================================================================
\ Installing:
\ centos-release-openstack-rocky noarch 1-1.el7.centos extras 5.2 k
\ Installing for dependencies:
\ centos-release-ceph-luminous noarch 1.1-2.el7.centos extras 4.4 k
\ centos-release-qemu-ev noarch 1.0-3.el7.centos extras 11 k
\ centos-release-storage-common noarch 2-2.el7.centos extras 5.1 k
\ centos-release-virt-common noarch 1-1.el7.centos extras 4.5 k
\
\ Transaction Summary
\ =============================================================================
\ Install 1 Package (+4 Dependent packages)
\
\ Total download size: 30 k
\ Installed size: 24 k
\ Downloading packages:
\ (1/5): centos-release-ceph-luminous-1.1-2.el7.centos.no | 4.4 kB 00:00
\ -----------------------------------------------------------------------------
\ Total 36 kB/s | 30 kB 00:00
\ Running transaction check
\ Running transaction test
\ Transaction test succeeded
\ Running transaction
\ Installing : centos-release-storage-comm [ ] 1/5
\ Installing : centos-release-storage-comm [################# ] 1/5
\ Verifying : centos-release-qemu-ev-1.0-3.el7.centos.noarch 3/5
\ Verifying : centos-release-virt-common-1-1.el7.centos.noarch 4/5
\ Verifying : centos-release-storage-common-2-2.el7.centos.noarch 5/5
\
\ Installed:
\ centos-release-openstack-rocky.noarch 0:1-1.el7.centos
\
\ Dependency Installed:
\ centos-release-ceph-luminous.noarch 0:1.1-2.el7.centos
\ centos-release-qemu-ev.noarch 0:1.0-3.el7.centos
\ centos-release-storage-common.noarch 0:2-2.el7.centos
\ centos-release-virt-common.noarch 0:1-1.el7.centos
\
\ Complete!
\ [root@localhost ~]# sudo yum -y update
\ Loaded plugins: fastestmirror
\ Loading mirror speeds from cached hostfile
\ * base: ftp-srv2.kddilabs.jp
\ * extras: ftp-srv2.kddilabs.jp
\ * updates: ftp-srv2.kddilabs.jp



\ centos-ceph-luminous | 2.9 kB 00:00
\ centos-openstack-rocky | 2.9 kB 00:00
\ centos-qemu-ev | 2.9 kB 00:00
\ --> Processing Dependency: mariadb-common(x86-64) = 3:10.1.20-2.el7 for package: 3:mariadb-libs-10.1.20-2.el7.x86_64
\ --> Running transaction check
\ ---> Package mariadb-common.x86_64 3:10.1.20-2.el7 will be installed
\ --> Processing Dependency: /etc/my.cnf for package: 3:mariadb-common-10.1.20-2.el7.x86_64
\ --> Running transaction check
\ ---> Package mariadb-config.x86_64 3:10.1.20-2.el7 will be installed
\ ---> Package mariadb-libs.x86_64 1:5.5.60-1.el7_5 will be updated
\ ---> Package mariadb-libs.x86_64 1:5.5.60-1.el7_5 will be updated
\ --> Finished Dependency Resolution
\
\ Dependencies Resolved
\
\ =============================================================================
\ Package Arch Version Repository Size
\ =============================================================================
\ Updating:
\ mariadb-libs x86_64 3:10.1.20-2.el7 centos-openstack-rocky 643 k
\ Installing for dependencies:
\ mariadb-common x86_64 3:10.1.20-2.el7 centos-openstack-rocky 63 k
\ mariadb-config x86_64 3:10.1.20-2.el7 centos-openstack-rocky 26 k
\
\ Transaction Summary
\ =============================================================================
\ Install ( 2 Dependent packages)
\ Upgrade 1 Package
\
\ Total download size: 732 k
\ Downloading packages:
\ -----------------------------------------------------------------------------
\ Total 136 kB/s | 732 kB 00:05
\ Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Cloud
\ Importing GPG key 0x764429E6:
\ Userid : "CentOS Cloud SIG (http://wiki.centos.org/SpecialInterestGroup/Cloud) security@centos.org"
\ Fingerprint: 736a f511 6d9c 40e2 af6b 074b f9b9 fee7 7644 29e6
\ Package : centos-release-openstack-rocky-1-1.el7.centos.noarch (@extras)
\ From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Cloud
\ Running transaction check
\ Running transaction test
\ Transaction test succeeded
\ Running transaction
\ Installing : 3:mariadb-config-10.1.20-2. [ ] 1/4
\ Verifying : 1:mariadb-libs-5.5.60-1.el7_5.x86_64 4/4
\
\ Dependency Installed:
\ mariadb-common.x86_64 3:10.1.20-2.el7
\ mariadb-config.x86_64 3:10.1.20-2.el7
\
\ Updated:
\ mariadb-libs.x86_64 3:10.1.20-2.el7
\
\ Complete!
\ [root@localhost ~]# sudo yum install -y openstack-packstack
\ Loaded plugins: fastestmirror
\ Loading mirror speeds from cached hostfile
\ * base: ftp-srv2.kddilabs.jp
\ * extras: ftp-srv2.kddilabs.jp
\ * updates: ftp-srv2.kddilabs.jp
\ Resolving Dependencies
\ --> Running transaction check
\ ---> Package openstack-packstack.noarch 1:13.0.0-0.1.0rc1.el7 will be installed
\ --> Processing Dependency: python-ipaddress for package: python2-cryptography-2.1.4-2.el7.x86_64
\ --> Processing Dependency: python-enum34 for package: python2-cryptography-2.1.4-2.el7.x86_64
\ ---> Package python2-pillow.x86_64 0:4.0.0-2.el7 will be installed
\ --> Processing Dependency: python2-olefile for package: python2-pillow-4.0.0-2.el7.x86_64
\ --> Processing Dependency: libtiff.so.5(LIBTIFF_4.0)(64bit) for package: python2-pillow-4.0.0-2.el7.x86_64
\ --> Running transaction check
\ ---> Package rubygem-io-console.x86_64 0:0.4.2-33.el7_4 will be installed
\ ---> Package rubygem-psych.x86_64 0:2.0.0-33.el7_4 will be installed
\ ---> Package rubygem-rdoc.noarch 0:4.0.0-33.el7_4 will be installed
\ --> Finished Dependency Resolution
\
\ Dependencies Resolved
\
\ =============================================================================
\ Package Arch Version Repository Size
\ =============================================================================
\ Installing:
\ openstack-packstack
\ noarch 1:13.0.0-0.1.0rc1.el7 centos-openstack-rocky 190 k
\ Installing for dependencies:
\ PyYAML x86_64 3.10-11.el7 base 153 k
\ augeas-libs x86_64 1.4.0-5.el7_5.1 updates 355 k
\ facter x86_64 1:2.4.4-4.el7 centos-openstack-rocky 101 k
\ hiera noarch 1:1.3.4-5.el7 centos-openstack-rocky 25 k
\ jbigkit-libs x86_64 2.0-11.el7 base 46 k
\ lcms2 x86_64 2.6-3.el7 base 150 k
\ libimagequant x86_64 2.8.2-2.el7 centos-openstack-rocky 52 k
\ libjpeg-turbo x86_64 1.2.90-5.el7 base 134 k
\ libselinux-ruby x86_64 2.5-12.el7 base 121 k
\ libtiff x86_64 4.0.3-27.el7_3 base 170 k
\ libwebp x86_64 0.3.0-7.el7 base 170 k
\ libyaml x86_64 0.1.4-11.el7_0 base 55 k
\ net-tools x86_64 2.0-0.22.20131004git.el7
\ base 305 k
\ openjpeg2 x86_64 2.1.2-1.el7 centos-openstack-rocky 112 k
\ openstack-packstack-puppet
\ noarch 1:13.0.0-0.1.0rc1.el7 centos-openstack-rocky 60 k
\ pciutils x86_64 3.5.1-3.el7 base 93 k
\ python2-pyOpenSSL
\ noarch 17.3.0-3.el7 centos-openstack-rocky 92 k
\ python2-setuptools
\ noarch 38.4.0-3.el7 centos-openstack-rocky 618 k
\ python2-six noarch 1.11.0-4.el7 centos-openstack-rocky 32 k
\ ruby x86_64 2.0.0.648-33.el7_4 base 71 k
\ ruby-augeas x86_64 0.5.0-1.el7 centos-openstack-rocky 23 k
\ ruby-irb noarch 2.0.0.648-33.el7_4 base 92 k
\ ruby-libs x86_64 2.0.0.648-33.el7_4 base 2.8 M
\ ruby-shadow x86_64 1.4.1-23.el7 centos-openstack-rocky 13 k
\ rubygem-bigdecimal
\ x86_64 1.2.0-33.el7_4 base 83 k
\ rubygem-io-console
\ x86_64 0.4.2-33.el7_4 base 54 k
\ rubygem-json x86_64 1.7.7-33.el7_4 base 79 k
\ rubygem-psych x86_64 2.0.0-33.el7_4 base 82 k
\ rubygem-rdoc noarch 4.0.0-33.el7_4 base 322 k
\ rubygem-rgen noarch 0.6.6-2.el7 centos-openstack-rocky 84 k
\ rubygems noarch 2.0.14.1-33.el7_4 base 219 k
\



\ Transaction Summary
\ =============================================================================
\ Install 1 Package (+89 Dependent packages)
\
\ Total download size: 17 M
\ Installed size: 64 M
\ Downloading packages:
\ (2/90): augeas-libs-1.4.0 0% [ ] 0.0 B/s | 0 B --:-- ETA
\ (1/90): PyYAML-3.10-11.el7.x86_64.rpm | 153 kB 00:00
\ (2/90): jbigkit-libs-2.0-11.el7.x86_64.rpm | 46 kB 00:00
\ (3/90): hiera-1.3.4-5.el7.noarch.rpm | 25 kB 00:00
\ (5/90): facter-2.4.4-4.el 2% [ ] 0.0 B/s | 414 kB --:-- ETA
\ (90/90): ruby-libs-2.0.0 98% [==============-] 1.1 MB/s | 17 MB 00:00 ETA
\ (90/90): ruby-libs-2.0.0.648-33.el7_4.x86_64.rpm | 2.8 MB 00:02
\ -----------------------------------------------------------------------------
\ Total 704 kB/s | 17 MB 00:25
\ Running transaction check
\ Running transaction test
\ Transaction test succeeded
\ Running transaction
\ Installing : ruby-libs-2.0.0.648-33.el7 [ ] 1/90
\ Installing : ruby-libs-2.0.0.648-33.el7 [# ] 1/90
\ Installing : ruby-libs-2.0.0.648-33.el7 [## ] 1/90
\ Installing : 1:openstack-packstack-13.0 [############## ] 90/90
\ Installing : 1:openstack-packstack-13.0 [############### ] 90/90
\ Installing : 1:openstack-packstack-13.0 [################ ] 90/90
\ Installing : 1:openstack-packstack-13.0 [######################## ] 90/90
\ Installing : 1:openstack-packstack-13.0 [######################### ] 90/90
\ Installing : 1:openstack-packstack-13.0.0-0.1.0rc1.el7.noarch 90/90
\ Verifying : ruby-libs-2.0.0.648-33.el7_4.x86_64 1/90
\ Verifying : libtiff-4.0.3-27.el7_3.x86_64 2/90
\ Verifying : puppet-remote-10.0.0-1.7420908git.el7.noarch 3/90
\ Verifying : python-docutils-0.11-0.3.20130715svn7687.el7.noarch 4/90
\ Verifying : python2-olefile-0.44-1.el7.noarch 5/90
\ Verifying : puppet-xinetd-3.0.0-1.b95c79cgit.el7.noarch 6/90
\ Verifying : python2-cryptography-2.1.4-2.el7.x86_64 7/90
\ Verifying : puppet-rsync-1.1.0-1.f85532fgit.el7.noarch 8/90
\ Verifying : puppet-nssdb-1.0.1-1.2ed2a2dgit.el7.noarch 9/90
\ Verifying : python-pycparser-2.14-1.el7.noarch 10/90
\ Verifying : 1:openstack-packstack-puppet-13.0.0-0.1.0rc1.el7.noar 11/90
\ Verifying : python2-setuptools-38.4.0-3.el7.noarch 12/90
\ Verifying : libyaml-0.1.4-11.el7_0.x86_64 13/90
\ Verifying : python2-idna-2.5-1.el7.noarch 87/90
\ Verifying : openjpeg2-2.1.2-1.el7.x86_64 88/90
\ Verifying : python2-pillow-4.0.0-2.el7.x86_64 89/90
\ Verifying : python2-pyOpenSSL-17.3.0-3.el7.noarch 90/90
\
\ Installed:
\ openstack-packstack.noarch 1:13.0.0-0.1.0rc1.el7
\
\ Dependency Installed:
\ PyYAML.x86_64 0:3.10-11.el7
\ augeas-libs.x86_64 0:1.4.0-5.el7_5.1
\ facter.x86_64 1:2.4.4-4.el7
\ rubygem-rgen.noarch 0:0.6.6-2.el7
\ rubygems.noarch 0:2.0.14.1-33.el7_4
\
\ Complete!
\ [root@localhost ~]# packstack --gen-answer-file=answer.txt
\ Packstack changed given value to required value /root/.ssh/id_rsa.pub
\ [root@localhost ~]# vi answer.txt
\ "answer.txt" 1359L, 51773C[general]
\
\ # Path to a public key to install on servers. If a usable key has not
\ # been installed on the remote servers, the user is prompted for a
\ # password and this key is installed so the password will not be
\ # required again.
\ CONFIG_SSH_KEY=/root/.ssh/id_rsa.pub
\
\ # Default password to be used everywhere (overridden by passwords set
\ # for individual services or users).
\ CONFIG_DEFAULT_PASSWORD=



\
\ # The amount of service workers/threads to use for each service.
\ # Useful to tweak when you have memory constraints. Defaults to the
\ # amount of cores on the system.
\ CONFIG_SERVICE_WORKERS=%{::processorcount}
\
\ # Specify 'y' to install MariaDB. ['y', 'n']
\ CONFIG_MARIADB_INSTALL=y
\
\ # Specify 'y' to install OpenStack Image Service (glance). ['y', 'n']
\ CONFIG_GLANCE_INSTALL=y
\
\ # Specify 'y' to install OpenStack Block Storage (cinder). ['y', 'n']
\ CONFIG_CINDER_INSTALL=y
\
\ # Specify 'y' to install OpenStack Shared File System (manila). ['y',
\ # 'n']
\ CONFIG_MANILA_INSTALL=n
\
\ # Specify 'y' to install OpenStack Compute (nova). ['y', 'n']
\ CONFIG_NOVA_INSTALL=y:%s/10.0.2.15/192.168.56.150/gc# should not install ntpd on instances.
\ CONFIG_NTP_SERVERS=
\
\ # Comma-separated list of servers to be excluded from the
\ # installation. This is helpful if you are running Packstack a second
\ # time with the same answer file and do not want Packstack to
\ # overwrite these server's configurations. Leave empty if you do not
\ # need to exclude any servers.
\ EXCLUDE_SERVERS=
\
\ # Specify 'y' if you want to run OpenStack services in debug mode;
\ # otherwise, specify 'n'. ['y', 'n']
\ CONFIG_DEBUG_MODE=n
\
\ # Server on which to install OpenStack services specific to the
\ # controller role (for example, API servers or dashboard).
\ CONFIG_CONTROLLER_HOST=10.0.2.15
\
\ # List the servers on which to install the Compute service.
\ CONFIG_COMPUTE_HOSTS=10.0.2.15
\
\ # List of servers on which to install the network service such as
\ # Compute networking (nova network) or OpenStack Networking (neutron).
\ CONFIG_NETWORK_HOSTS=10.0.2.15
\
\ # Specify 'y' if you want to use VMware vCenter as hypervisor and
\ # storage; otherwise, specify 'n'. ['y', 'n']
\ CONFIG_VMWARE_BACKEND=n
\
\ # Specify 'y' if you want to use unsupported parameters. This should
\ # be used only if you know what you are doing. Issues caused by using
\ # unsupported options will not be fixed before the next major release.
\ # ['y', 'n']
\ replace with 192.168.56.150 (y/n/a/q/l/^E/^Y)?192.168.56.15010.0.2.15replace with 192.168.56.150
\ CONFIG_VCENTER_HOST=
\
\ # User name for VMware vCenter server authentication.
\ CONFIG_VCENTER_USER=
\
\ # Password for VMware vCenter server authentication.
\ CONFIG_VCENTER_PASSWORD=
\
\ # Comma separated list of names of the VMware vCenter clusters. Note:
\ # if multiple clusters are specified each one is mapped to one
\ # compute, otherwise all computes are mapped to same cluster.
\ CONFIG_VCENTER_CLUSTER_NAMES=
\
\ # (Unsupported!) Server on which to install OpenStack services
\ # specific to storage servers such as Image or Block Storage services.
\ CONFIG_STORAGE_HOST=10.0.2.15
\
\ # (Unsupported!) Server on which to install OpenStack services
\ # specific to OpenStack Data Processing (sahara).
\ CONFIG_SAHARA_HOST=10.0.2.15
\
\ # Comma-separated list of URLs for any additional yum repositories,
\ # to use for installation.
\ CONFIG_REPO=
\
\ # Specify 'y' to enable the RDO testing repository. ['y', 'n']
\ CONFIG_ENABLE_RDO_TESTING=n
\
\ # To subscribe each server with Red Hat Subscription Manager, include
\ # this with CONFIG_RH_PW.
\ CONFIG_RH_USER=
\
\ replace with 192.168.56.150 (y/n/a/q/l/^E/^Y)?192.168.56.15010.0.2.15replace
\ CONFIG_SSL_CERT_SUBJECT_O=openstack
\
\ # Enter the ssl certificates subject organizational unit.
\ CONFIG_SSL_CERT_SUBJECT_OU=packstack
\
\ # Enter the ssl certificates subject common name.
\ CONFIG_SSL_CERT_SUBJECT_CN=localhost.localdomain
\
\ CONFIG_SSL_CERT_SUBJECT_MAIL=admin@localhost.localdomain
\
\ # Service to be used as the AMQP broker. Allowed values are: rabbitmq
\ # ['rabbitmq']
\ CONFIG_AMQP_BACKEND=rabbitmq
\



\ # IP address of the server on which to install the AMQP service.
\ CONFIG_AMQP_HOST=10.0.2.15
\
\ # Specify 'y' to enable SSL for the AMQP service. ['y', 'n']
\ CONFIG_AMQP_ENABLE_SSL=n
\
\ # Specify 'y' to enable authentication for the AMQP service. ['y',
\ # 'n']
\ CONFIG_AMQP_ENABLE_AUTH=n
\
\ # Password for the NSS certificate database of the AMQP service.
\ CONFIG_AMQP_NSS_CERTDB_PW=PW_PLACEHOLDER
\
\ # User for AMQP authentication.
\ CONFIG_AMQP_AUTH_USER=amqp_user
\
\ # Password for AMQP authentication.
\ CONFIG_AMQP_AUTH_PASSWORD=PW_PLACEHOLDER
\ replace with 192.168.56.150 (y/n/a/q/l/^E/^Y)?192.168.56.150# IP address of the server on which to install MariaDB. If a MariaDB
\ # installation was not specified in CONFIG_MARIADB_INSTALL, specify
\ # the IP address of an existing database server (a MariaDB cluster can
\ # also be specified).
\ CONFIG_MARIADB_HOST=10.0.2.15
\ replace with 192.168.56.150 (y/n/a/q/l/^E/^Y)?CONFIG_KEYSTONE_ADMIN_PW=22b64e9247f14648
\
\ # Password to use for the Identity service 'demo' user.
\ CONFIG_KEYSTONE_DEMO_PW=ded6a41dc92646b2
\
\ # Identity service API version string. ['v2.0', 'v3']
\ CONFIG_KEYSTONE_API_VERSION=v3
\
\ # Identity service token format (FERNET). Since Rocky, only FERNET is
\ # supported. ['FERNET']
\ CONFIG_KEYSTONE_TOKEN_FORMAT=FERNET
\
\ # Type of Identity service backend (sql or ldap). ['sql', 'ldap']
\ CONFIG_KEYSTONE_IDENTITY_BACKEND=sql
\
\ # URL for the Identity service LDAP backend.
\ CONFIG_KEYSTONE_LDAP_URL=ldap://10.0.2.15
\
\ # User DN for the Identity service LDAP backend. Used to bind to the
\ # LDAP server if the LDAP server does not allow anonymous
\ # authentication.
\ CONFIG_KEYSTONE_LDAP_USER_DN=
\
\ # User DN password for the Identity service LDAP backend.
\ CONFIG_KEYSTONE_LDAP_USER_PASSWORD=
\
\ # Base suffix for the Identity service LDAP backend.
\ CONFIG_KEYSTONE_LDAP_SUFFIX=
\
\ # Query scope for the Identity service LDAP backend. Use 'one' for
\ # onelevel/singleLevel or 'sub' for subtree/wholeSubtree ('base' is
\ # not actually used by the Identity service and is therefore
\ # deprecated). ['base', 'one', 'sub']
\ replace with 192.168.56.150 (y/n/a/q/l/^E/^Y)?# Password to use for Telemetry to authenticate with the Identity
\ # service.
\ CONFIG_CEILOMETER_KS_PW=e012cf7f3a05477c
\
\ # Ceilometer service name. ['httpd', 'ceilometer']
\ CONFIG_CEILOMETER_SERVICE_NAME=httpd
\
\ # Backend driver for Telemetry's group membership coordination.
\ # ['redis', 'none']
\ CONFIG_CEILOMETER_COORDINATION_BACKEND=redis
\
\ # Whether to enable ceilometer middleware in swift proxy. By default
\ # this should be false to avoid unnecessary load.
\ CONFIG_ENABLE_CEILOMETER_MIDDLEWARE=n
\
\ # IP address of the server on which to install the Redis server.
\ CONFIG_REDIS_HOST=10.0.2.15
\
\ # Port on which the Redis server listens.
\ CONFIG_REDIS_PORT=6379
\
\ # Password to use for Telemetry Alarming to authenticate with the
\ # Identity service.
\ CONFIG_AODH_KS_PW=2278db46bae14413
\
\ # Password to use for Telemetry Alarming (AODH) to access the
\ # database.
\ CONFIG_AODH_DB_PW=c4c31846c5ca4587
\
\ # Password to use for Panko to access the database.
\ CONFIG_PANKO_DB_PW=PW_PLACEHOLDER
\
\ # Password to use for Panko to authenticate with the Identity
\ replace with 192.168.56.150 (y/n/a/q/l/^E/^Y)?9 substitutions on 9 lines192.168.56.150:wq"answer.txt" 1359L, 51818C written
\ [root@localhost ~]# packstack --answer-file=answer.txt
\ Welcome to the Packstack setup utility
\
\ The installation log file is available at: /var/tmp/packstack/20181110-195847-_6aAQ0/openstack-setup.log
\
\ Installing:
\ Clean Up [ DONE ]



\ Discovering ip protocol version [ DONE ]
\ Setting up ssh keys [ DONE ]
\ Preparing servers [ DONE ]
\ Pre installing Puppet and discovering hosts' details [ DONE ]
\ Preparing pre-install entries [ DONE ]
\ Setting up CACERT [ DONE ]
\ Preparing AMQP entries [ DONE ]
\ Preparing MariaDB entries [ DONE ]
\ Fixing Keystone LDAP config parameters to be undef if empty[ DONE ]
\ Preparing Keystone entries [ DONE ]
\ Preparing Glance entries [ DONE ]
\ Checking if the Cinder server has a cinder-volumes vg[ DONE ]
\ Preparing Cinder entries [ DONE ]
\ Preparing Nova API entries [ DONE ]
\ Creating ssh keys for Nova migration [ DONE ]
\ Gathering ssh host keys for Nova migration [ DONE ]
\ Preparing Nova Compute entries [ DONE ]
\ Preparing Nova Scheduler entries [ DONE ]
\ Preparing Nova VNC Proxy entries [ DONE ]
\ Preparing OpenStack Network-related Nova entries [ DONE ]
\ Preparing Nova Common entries [ DONE ]
\ Preparing Neutron LBaaS Agent entries [ DONE ]
\ Preparing Neutron API entries [ DONE ]
\ Preparing Neutron L3 entries [ DONE ]
\ Preparing Neutron L2 Agent entries [ DONE ]
\ Preparing Neutron DHCP Agent entries [ DONE ]
\ Preparing Neutron Metering Agent entries [ DONE ]
\ Checking if NetworkManager is enabled and running [ DONE ]
\ Preparing OpenStack Client entries [ DONE ]
\ Preparing Horizon entries [ DONE ]
\ Preparing Swift builder entries [ DONE ]
\ Preparing Swift proxy entries [ DONE ]
\ Preparing Swift storage entries [ DONE ]
\ Preparing Gnocchi entries [ DONE ]
\ Preparing Redis entries [ DONE ]
\ Preparing Ceilometer entries [ DONE ]
\ Preparing Aodh entries [ DONE ]
\ Preparing Puppet manifests [ DONE ]
\ Copying Puppet modules and manifests [ DONE ]
\ Applying 192.168.56.150_controller.pp
\ Testing if puppet apply is finished: 192.168.56.150_controller.pp [ / ]_
\ compute.pp: [ DONE ]
\ Applying Puppet manifests [ DONE ]
\ Finalizing [ DONE ]
\
\ **** Installation completed successfully ******
\
\ Additional information:
\ * Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.
\ * File /root/keystonerc_admin has been created on OpenStack client host 192.168.56.150. To use the command line tools you need to source the file.
\ * To access the OpenStack Dashboard browse to http://192.168.56.150/dashboard .
\ Please, find your login credentials stored in the keystonerc_admin in your home directory.
\ * Because of the kernel update the host 192.168.56.150 requires reboot.
\ * The installation log file is available at: /var/tmp/packstack/20181110-195847-_6aAQ0/openstack-setup.log
\ * The generated manifests are available at: /var/tmp/packstack/20181110-195847-_6aAQ0/manifests
\ [root@localhost ~]#
\ [root@localhost ~]#
\ [root@localhost ~]# cat keystonerc_admin
\ unset OS_SERVICE_TOKEN
\ export OS_USERNAME=admin
\ export OS_PASSWORD='22b64e9247f14648'
\ export OS_AUTH_URL=http://192.168.56.150:5000/v3
\ export PS1='[\u@\h \W(keystone_admin)]\$ '
\
\ export OS_PROJECT_NAME=admin
\ export OS_USER_DOMAIN_NAME=Default
\ export OS_PROJECT_DOMAIN_NAME=Default
\ export OS_IDENTITY_API_VERSION=3
\ [root@localhost ~]#