今回の目的
前回 VirtulBox + Vagrant に作成した Zabbix サーバーと通信する Zabbix プロキシを同じ仮想環境内に作成してみる。
構築する Zabbix プロキシのパラメータ
ホストオンリーアダプタを2つ使用したインターフェースの構成を作成する。
- Zabbix Proxy - 監視対象ホスト 間で使用
- 192.168.0.111/24:Zabbix サーバーとの通信用
- VirtualBox Host-Only Ethernet Adapter #2
- 192.168.10.111/24:監視対象ホストとの通信用
- VirtualBox Host-Only Ethernet Adapter #3
- 192.168.0.111/24:Zabbix サーバーとの通信用
使用した Vagrant Box
Zabbix サーバーは almalinux で構築したんですが、せっかくなのでOSを変えてみる。
Debian にしてみることに。
- Zabbix Proxy
- bento/debian-11.10 (https://app.vagrantup.com/bento/boxes/debian-11.10)
Zabbix プロキシの構築
またところどころ実行ログも残していきます。
Vagrant で仮想マシンの構築
C:\Vagrant\Zabbix_Proxy>dir ドライブ C のボリューム ラベルがありません。 ボリューム シリアル番号は 2C60-6CB4 です C:\Vagrant\Zabbix_Proxy のディレクトリ 2024/09/15 14:42 <DIR> . 2024/09/15 14:42 <DIR> .. 0 個のファイル 0 バイト 2 個のディレクトリ 180,370,784,256 バイトの空き領域 C:\Vagrant\Zabbix_Proxy>
- vagrant init コマンドを実行
vagrant init bento/debian-11.10
C:\Vagrant\Zabbix_Proxy>vagrant init bento/debian-11.10 A `Vagrantfile` has been placed in this directory. You are now ready to `vagrant up` your first virtual environment! Please read the comments in the Vagrantfile as well as documentation on `vagrantup.com` for more information on using Vagrant. C:\Vagrant\Zabbix_Proxy>
- Vagrantfile が作成されたことを確認
C:\Vagrant\Zabbix_Proxy>dir ドライブ C のボリューム ラベルがありません。 ボリューム シリアル番号は 2C60-6CB4 です C:\Vagrant\Zabbix_Proxy のディレクトリ 2024/09/15 14:45 <DIR> . 2024/09/15 14:42 <DIR> .. 2024/09/15 14:45 3,469 Vagrantfile 1 個のファイル 3,469 バイト 2 個のディレクトリ 180,366,270,464 バイトの空き領域 C:\Vagrant\Zabbix_Proxy>
- Vagrantfile を編集する
- 今回はホストオンリーアダプターを2つ使用したいので、
config.vm.network "private_network"
に2つの設定を入れてみる。
- 今回はホストオンリーアダプターを2つ使用したいので、
# -*- mode: ruby -*- # vi: set ft=ruby : # All Vagrant configuration is done below. The "2" in Vagrant.configure # configures the configuration version (we support older styles for # backwards compatibility). Please don't change it unless you know what # you're doing. Vagrant.configure("2") do |config| # The most common configuration options are documented and commented below. # For a complete reference, please see the online documentation at # https://docs.vagrantup.com. # Every Vagrant development environment requires a box. You can search for # boxes at https://vagrantcloud.com/search. config.vm.box = "bento/debian-11" # Disable automatic box update checking. If you disable this, then # boxes will only be checked for updates when the user runs # `vagrant box outdated`. This is not recommended. # config.vm.box_check_update = false config.vm.box_check_update = false # Create a forwarded port mapping which allows access to a specific port # within the machine from a port on the host machine. In the example below, # accessing "localhost:8080" will access port 80 on the guest machine. # NOTE: This will enable public access to the opened port # config.vm.network "forwarded_port", guest: 80, host: 8080 # Create a forwarded port mapping which allows access to a specific port # within the machine from a port on the host machine and only allow access # via 127.0.0.1 to disable public access # config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1" # Create a private network, which allows host-only access to the machine # using a specific IP. # config.vm.network "private_network", ip: "192.168.33.10" config.vm.network "private_network", ip: "192.168.0.111" config.vm.network "private_network", ip: "192.168.10.111" # Create a public network, which generally matched to bridged network. # Bridged networks make the machine appear as another physical device on # your network. # config.vm.network "public_network" # Share an additional folder to the guest VM. The first argument is # the path on the host to the actual folder. The second argument is # the path on the guest to mount the folder. And the optional third # argument is a set of non-required options. # config.vm.synced_folder "../data", "/vagrant_data" # Disable the default share of the current code directory. Doing this # provides improved isolation between the vagrant box and your host # by making sure your Vagrantfile isn't accessible to the vagrant box. # If you use this you may want to enable additional shared subfolders as # shown above. # config.vm.synced_folder ".", "/vagrant", disabled: true # Provider-specific configuration so you can fine-tune various # backing providers for Vagrant. These expose provider-specific options. # Example for VirtualBox: # # config.vm.provider "virtualbox" do |vb| # # Display the VirtualBox GUI when booting the machine # vb.gui = true # # # Customize the amount of memory on the VM: # vb.memory = "1024" # end # # View the documentation for the provider you are using for more # information on available options. # Enable provisioning with a shell script. Additional provisioners such as # Ansible, Chef, Docker, Puppet and Salt are also available. Please see the # documentation for more information about their specific syntax and use. # config.vm.provision "shell", inline: <<-SHELL # apt-get update # apt-get install -y apache2 # SHELL end
- Vagrant を起動
C:\Vagrant\Zabbix_Proxy>vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Importing base box 'bento/debian-11'... ==> default: Matching MAC address for NAT networking... ==> default: Setting the name of the VM: Zabbix_Proxy_default_1726381282245_41719 ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... default: Adapter 1: nat default: Adapter 2: hostonly default: Adapter 3: hostonly ==> default: Forwarding ports... default: 22 (guest) => 2222 (host) (adapter 1) ==> default: Booting VM... ==> default: Waiting for machine to boot. This may take a few minutes... default: SSH address: 127.0.0.1:2222 default: SSH username: vagrant default: SSH auth method: private key default: default: Vagrant insecure key detected. Vagrant will automatically replace default: this with a newly generated keypair for better security. default: default: Inserting generated public key within guest... default: Removing insecure key from the guest if it's present... default: Key inserted! Disconnecting and reconnecting using new SSH key... ==> default: Machine booted and ready! ==> default: Checking for guest additions in VM... ==> default: Configuring and enabling network interfaces... ==> default: Mounting shared folders... default: /vagrant => C:/Vagrant/Zabbix_Proxy C:\Vagrant\Zabbix_Proxy>
vagrant ssh
でログイン
C:\Vagrant\Zabbix_Proxy>vagrant ssh Linux debian-11 5.10.0-25-amd64 #1 SMP Debian 5.10.191-1 (2023-08-16) x86_64 This system is built by the Bento project by Chef Software More information can be found at https://github.com/chef/bento The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. vagrant@debian-11:~$
- ネットワーク設定を確認
vagrant@debian-11:~$ ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 08:00:27:fe:71:ea brd ff:ff:ff:ff:ff:ff altname enp0s3 inet 10.0.2.15/24 brd 10.0.2.255 scope global dynamic eth0 valid_lft 86193sec preferred_lft 86193sec inet6 fe80::a00:27ff:fefe:71ea/64 scope link valid_lft forever preferred_lft forever 3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 08:00:27:0d:6c:c8 brd ff:ff:ff:ff:ff:ff altname enp0s8 inet 192.168.0.111/24 brd 192.168.0.255 scope global eth1 valid_lft forever preferred_lft forever inet6 fe80::a00:27ff:fe0d:6cc8/64 scope link valid_lft forever preferred_lft forever 4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 08:00:27:d2:1d:8a brd ff:ff:ff:ff:ff:ff altname enp0s9 inet 192.168.10.111/24 brd 192.168.10.255 scope global eth2 valid_lft forever preferred_lft forever inet6 fe80::a00:27ff:fed2:1d8a/64 scope link valid_lft forever preferred_lft forever vagrant@debian-11:~$ vagrant@debian-11:~$ ip r default via 10.0.2.2 dev eth0 10.0.2.0/24 dev eth0 proto kernel scope link src 10.0.2.15 169.254.0.0/16 dev eth0 scope link metric 1000 192.168.0.0/24 dev eth1 proto kernel scope link src 192.168.0.111 192.168.10.0/24 dev eth2 proto kernel scope link src 192.168.10.111 vagrant@debian-11:~$
eth1:NAT eth2:192.168.10.111 eth3:192.168.10.111
よさげ。
Vagrantfile で IP アドレスを複数設定する場合、インターフェースの名前とかを明示的に設定しなければならないのかと思ったが、設定する IP アドレスのレンジを見て判断してくれるみたい。
これは賢いですね。
- ホストコンピュータ (192.168.0.1) への Ping 疎通確認:OK
vagrant@debian-11:~$ ping 192.168.0.1 PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data. 64 bytes from 192.168.0.1: icmp_seq=1 ttl=128 time=0.827 ms 64 bytes from 192.168.0.1: icmp_seq=2 ttl=128 time=1.39 ms ^C --- 192.168.0.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1106ms rtt min/avg/max/mdev = 0.827/1.107/1.388/0.280 ms vagrant@debian-11:~$
応答あり。
- ログアウトして Vagrant をシャットダウン
vagrant@debian-11:~$ exit logout Connection to 127.0.0.1 closed. C:\Vagrant\Zabbix_Proxy> C:\Vagrant\Zabbix_Proxy>vagrant halt ==> default: Attempting graceful shutdown of VM... C:\Vagrant\Zabbix_Proxy>
大丈夫そう。
OS の update & upgrade
vgrant up
で仮想マシン起動
C:\Vagrant\Zabbix_Proxy>vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Clearing any previously set forwarded ports... ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... default: Adapter 1: nat default: Adapter 2: hostonly default: Adapter 3: hostonly ==> default: Forwarding ports... default: 22 (guest) => 2222 (host) (adapter 1) ==> default: Booting VM... ==> default: Waiting for machine to boot. This may take a few minutes... default: SSH address: 127.0.0.1:2222 default: SSH username: vagrant default: SSH auth method: private key ==> default: Machine booted and ready! ==> default: Checking for guest additions in VM... ==> default: Configuring and enabling network interfaces... ==> default: Mounting shared folders... default: /vagrant => C:/Vagrant/Zabbix_Proxy ==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision` ==> default: flag to force provisioning. Provisioners marked to run always will still run. C:\Vagrant\Zabbix_Proxy>
vagrant ssh
で仮想マシンにログイン
C:\Vagrant\Zabbix_Proxy>vagrant ssh Linux debian-11 5.10.0-25-amd64 #1 SMP Debian 5.10.191-1 (2023-08-16) x86_64 This system is built by the Bento project by Chef Software More information can be found at https://github.com/chef/bento The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Sun Sep 15 06:27:17 2024 from 10.0.2.2 vagrant@debian-11:~$
sudo apt update
で OS のリポジトリのパッケージリストを更新
vagrant@debian-11:~$ sudo apt update Get:1 http://security.debian.org/debian-security bullseye-security InRelease [27.2 kB] Get:2 http://security.debian.org/debian-security bullseye-security/main Sources [184 kB] Get:3 http://security.debian.org/debian-security bullseye-security/main amd64 Packages [290 kB] Get:4 http://security.debian.org/debian-security bullseye-security/main Translation-en [186 kB] Get:5 http://httpredir.debian.org/debian bullseye InRelease [116 kB] Get:6 http://httpredir.debian.org/debian bullseye-updates InRelease [44.1 kB] Get:7 http://httpredir.debian.org/debian bullseye/main Sources [8,500 kB] Get:8 http://httpredir.debian.org/debian bullseye/main amd64 Packages [8,066 kB] Get:9 http://httpredir.debian.org/debian bullseye/main Translation-en [6,235 kB] Get:10 http://httpredir.debian.org/debian bullseye-updates/main Sources.diff/Index [26.3 kB] Get:11 http://httpredir.debian.org/debian bullseye-updates/main amd64 Packages.diff/Index [26.3 kB] Get:12 http://httpredir.debian.org/debian bullseye-updates/main Translation-en.diff/Index [11.7 kB] Get:13 http://httpredir.debian.org/debian bullseye-updates/main Sources T-2023-12-29-1403.39-F-2023-09-14-2007.09.pdiff [2,518 B] Get:13 http://httpredir.debian.org/debian bullseye-updates/main Sources T-2023-12-29-1403.39-F-2023-09-14-2007.09.pdiff [2,518 B] Get:14 http://httpredir.debian.org/debian bullseye-updates/main amd64 Packages T-2023-12-29-1403.39-F-2023-09-14-2007.09.pdiff [3,125 B] Get:14 http://httpredir.debian.org/debian bullseye-updates/main amd64 Packages T-2023-12-29-1403.39-F-2023-09-14-2007.09.pdiff [3,125 B] Get:15 http://httpredir.debian.org/debian bullseye-updates/main Translation-en T-2023-12-29-1403.39-F-2023-11-13-2005.21.pdiff [946 B] Get:15 http://httpredir.debian.org/debian bullseye-updates/main Translation-en T-2023-12-29-1403.39-F-2023-11-13-2005.21.pdiff [946 B] Fetched 23.7 MB in 9s (2,661 kB/s) Reading package lists... Done Building dependency tree... Done Reading state information... Done 88 packages can be upgraded. Run 'apt list --upgradable' to see them. N: Repository 'http://httpredir.debian.org/debian bullseye InRelease' changed its 'Version' value from '11.7' to '11.11' vagrant@debian-11:~$
sudo apt upgrade -y
で OS 内のパッケージの最新版を取得
vagrant@debian-11:~$ sudo apt upgrade -y Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done The following NEW packages will be installed: linux-image-5.10.0-32-amd64 The following packages will be upgraded: adduser base-files bind9-dnsutils bind9-host bind9-libs bluetooth bluez bsdextrautils bsdutils cifs-utils cpio curl dbus distro-info-data dpkg eject fdisk grub-common grub-pc grub-pc-bin grub2-common krb5-locales less libblkid1 libbsd0 libc-bin libc-l10n libc6 libcurl3-gnutls libcurl4 libdbus-1-3 libfdisk1 libglib2.0-0 libglib2.0-data libgnutls30 libgssapi-krb5-2 libk5crypto3 libkrb5-3 libkrb5support0 libmount1 libncurses6 libncursesw6 libnftables1 libnghttp2-14 libnss-systemd libpam-systemd libperl5.32 libsmartcols1 libssh2-1 libssl1.1 libsystemd0 libtinfo6 libudev1 libuuid1 libuv1 libwbclient0 libxml2 linux-image-amd64 locales logrotate mount nano ncurses-base ncurses-bin ncurses-term net-tools nfs-common nftables openssh-client openssh-server openssh-sftp-server openssl perl perl-base perl-modules-5.32 python3-idna python3-pkg-resources python3-reportbug reportbug systemd systemd-sysv systemd-timesyncd tar tzdata udev util-linux util-linux-locales wpasupplicant 88 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 113 MB of archives. After this operation, 318 MB of additional disk space will be used. Get:1 http://security.debian.org/debian-security bullseye-security/main amd64 bluez amd64 5.55-3.1+deb11u2 [1,140 kB] Get:2 http://httpredir.debian.org/debian bullseye/main amd64 base-files amd64 11.1+deb11u11 [70.2 kB] Get:3 http://security.debian.org/debian-security bullseye-security/main amd64 libsystemd0 amd64 247.3-7+deb11u6 [377 kB] Get:4 http://security.debian.org/debian-security bullseye-security/main amd64 systemd-timesyncd amd64 247.3-7+deb11u6 [131 kB] Get:5 http://security.debian.org/debian-security bullseye-security/main amd64 libpam-systemd amd64 247.3-7+deb11u6 [283 kB] Get:6 http://security.debian.org/debian-security bullseye-security/main amd64 libnss-systemd amd64 247.3-7+deb11u6 [199 kB] Get:7 http://security.debian.org/debian-security bullseye-security/main amd64 systemd amd64 247.3-7+deb11u6 [4,501 kB] Get:8 http://httpredir.debian.org/debian bullseye/main amd64 bsdutils amd64 1:2.36.1-8+deb11u2 [149 kB] Get:9 http://security.debian.org/debian-security bullseye-security/main amd64 udev amd64 247.3-7+deb11u6 [1,465 kB] Get:10 http://security.debian.org/debian-security bullseye-security/main amd64 libudev1 amd64 247.3-7+deb11u6 [169 kB] Get:11 http://security.debian.org/debian-security bullseye-security/main amd64 systemd-sysv amd64 247.3-7+deb11u6 [114 kB] Get:12 http://security.debian.org/debian-security bullseye-security/main amd64 libgnutls30 amd64 3.7.1-5+deb11u6 [1,340 kB] Get:13 http://security.debian.org/debian-security bullseye-security/main amd64 libxml2 amd64 2.9.10+dfsg-6.7+deb11u5 [693 kB] Get:14 http://security.debian.org/debian-security bullseye-security/main amd64 bluetooth all 5.55-3.1+deb11u2 [45.0 kB] Get:15 http://security.debian.org/debian-security bullseye-security/main amd64 python3-pkg-resources all 52.0.0-4+deb11u1 [190 kB] Get:16 http://httpredir.debian.org/debian bullseye/main amd64 tar amd64 1.34+dfsg-1+deb11u1 [847 kB] Get:17 http://httpredir.debian.org/debian bullseye/main amd64 dpkg amd64 1.20.13 [2,538 kB] Get:18 http://httpredir.debian.org/debian bullseye/main amd64 ncurses-bin amd64 6.2+20201114-2+deb11u2 [429 kB] Get:19 http://httpredir.debian.org/debian bullseye/main amd64 libperl5.32 amd64 5.32.1-4+deb11u3 [4,121 kB] Get:20 http://httpredir.debian.org/debian bullseye/main amd64 perl amd64 5.32.1-4+deb11u3 [293 kB] Get:21 http://httpredir.debian.org/debian bullseye/main amd64 perl-base amd64 5.32.1-4+deb11u3 [1,628 kB] Get:22 http://httpredir.debian.org/debian bullseye/main amd64 perl-modules-5.32 all 5.32.1-4+deb11u3 [2,823 kB] Get:23 http://httpredir.debian.org/debian bullseye/main amd64 libc6 amd64 2.31-13+deb11u11 [2,823 kB] Get:24 http://httpredir.debian.org/debian bullseye/main amd64 libblkid1 amd64 2.36.1-8+deb11u2 [194 kB] Get:25 http://httpredir.debian.org/debian bullseye/main amd64 libuuid1 amd64 2.36.1-8+deb11u2 [83.9 kB] Get:26 http://httpredir.debian.org/debian bullseye/main amd64 libfdisk1 amd64 2.36.1-8+deb11u2 [238 kB] Get:27 http://httpredir.debian.org/debian bullseye/main amd64 libmount1 amd64 2.36.1-8+deb11u2 [212 kB] Get:28 http://httpredir.debian.org/debian bullseye/main amd64 libncurses6 amd64 6.2+20201114-2+deb11u2 [102 kB] Get:29 http://httpredir.debian.org/debian bullseye/main amd64 libncursesw6 amd64 6.2+20201114-2+deb11u2 [132 kB] Get:30 http://httpredir.debian.org/debian bullseye/main amd64 libtinfo6 amd64 6.2+20201114-2+deb11u2 [342 kB] Get:31 http://httpredir.debian.org/debian bullseye/main amd64 libsmartcols1 amd64 2.36.1-8+deb11u2 [158 kB] Get:32 http://httpredir.debian.org/debian bullseye/main amd64 fdisk amd64 2.36.1-8+deb11u2 [192 kB] Get:33 http://httpredir.debian.org/debian bullseye/main amd64 util-linux amd64 2.36.1-8+deb11u2 [1,142 kB] Get:34 http://httpredir.debian.org/debian bullseye/main amd64 libc-bin amd64 2.31-13+deb11u11 [829 kB] Get:35 http://httpredir.debian.org/debian bullseye/main amd64 ncurses-base all 6.2+20201114-2+deb11u2 [272 kB] Get:36 http://httpredir.debian.org/debian bullseye/main amd64 adduser all 3.118+deb11u1 [241 kB] Get:37 http://httpredir.debian.org/debian bullseye/main amd64 libdbus-1-3 amd64 1.12.28-0+deb11u1 [223 kB] Get:38 http://httpredir.debian.org/debian bullseye/main amd64 dbus amd64 1.12.28-0+deb11u1 [244 kB] Get:39 http://httpredir.debian.org/debian bullseye/main amd64 libglib2.0-0 amd64 2.66.8-1+deb11u4 [1,377 kB] Get:40 http://httpredir.debian.org/debian bullseye/main amd64 mount amd64 2.36.1-8+deb11u2 [186 kB] Get:41 http://httpredir.debian.org/debian bullseye/main amd64 nftables amd64 0.9.8-3.1+deb11u2 [69.0 kB] Get:42 http://httpredir.debian.org/debian bullseye/main amd64 libnftables1 amd64 0.9.8-3.1+deb11u2 [262 kB] Get:43 http://httpredir.debian.org/debian bullseye/main amd64 bsdextrautils amd64 2.36.1-8+deb11u2 [146 kB] Get:44 http://httpredir.debian.org/debian bullseye/main amd64 libbsd0 amd64 0.11.3-1+deb11u1 [108 kB] Get:45 http://httpredir.debian.org/debian bullseye/main amd64 libwbclient0 amd64 2:4.13.13+dfsg-1~deb11u6 [314 kB] Get:46 http://httpredir.debian.org/debian bullseye/main amd64 libk5crypto3 amd64 1.18.3-6+deb11u5 [114 kB] Get:47 http://httpredir.debian.org/debian bullseye/main amd64 libkrb5support0 amd64 1.18.3-6+deb11u5 [65.7 kB] Get:48 http://httpredir.debian.org/debian bullseye/main amd64 libkrb5-3 amd64 1.18.3-6+deb11u5 [363 kB] Get:49 http://httpredir.debian.org/debian bullseye/main amd64 libgssapi-krb5-2 amd64 1.18.3-6+deb11u5 [166 kB] Get:50 http://httpredir.debian.org/debian bullseye/main amd64 libssl1.1 amd64 1.1.1w-0+deb11u1 [1,566 kB] Get:51 http://httpredir.debian.org/debian bullseye/main amd64 tzdata all 2024a-0+deb11u1 [304 kB] Get:52 http://httpredir.debian.org/debian bullseye/main amd64 cpio amd64 2.13+dfsg-7.1~deb11u1 [245 kB] Get:53 http://httpredir.debian.org/debian bullseye/main amd64 less amd64 551-2+deb11u2 [136 kB] Get:54 http://httpredir.debian.org/debian bullseye/main amd64 logrotate amd64 3.18.0-2+deb11u2 [72.6 kB] Get:55 http://httpredir.debian.org/debian bullseye/main amd64 nano amd64 5.4-2+deb11u3 [657 kB] Get:56 http://httpredir.debian.org/debian bullseye/main amd64 libuv1 amd64 1.40.0-2+deb11u1 [132 kB] Get:57 http://httpredir.debian.org/debian bullseye/main amd64 bind9-dnsutils amd64 1:9.16.50-1~deb11u2 [408 kB] Get:58 http://httpredir.debian.org/debian bullseye/main amd64 bind9-libs amd64 1:9.16.50-1~deb11u2 [1,433 kB] Get:59 http://httpredir.debian.org/debian bullseye/main amd64 bind9-host amd64 1:9.16.50-1~deb11u2 [312 kB] Get:60 http://httpredir.debian.org/debian bullseye/main amd64 krb5-locales all 1.18.3-6+deb11u5 [95.7 kB] Get:61 http://httpredir.debian.org/debian bullseye/main amd64 libc-l10n all 2.31-13+deb11u11 [864 kB] Get:62 http://httpredir.debian.org/debian bullseye/main amd64 locales all 2.31-13+deb11u11 [4,087 kB] Get:63 http://httpredir.debian.org/debian bullseye/main amd64 ncurses-term all 6.2+20201114-2+deb11u2 [505 kB] Get:64 http://httpredir.debian.org/debian bullseye/main amd64 openssh-sftp-server amd64 1:8.4p1-5+deb11u3 [52.8 kB] Get:65 http://httpredir.debian.org/debian bullseye/main amd64 openssh-server amd64 1:8.4p1-5+deb11u3 [386 kB] Get:66 http://httpredir.debian.org/debian bullseye/main amd64 openssh-client amd64 1:8.4p1-5+deb11u3 [932 kB] Get:67 http://httpredir.debian.org/debian bullseye/main amd64 reportbug all 7.10.3+deb11u2 [135 kB] Get:68 http://httpredir.debian.org/debian bullseye/main amd64 python3-reportbug all 7.10.3+deb11u2 [143 kB] Get:69 http://httpredir.debian.org/debian bullseye/main amd64 cifs-utils amd64 2:6.11-3.1+deb11u2 [90.6 kB] Get:70 http://httpredir.debian.org/debian bullseye/main amd64 libnghttp2-14 amd64 1.43.0-1+deb11u1 [77.2 kB] Get:71 http://httpredir.debian.org/debian bullseye/main amd64 libssh2-1 amd64 1.9.0-2+deb11u1 [156 kB] Get:72 http://httpredir.debian.org/debian bullseye/main amd64 curl amd64 7.74.0-1.3+deb11u13 [271 kB] Get:73 http://httpredir.debian.org/debian bullseye/main amd64 libcurl4 amd64 7.74.0-1.3+deb11u13 [347 kB] Get:74 http://httpredir.debian.org/debian bullseye/main amd64 distro-info-data all 0.51+deb11u6 [8,360 B] Get:75 http://httpredir.debian.org/debian bullseye/main amd64 eject amd64 2.36.1-8+deb11u2 [103 kB] Get:76 http://httpredir.debian.org/debian bullseye/main amd64 grub-pc amd64 2.06-3~deb11u6 [131 kB] Get:77 http://httpredir.debian.org/debian bullseye/main amd64 grub2-common amd64 2.06-3~deb11u6 [611 kB] Get:78 http://httpredir.debian.org/debian bullseye/main amd64 grub-pc-bin amd64 2.06-3~deb11u6 [993 kB] Get:79 http://httpredir.debian.org/debian bullseye/main amd64 grub-common amd64 2.06-3~deb11u6 [2,767 kB] Get:80 http://httpredir.debian.org/debian bullseye/main amd64 libcurl3-gnutls amd64 7.74.0-1.3+deb11u13 [344 kB] Get:81 http://httpredir.debian.org/debian bullseye/main amd64 libglib2.0-data all 2.66.8-1+deb11u4 [1,178 kB] Get:82 http://httpredir.debian.org/debian bullseye/main amd64 linux-image-5.10.0-32-amd64 amd64 5.10.223-1 [55.7 MB] Get:83 http://httpredir.debian.org/debian bullseye/main amd64 linux-image-amd64 amd64 5.10.223-1 [1,484 B] Get:84 http://httpredir.debian.org/debian bullseye/main amd64 net-tools amd64 1.60+git20181103.0eebece-1+deb11u1 [250 kB] Get:85 http://httpredir.debian.org/debian bullseye/main amd64 nfs-common amd64 1:1.3.4-6+deb11u1 [232 kB] Get:86 http://httpredir.debian.org/debian bullseye/main amd64 openssl amd64 1.1.1w-0+deb11u1 [859 kB] Get:87 http://httpredir.debian.org/debian bullseye/main amd64 python3-idna all 2.10-1+deb11u1 [39.0 kB] Get:88 http://httpredir.debian.org/debian bullseye/main amd64 util-linux-locales all 2.36.1-8+deb11u2 [1,192 kB] Get:89 http://httpredir.debian.org/debian bullseye/main amd64 wpasupplicant amd64 2:2.9.0-21+deb11u2 [1,285 kB] Fetched 113 MB in 1min 30s (1,258 kB/s) apt-listchanges: Reading changelogs... Extracting templates from packages: 100% Preconfiguring packages ... (Reading database ... 29749 files and directories currently installed.) Preparing to unpack .../base-files_11.1+deb11u11_amd64.deb ... Unpacking base-files (11.1+deb11u11) over (11.1+deb11u7) ... Setting up base-files (11.1+deb11u11) ... Installing new version of config file /etc/debian_version ... (Reading database ... 29749 files and directories currently installed.) Preparing to unpack .../bsdutils_1%3a2.36.1-8+deb11u2_amd64.deb ... Unpacking bsdutils (1:2.36.1-8+deb11u2) over (1:2.36.1-8+deb11u1) ... Setting up bsdutils (1:2.36.1-8+deb11u2) ... (Reading database ... 29749 files and directories currently installed.) Preparing to unpack .../tar_1.34+dfsg-1+deb11u1_amd64.deb ... Unpacking tar (1.34+dfsg-1+deb11u1) over (1.34+dfsg-1) ... Setting up tar (1.34+dfsg-1+deb11u1) ... (Reading database ... 29749 files and directories currently installed.) Preparing to unpack .../dpkg_1.20.13_amd64.deb ... Unpacking dpkg (1.20.13) over (1.20.12) ... Setting up dpkg (1.20.13) ... (Reading database ... 29749 files and directories currently installed.) Preparing to unpack .../ncurses-bin_6.2+20201114-2+deb11u2_amd64.deb ... Unpacking ncurses-bin (6.2+20201114-2+deb11u2) over (6.2+20201114-2+deb11u1) ... Setting up ncurses-bin (6.2+20201114-2+deb11u2) ... (Reading database ... 29749 files and directories currently installed.) Preparing to unpack .../libperl5.32_5.32.1-4+deb11u3_amd64.deb ... Unpacking libperl5.32:amd64 (5.32.1-4+deb11u3) over (5.32.1-4+deb11u2) ... Preparing to unpack .../perl_5.32.1-4+deb11u3_amd64.deb ... Unpacking perl (5.32.1-4+deb11u3) over (5.32.1-4+deb11u2) ... Preparing to unpack .../perl-base_5.32.1-4+deb11u3_amd64.deb ... Unpacking perl-base (5.32.1-4+deb11u3) over (5.32.1-4+deb11u2) ... Setting up perl-base (5.32.1-4+deb11u3) ... (Reading database ... 29749 files and directories currently installed.) Preparing to unpack .../perl-modules-5.32_5.32.1-4+deb11u3_all.deb ... Unpacking perl-modules-5.32 (5.32.1-4+deb11u3) over (5.32.1-4+deb11u2) ... Preparing to unpack .../libc6_2.31-13+deb11u11_amd64.deb ... Unpacking libc6:amd64 (2.31-13+deb11u11) over (2.31-13+deb11u6) ... Setting up libc6:amd64 (2.31-13+deb11u11) ... (Reading database ... 29749 files and directories currently installed.) Preparing to unpack .../libblkid1_2.36.1-8+deb11u2_amd64.deb ... Unpacking libblkid1:amd64 (2.36.1-8+deb11u2) over (2.36.1-8+deb11u1) ... Setting up libblkid1:amd64 (2.36.1-8+deb11u2) ... (Reading database ... 29749 files and directories currently installed.) Preparing to unpack .../libuuid1_2.36.1-8+deb11u2_amd64.deb ... Unpacking libuuid1:amd64 (2.36.1-8+deb11u2) over (2.36.1-8+deb11u1) ... Setting up libuuid1:amd64 (2.36.1-8+deb11u2) ... (Reading database ... 29749 files and directories currently installed.) Preparing to unpack .../libfdisk1_2.36.1-8+deb11u2_amd64.deb ... Unpacking libfdisk1:amd64 (2.36.1-8+deb11u2) over (2.36.1-8+deb11u1) ... Preparing to unpack .../libmount1_2.36.1-8+deb11u2_amd64.deb ... Unpacking libmount1:amd64 (2.36.1-8+deb11u2) over (2.36.1-8+deb11u1) ... Setting up libmount1:amd64 (2.36.1-8+deb11u2) ... (Reading database ... 29749 files and directories currently installed.) Preparing to unpack .../libncurses6_6.2+20201114-2+deb11u2_amd64.deb ... Unpacking libncurses6:amd64 (6.2+20201114-2+deb11u2) over (6.2+20201114-2+deb11u1) ... Preparing to unpack .../libncursesw6_6.2+20201114-2+deb11u2_amd64.deb ... Unpacking libncursesw6:amd64 (6.2+20201114-2+deb11u2) over (6.2+20201114-2+deb11u1) ... Preparing to unpack .../libtinfo6_6.2+20201114-2+deb11u2_amd64.deb ... Unpacking libtinfo6:amd64 (6.2+20201114-2+deb11u2) over (6.2+20201114-2+deb11u1) ... Setting up libtinfo6:amd64 (6.2+20201114-2+deb11u2) ... (Reading database ... 29749 files and directories currently installed.) Preparing to unpack .../libsmartcols1_2.36.1-8+deb11u2_amd64.deb ... Unpacking libsmartcols1:amd64 (2.36.1-8+deb11u2) over (2.36.1-8+deb11u1) ... Setting up libsmartcols1:amd64 (2.36.1-8+deb11u2) ... (Reading database ... 29749 files and directories currently installed.) Preparing to unpack .../fdisk_2.36.1-8+deb11u2_amd64.deb ... Unpacking fdisk (2.36.1-8+deb11u2) over (2.36.1-8+deb11u1) ... Preparing to unpack .../util-linux_2.36.1-8+deb11u2_amd64.deb ... Unpacking util-linux (2.36.1-8+deb11u2) over (2.36.1-8+deb11u1) ... Setting up util-linux (2.36.1-8+deb11u2) ... fstrim.service is a disabled or a static unit not running, not starting it. (Reading database ... 29749 files and directories currently installed.) Preparing to unpack .../libc-bin_2.31-13+deb11u11_amd64.deb ... Unpacking libc-bin (2.31-13+deb11u11) over (2.31-13+deb11u6) ... Setting up libc-bin (2.31-13+deb11u11) ... (Reading database ... 29749 files and directories currently installed.) Preparing to unpack .../ncurses-base_6.2+20201114-2+deb11u2_all.deb ... Unpacking ncurses-base (6.2+20201114-2+deb11u2) over (6.2+20201114-2+deb11u1) ... Setting up ncurses-base (6.2+20201114-2+deb11u2) ... (Reading database ... 29749 files and directories currently installed.) Preparing to unpack .../bluez_5.55-3.1+deb11u2_amd64.deb ... Unpacking bluez (5.55-3.1+deb11u2) over (5.55-3.1) ... Preparing to unpack .../libsystemd0_247.3-7+deb11u6_amd64.deb ... Unpacking libsystemd0:amd64 (247.3-7+deb11u6) over (247.3-7+deb11u4) ... Setting up libsystemd0:amd64 (247.3-7+deb11u6) ... (Reading database ... 29749 files and directories currently installed.) Preparing to unpack .../0-systemd-timesyncd_247.3-7+deb11u6_amd64.deb ... Unpacking systemd-timesyncd (247.3-7+deb11u6) over (247.3-7+deb11u4) ... Preparing to unpack .../1-libpam-systemd_247.3-7+deb11u6_amd64.deb ... Unpacking libpam-systemd:amd64 (247.3-7+deb11u6) over (247.3-7+deb11u4) ... Preparing to unpack .../2-libnss-systemd_247.3-7+deb11u6_amd64.deb ... Unpacking libnss-systemd:amd64 (247.3-7+deb11u6) over (247.3-7+deb11u4) ... Preparing to unpack .../3-systemd_247.3-7+deb11u6_amd64.deb ... Unpacking systemd (247.3-7+deb11u6) over (247.3-7+deb11u4) ... Preparing to unpack .../4-udev_247.3-7+deb11u6_amd64.deb ... Unpacking udev (247.3-7+deb11u6) over (247.3-7+deb11u4) ... Preparing to unpack .../5-libudev1_247.3-7+deb11u6_amd64.deb ... Unpacking libudev1:amd64 (247.3-7+deb11u6) over (247.3-7+deb11u4) ... Setting up libudev1:amd64 (247.3-7+deb11u6) ... (Reading database ... 29749 files and directories currently installed.) Preparing to unpack .../adduser_3.118+deb11u1_all.deb ... Unpacking adduser (3.118+deb11u1) over (3.118) ... Setting up adduser (3.118+deb11u1) ... (Reading database ... 29749 files and directories currently installed.) Preparing to unpack .../libdbus-1-3_1.12.28-0+deb11u1_amd64.deb ... Unpacking libdbus-1-3:amd64 (1.12.28-0+deb11u1) over (1.12.24-0+deb11u1) ... Preparing to unpack .../dbus_1.12.28-0+deb11u1_amd64.deb ... Unpacking dbus (1.12.28-0+deb11u1) over (1.12.24-0+deb11u1) ... Preparing to unpack .../libglib2.0-0_2.66.8-1+deb11u4_amd64.deb ... Unpacking libglib2.0-0:amd64 (2.66.8-1+deb11u4) over (2.66.8-1) ... Setting up systemd (247.3-7+deb11u6) ... (Reading database ... 29749 files and directories currently installed.) Preparing to unpack .../systemd-sysv_247.3-7+deb11u6_amd64.deb ... Unpacking systemd-sysv (247.3-7+deb11u6) over (247.3-7+deb11u4) ... Preparing to unpack .../libgnutls30_3.7.1-5+deb11u6_amd64.deb ... Unpacking libgnutls30:amd64 (3.7.1-5+deb11u6) over (3.7.1-5+deb11u3) ... Setting up libgnutls30:amd64 (3.7.1-5+deb11u6) ... (Reading database ... 29749 files and directories currently installed.) Preparing to unpack .../0-mount_2.36.1-8+deb11u2_amd64.deb ... Unpacking mount (2.36.1-8+deb11u2) over (2.36.1-8+deb11u1) ... Preparing to unpack .../1-nftables_0.9.8-3.1+deb11u2_amd64.deb ... Unpacking nftables (0.9.8-3.1+deb11u2) over (0.9.8-3.1+deb11u1) ... Preparing to unpack .../2-libnftables1_0.9.8-3.1+deb11u2_amd64.deb ... Unpacking libnftables1:amd64 (0.9.8-3.1+deb11u2) over (0.9.8-3.1+deb11u1) ... Preparing to unpack .../3-bsdextrautils_2.36.1-8+deb11u2_amd64.deb ... Unpacking bsdextrautils (2.36.1-8+deb11u2) over (2.36.1-8+deb11u1) ... Preparing to unpack .../4-libbsd0_0.11.3-1+deb11u1_amd64.deb ... Unpacking libbsd0:amd64 (0.11.3-1+deb11u1) over (0.11.3-1) ... Preparing to unpack .../5-libwbclient0_2%3a4.13.13+dfsg-1~deb11u6_amd64.deb ... Unpacking libwbclient0:amd64 (2:4.13.13+dfsg-1~deb11u6) over (2:4.13.13+dfsg-1~deb11u5) ... Preparing to unpack .../6-libk5crypto3_1.18.3-6+deb11u5_amd64.deb ... Unpacking libk5crypto3:amd64 (1.18.3-6+deb11u5) over (1.18.3-6+deb11u3) ... Setting up libk5crypto3:amd64 (1.18.3-6+deb11u5) ... (Reading database ... 29749 files and directories currently installed.) Preparing to unpack .../libkrb5support0_1.18.3-6+deb11u5_amd64.deb ... Unpacking libkrb5support0:amd64 (1.18.3-6+deb11u5) over (1.18.3-6+deb11u3) ... Setting up libkrb5support0:amd64 (1.18.3-6+deb11u5) ... (Reading database ... 29749 files and directories currently installed.) Preparing to unpack .../libkrb5-3_1.18.3-6+deb11u5_amd64.deb ... Unpacking libkrb5-3:amd64 (1.18.3-6+deb11u5) over (1.18.3-6+deb11u3) ... Setting up libkrb5-3:amd64 (1.18.3-6+deb11u5) ... (Reading database ... 29749 files and directories currently installed.) Preparing to unpack .../libgssapi-krb5-2_1.18.3-6+deb11u5_amd64.deb ... Unpacking libgssapi-krb5-2:amd64 (1.18.3-6+deb11u5) over (1.18.3-6+deb11u3) ... Setting up libgssapi-krb5-2:amd64 (1.18.3-6+deb11u5) ... (Reading database ... 29749 files and directories currently installed.) Preparing to unpack .../libssl1.1_1.1.1w-0+deb11u1_amd64.deb ... Unpacking libssl1.1:amd64 (1.1.1w-0+deb11u1) over (1.1.1n-0+deb11u5) ... Setting up libssl1.1:amd64 (1.1.1w-0+deb11u1) ... (Reading database ... 29749 files and directories currently installed.) Preparing to unpack .../00-tzdata_2024a-0+deb11u1_all.deb ... Unpacking tzdata (2024a-0+deb11u1) over (2021a-1+deb11u10) ... Preparing to unpack .../01-cpio_2.13+dfsg-7.1~deb11u1_amd64.deb ... Unpacking cpio (2.13+dfsg-7.1~deb11u1) over (2.13+dfsg-4) ... Preparing to unpack .../02-less_551-2+deb11u2_amd64.deb ... Unpacking less (551-2+deb11u2) over (551-2) ... Preparing to unpack .../03-logrotate_3.18.0-2+deb11u2_amd64.deb ... Unpacking logrotate (3.18.0-2+deb11u2) over (3.18.0-2+deb11u1) ... Preparing to unpack .../04-nano_5.4-2+deb11u3_amd64.deb ... Unpacking nano (5.4-2+deb11u3) over (5.4-2+deb11u2) ... Preparing to unpack .../05-libuv1_1.40.0-2+deb11u1_amd64.deb ... Unpacking libuv1:amd64 (1.40.0-2+deb11u1) over (1.40.0-2) ... Preparing to unpack .../06-libxml2_2.9.10+dfsg-6.7+deb11u5_amd64.deb ... Unpacking libxml2:amd64 (2.9.10+dfsg-6.7+deb11u5) over (2.9.10+dfsg-6.7+deb11u4) ... Preparing to unpack .../07-bind9-dnsutils_1%3a9.16.50-1~deb11u2_amd64.deb ... Unpacking bind9-dnsutils (1:9.16.50-1~deb11u2) over (1:9.16.42-1~deb11u1) ... Preparing to unpack .../08-bind9-libs_1%3a9.16.50-1~deb11u2_amd64.deb ... Unpacking bind9-libs:amd64 (1:9.16.50-1~deb11u2) over (1:9.16.42-1~deb11u1) ... Preparing to unpack .../09-bind9-host_1%3a9.16.50-1~deb11u2_amd64.deb ... Unpacking bind9-host (1:9.16.50-1~deb11u2) over (1:9.16.42-1~deb11u1) ... Preparing to unpack .../10-krb5-locales_1.18.3-6+deb11u5_all.deb ... Unpacking krb5-locales (1.18.3-6+deb11u5) over (1.18.3-6+deb11u3) ... Preparing to unpack .../11-libc-l10n_2.31-13+deb11u11_all.deb ... Unpacking libc-l10n (2.31-13+deb11u11) over (2.31-13+deb11u6) ... Preparing to unpack .../12-locales_2.31-13+deb11u11_all.deb ... Unpacking locales (2.31-13+deb11u11) over (2.31-13+deb11u6) ... Preparing to unpack .../13-ncurses-term_6.2+20201114-2+deb11u2_all.deb ... Unpacking ncurses-term (6.2+20201114-2+deb11u2) over (6.2+20201114-2+deb11u1) ... Preparing to unpack .../14-openssh-sftp-server_1%3a8.4p1-5+deb11u3_amd64.deb ... Unpacking openssh-sftp-server (1:8.4p1-5+deb11u3) over (1:8.4p1-5+deb11u1) ... Preparing to unpack .../15-openssh-server_1%3a8.4p1-5+deb11u3_amd64.deb ... Unpacking openssh-server (1:8.4p1-5+deb11u3) over (1:8.4p1-5+deb11u1) ... Preparing to unpack .../16-openssh-client_1%3a8.4p1-5+deb11u3_amd64.deb ... Unpacking openssh-client (1:8.4p1-5+deb11u3) over (1:8.4p1-5+deb11u1) ... Preparing to unpack .../17-reportbug_7.10.3+deb11u2_all.deb ... Unpacking reportbug (7.10.3+deb11u2) over (7.10.3+deb11u1) ... Preparing to unpack .../18-python3-reportbug_7.10.3+deb11u2_all.deb ... Unpacking python3-reportbug (7.10.3+deb11u2) over (7.10.3+deb11u1) ... Preparing to unpack .../19-bluetooth_5.55-3.1+deb11u2_all.deb ... Unpacking bluetooth (5.55-3.1+deb11u2) over (5.55-3.1) ... Preparing to unpack .../20-cifs-utils_2%3a6.11-3.1+deb11u2_amd64.deb ... Unpacking cifs-utils (2:6.11-3.1+deb11u2) over (2:6.11-3.1+deb11u1) ... Preparing to unpack .../21-libnghttp2-14_1.43.0-1+deb11u1_amd64.deb ... Unpacking libnghttp2-14:amd64 (1.43.0-1+deb11u1) over (1.43.0-1) ... Preparing to unpack .../22-libssh2-1_1.9.0-2+deb11u1_amd64.deb ... Unpacking libssh2-1:amd64 (1.9.0-2+deb11u1) over (1.9.0-2) ... Preparing to unpack .../23-curl_7.74.0-1.3+deb11u13_amd64.deb ... Unpacking curl (7.74.0-1.3+deb11u13) over (7.74.0-1.3+deb11u7) ... Preparing to unpack .../24-libcurl4_7.74.0-1.3+deb11u13_amd64.deb ... Unpacking libcurl4:amd64 (7.74.0-1.3+deb11u13) over (7.74.0-1.3+deb11u7) ... Preparing to unpack .../25-distro-info-data_0.51+deb11u6_all.deb ... Unpacking distro-info-data (0.51+deb11u6) over (0.51+deb11u3) ... Preparing to unpack .../26-eject_2.36.1-8+deb11u2_amd64.deb ... Unpacking eject (2.36.1-8+deb11u2) over (2.36.1-8+deb11u1) ... Preparing to unpack .../27-grub-pc_2.06-3~deb11u6_amd64.deb ... Unpacking grub-pc (2.06-3~deb11u6) over (2.06-3~deb11u5) ... Preparing to unpack .../28-grub2-common_2.06-3~deb11u6_amd64.deb ... Unpacking grub2-common (2.06-3~deb11u6) over (2.06-3~deb11u5) ... Preparing to unpack .../29-grub-pc-bin_2.06-3~deb11u6_amd64.deb ... Unpacking grub-pc-bin (2.06-3~deb11u6) over (2.06-3~deb11u5) ... Preparing to unpack .../30-grub-common_2.06-3~deb11u6_amd64.deb ... Unpacking grub-common (2.06-3~deb11u6) over (2.06-3~deb11u5) ... Preparing to unpack .../31-libcurl3-gnutls_7.74.0-1.3+deb11u13_amd64.deb ... Unpacking libcurl3-gnutls:amd64 (7.74.0-1.3+deb11u13) over (7.74.0-1.3+deb11u7) ... Preparing to unpack .../32-libglib2.0-data_2.66.8-1+deb11u4_all.deb ... Unpacking libglib2.0-data (2.66.8-1+deb11u4) over (2.66.8-1) ... Selecting previously unselected package linux-image-5.10.0-32-amd64. Preparing to unpack .../33-linux-image-5.10.0-32-amd64_5.10.223-1_amd64.deb ... Unpacking linux-image-5.10.0-32-amd64 (5.10.223-1) ... Preparing to unpack .../34-linux-image-amd64_5.10.223-1_amd64.deb ... Unpacking linux-image-amd64 (5.10.223-1) over (5.10.191-1) ... Preparing to unpack .../35-net-tools_1.60+git20181103.0eebece-1+deb11u1_amd64.deb ... Unpacking net-tools (1.60+git20181103.0eebece-1+deb11u1) over (1.60+git20181103.0eebece-1) ... Preparing to unpack .../36-nfs-common_1%3a1.3.4-6+deb11u1_amd64.deb ... Unpacking nfs-common (1:1.3.4-6+deb11u1) over (1:1.3.4-6) ... Preparing to unpack .../37-openssl_1.1.1w-0+deb11u1_amd64.deb ... Unpacking openssl (1.1.1w-0+deb11u1) over (1.1.1n-0+deb11u5) ... Preparing to unpack .../38-python3-idna_2.10-1+deb11u1_all.deb ... Unpacking python3-idna (2.10-1+deb11u1) over (2.10-1) ... Preparing to unpack .../39-python3-pkg-resources_52.0.0-4+deb11u1_all.deb ... Unpacking python3-pkg-resources (52.0.0-4+deb11u1) over (52.0.0-4) ... Preparing to unpack .../40-util-linux-locales_2.36.1-8+deb11u2_all.deb ... Unpacking util-linux-locales (2.36.1-8+deb11u2) over (2.36.1-8+deb11u1) ... Preparing to unpack .../41-wpasupplicant_2%3a2.9.0-21+deb11u2_amd64.deb ... Unpacking wpasupplicant (2:2.9.0-21+deb11u2) over (2:2.9.0-21) ... Setting up python3-pkg-resources (52.0.0-4+deb11u1) ... Setting up logrotate (3.18.0-2+deb11u2) ... logrotate.service is a disabled or a static unit not running, not starting it. Setting up cpio (2.13+dfsg-7.1~deb11u1) ... Setting up systemd-sysv (247.3-7+deb11u6) ... Setting up net-tools (1.60+git20181103.0eebece-1+deb11u1) ... Setting up libc-l10n (2.31-13+deb11u11) ... Setting up libnftables1:amd64 (0.9.8-3.1+deb11u2) ... Setting up nftables (0.9.8-3.1+deb11u2) ... Setting up bsdextrautils (2.36.1-8+deb11u2) ... Setting up libglib2.0-0:amd64 (2.66.8-1+deb11u4) ... No schema files found: doing nothing. Setting up distro-info-data (0.51+deb11u6) ... Setting up openssh-client (1:8.4p1-5+deb11u3) ... Setting up perl-modules-5.32 (5.32.1-4+deb11u3) ... Setting up libnghttp2-14:amd64 (1.43.0-1+deb11u1) ... Setting up less (551-2+deb11u2) ... Setting up libnss-systemd:amd64 (247.3-7+deb11u6) ... Setting up krb5-locales (1.18.3-6+deb11u5) ... Setting up locales (2.31-13+deb11u11) ... Generating locales (this might take a while)... en_US.UTF-8... done Generation complete. Setting up nfs-common (1:1.3.4-6+deb11u1) ... nfs-utils.service is a disabled or a static unit not running, not starting it. Setting up tzdata (2024a-0+deb11u1) ... Current default time zone: 'Etc/UTC' Local time is now: Sun Sep 15 06:43:11 UTC 2024. Universal Time is now: Sun Sep 15 06:43:11 UTC 2024. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up eject (2.36.1-8+deb11u2) ... Setting up grub-common (2.06-3~deb11u6) ... Setting up libglib2.0-data (2.66.8-1+deb11u4) ... Setting up libuv1:amd64 (1.40.0-2+deb11u1) ... Setting up libncurses6:amd64 (6.2+20201114-2+deb11u2) ... Setting up libdbus-1-3:amd64 (1.12.28-0+deb11u1) ... Setting up dbus (1.12.28-0+deb11u1) ... A reboot is required to replace the running dbus-daemon. Please reboot the system when convenient. dbus.service is a disabled or a static unit, not starting it. dbus.socket is a disabled or a static unit, not starting it. Setting up systemd-timesyncd (247.3-7+deb11u6) ... Setting up udev (247.3-7+deb11u6) ... Setting up python3-idna (2.10-1+deb11u1) ... Setting up libncursesw6:amd64 (6.2+20201114-2+deb11u2) ... Setting up linux-image-5.10.0-32-amd64 (5.10.223-1) ... I: /vmlinuz is now a symlink to boot/vmlinuz-5.10.0-32-amd64 I: /initrd.img is now a symlink to boot/initrd.img-5.10.0-32-amd64 /etc/kernel/postinst.d/dkms: dkms: WARNING: Linux headers are missing, which may explain the above failures. please install the linux-headers-5.10.0-32-amd64 package to fix this. /etc/kernel/postinst.d/initramfs-tools: update-initramfs: Generating /boot/initrd.img-5.10.0-32-amd64 /etc/kernel/postinst.d/zz-update-grub: Generating grub configuration file ... Found linux image: /boot/vmlinuz-5.10.0-32-amd64 Found initrd image: /boot/initrd.img-5.10.0-32-amd64 Found linux image: /boot/vmlinuz-5.10.0-25-amd64 Found initrd image: /boot/initrd.img-5.10.0-25-amd64 Warning: os-prober will be executed to detect other bootable partitions. Its output will be used to detect bootable binaries on them and create new boot entries. done Setting up libperl5.32:amd64 (5.32.1-4+deb11u3) ... Setting up libfdisk1:amd64 (2.36.1-8+deb11u2) ... Setting up nano (5.4-2+deb11u3) ... Setting up mount (2.36.1-8+deb11u2) ... Setting up libpam-systemd:amd64 (247.3-7+deb11u6) ... Setting up libssh2-1:amd64 (1.9.0-2+deb11u1) ... Setting up util-linux-locales (2.36.1-8+deb11u2) ... Setting up python3-reportbug (7.10.3+deb11u2) ... Setting up openssl (1.1.1w-0+deb11u1) ... Setting up libbsd0:amd64 (0.11.3-1+deb11u1) ... Setting up libxml2:amd64 (2.9.10+dfsg-6.7+deb11u5) ... Setting up ncurses-term (6.2+20201114-2+deb11u2) ... Setting up openssh-sftp-server (1:8.4p1-5+deb11u3) ... Setting up openssh-server (1:8.4p1-5+deb11u3) ... rescue-ssh.target is a disabled or a static unit, not starting it. Setting up bind9-libs:amd64 (1:9.16.50-1~deb11u2) ... Setting up grub2-common (2.06-3~deb11u6) ... Setting up libcurl3-gnutls:amd64 (7.74.0-1.3+deb11u13) ... Setting up reportbug (7.10.3+deb11u2) ... Setting up linux-image-amd64 (5.10.223-1) ... Setting up grub-pc-bin (2.06-3~deb11u6) ... Setting up libwbclient0:amd64 (2:4.13.13+dfsg-1~deb11u6) ... Setting up fdisk (2.36.1-8+deb11u2) ... Setting up grub-pc (2.06-3~deb11u6) ... Installing for i386-pc platform. Installation finished. No error reported. Generating grub configuration file ... Found linux image: /boot/vmlinuz-5.10.0-32-amd64 Found initrd image: /boot/initrd.img-5.10.0-32-amd64 Found linux image: /boot/vmlinuz-5.10.0-25-amd64 Found initrd image: /boot/initrd.img-5.10.0-25-amd64 Warning: os-prober will be executed to detect other bootable partitions. Its output will be used to detect bootable binaries on them and create new boot entries. done Setting up wpasupplicant (2:2.9.0-21+deb11u2) ... Setting up bluez (5.55-3.1+deb11u2) ... Installing new version of config file /etc/bluetooth/input.conf ... Setting up perl (5.32.1-4+deb11u3) ... Setting up libcurl4:amd64 (7.74.0-1.3+deb11u13) ... Setting up curl (7.74.0-1.3+deb11u13) ... Setting up bind9-host (1:9.16.50-1~deb11u2) ... Setting up bluetooth (5.55-3.1+deb11u2) ... Setting up cifs-utils (2:6.11-3.1+deb11u2) ... Setting up bind9-dnsutils (1:9.16.50-1~deb11u2) ... Processing triggers for initramfs-tools (0.140) ... update-initramfs: Generating /boot/initrd.img-5.10.0-32-amd64 Processing triggers for libc-bin (2.31-13+deb11u11) ... Processing triggers for man-db (2.9.4-2) ... Processing triggers for mailcap (3.69) ... vagrant@debian-11:~$
完了前に grub の設定画面が表示された。
/dev/sda を選択して OK を選択。
grub の設定実施後少しして upgrade が終了した。
DB のインストール
- MariaDB をインストール
sudo apt -y install mariadb-server
vagrant@debian-11:~$ sudo apt -y install mariadb-server Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: galera-4 gawk libcgi-fast-perl libcgi-pm-perl libclone-perl libconfig-inifiles-perl libdbd-mariadb-perl libdbi-perl libencode-locale-perl libfcgi-bin libfcgi-perl libfcgi0ldbl libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl libhttp-date-perl libhttp-message-perl libio-html-perl liblwp-mediatypes-perl libmariadb3 libmpfr6 libsigsegv2 libsnappy1v5 libterm-readkey-perl libtimedate-perl liburi-perl mariadb-client-10.5 mariadb-client-core-10.5 mariadb-common mariadb-server-10.5 mariadb-server-core-10.5 mysql-common psmisc socat Suggested packages: gawk-doc libmldbm-perl libnet-daemon-perl libsql-statement-perl libdata-dump-perl libipc-sharedcache-perl libwww-perl mailx mariadb-test netcat-openbsd The following NEW packages will be installed: galera-4 gawk libcgi-fast-perl libcgi-pm-perl libclone-perl libconfig-inifiles-perl libdbd-mariadb-perl libdbi-perl libencode-locale-perl libfcgi-bin libfcgi-perl libfcgi0ldbl libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl libhttp-date-perl libhttp-message-perl libio-html-perl liblwp-mediatypes-perl libmariadb3 libmpfr6 libsigsegv2 libsnappy1v5 libterm-readkey-perl libtimedate-perl liburi-perl mariadb-client-10.5 mariadb-client-core-10.5 mariadb-common mariadb-server mariadb-server-10.5 mariadb-server-core-10.5 mysql-common psmisc socat 0 upgraded, 35 newly installed, 0 to remove and 0 not upgraded. Need to get 17.5 MB/19.5 MB of archives. After this operation, 163 MB of additional disk space will be used. Get:1 http://httpredir.debian.org/debian bullseye/main amd64 libsigsegv2 amd64 2.13-1 [34.8 kB] Get:2 http://httpredir.debian.org/debian bullseye/main amd64 gawk amd64 1:5.1.0-1 [605 kB] Get:3 http://httpredir.debian.org/debian bullseye/main amd64 mysql-common all 5.8+1.0.7 [7,464 B] Get:4 http://httpredir.debian.org/debian bullseye/main amd64 mariadb-common all 1:10.5.23-0+deb11u1 [37.2 kB] Get:5 http://httpredir.debian.org/debian bullseye/main amd64 galera-4 amd64 26.4.18-0+deb11u1 [820 kB] Get:6 http://httpredir.debian.org/debian bullseye/main amd64 libdbi-perl amd64 1.643-3+b1 [780 kB] Get:7 http://httpredir.debian.org/debian bullseye/main amd64 libconfig-inifiles-perl all 3.000003-1 [52.1 kB] Get:8 http://httpredir.debian.org/debian bullseye/main amd64 libmariadb3 amd64 1:10.5.23-0+deb11u1 [176 kB] Get:9 http://httpredir.debian.org/debian bullseye/main amd64 mariadb-client-core-10.5 amd64 1:10.5.23-0+deb11u1 [785 kB] Get:10 http://httpredir.debian.org/debian bullseye/main amd64 mariadb-client-10.5 amd64 1:10.5.23-0+deb11u1 [1,508 kB] Get:11 http://httpredir.debian.org/debian bullseye/main amd64 libsnappy1v5 amd64 1.1.8-1 [17.9 kB] Get:12 http://httpredir.debian.org/debian bullseye/main amd64 mariadb-server-core-10.5 amd64 1:10.5.23-0+deb11u1 [6,859 kB] Get:13 http://httpredir.debian.org/debian bullseye/main amd64 psmisc amd64 23.4-2 [198 kB] Get:14 http://httpredir.debian.org/debian bullseye/main amd64 socat amd64 1.7.4.1-3 [370 kB] Get:15 http://httpredir.debian.org/debian bullseye/main amd64 mariadb-server-10.5 amd64 1:10.5.23-0+deb11u1 [4,295 kB] Get:16 http://httpredir.debian.org/debian bullseye/main amd64 libhtml-tagset-perl all 3.20-4 [13.0 kB] Get:17 http://httpredir.debian.org/debian bullseye/main amd64 liburi-perl all 5.08-1 [90.6 kB] Get:18 http://httpredir.debian.org/debian bullseye/main amd64 libhtml-parser-perl amd64 3.75-1+b1 [105 kB] Get:19 http://httpredir.debian.org/debian bullseye/main amd64 libcgi-pm-perl all 4.51-1 [224 kB] Get:20 http://httpredir.debian.org/debian bullseye/main amd64 libfcgi0ldbl amd64 2.4.2-2 [26.1 kB] Get:21 http://httpredir.debian.org/debian bullseye/main amd64 libfcgi-perl amd64 0.79+ds-2 [27.6 kB] Get:22 http://httpredir.debian.org/debian bullseye/main amd64 libcgi-fast-perl all 1:2.15-1 [12.1 kB] Get:23 http://httpredir.debian.org/debian bullseye/main amd64 libclone-perl amd64 0.45-1+b1 [15.4 kB] Get:24 http://httpredir.debian.org/debian bullseye/main amd64 libdbd-mariadb-perl amd64 1.21-3 [110 kB] Get:25 http://httpredir.debian.org/debian bullseye/main amd64 libencode-locale-perl all 1.05-1.1 [13.2 kB] Get:26 http://httpredir.debian.org/debian bullseye/main amd64 libfcgi-bin amd64 2.4.2-2 [12.9 kB] Get:27 http://httpredir.debian.org/debian bullseye/main amd64 libhtml-template-perl all 2.97-1.1 [66.2 kB] Get:28 http://httpredir.debian.org/debian bullseye/main amd64 libtimedate-perl all 2.3300-2 [39.3 kB] Get:29 http://httpredir.debian.org/debian bullseye/main amd64 libhttp-date-perl all 6.05-1 [10.4 kB] Get:30 http://httpredir.debian.org/debian bullseye/main amd64 libio-html-perl all 1.004-2 [16.1 kB] Get:31 http://httpredir.debian.org/debian bullseye/main amd64 liblwp-mediatypes-perl all 6.04-1 [19.9 kB] Get:32 http://httpredir.debian.org/debian bullseye/main amd64 libhttp-message-perl all 6.28-1 [79.6 kB] Get:33 http://httpredir.debian.org/debian bullseye/main amd64 libterm-readkey-perl amd64 2.38-1+b2 [27.8 kB] Get:34 http://httpredir.debian.org/debian bullseye/main amd64 mariadb-server all 1:10.5.23-0+deb11u1 [35.8 kB] Fetched 17.5 MB in 22s (780 kB/s) Extracting templates from packages: 100% Preconfiguring packages ... Selecting previously unselected package libmpfr6:amd64. (Reading database ... 34513 files and directories currently installed.) Preparing to unpack .../libmpfr6_4.1.0-3_amd64.deb ... Unpacking libmpfr6:amd64 (4.1.0-3) ... Selecting previously unselected package libsigsegv2:amd64. Preparing to unpack .../libsigsegv2_2.13-1_amd64.deb ... Unpacking libsigsegv2:amd64 (2.13-1) ... Setting up libmpfr6:amd64 (4.1.0-3) ... Setting up libsigsegv2:amd64 (2.13-1) ... Selecting previously unselected package gawk. (Reading database ... 34533 files and directories currently installed.) Preparing to unpack .../00-gawk_1%3a5.1.0-1_amd64.deb ... Unpacking gawk (1:5.1.0-1) ... Selecting previously unselected package mysql-common. Preparing to unpack .../01-mysql-common_5.8+1.0.7_all.deb ... Unpacking mysql-common (5.8+1.0.7) ... Selecting previously unselected package mariadb-common. Preparing to unpack .../02-mariadb-common_1%3a10.5.23-0+deb11u1_all.deb ... Unpacking mariadb-common (1:10.5.23-0+deb11u1) ... Selecting previously unselected package galera-4. Preparing to unpack .../03-galera-4_26.4.18-0+deb11u1_amd64.deb ... Unpacking galera-4 (26.4.18-0+deb11u1) ... Selecting previously unselected package libdbi-perl:amd64. Preparing to unpack .../04-libdbi-perl_1.643-3+b1_amd64.deb ... Unpacking libdbi-perl:amd64 (1.643-3+b1) ... Selecting previously unselected package libconfig-inifiles-perl. Preparing to unpack .../05-libconfig-inifiles-perl_3.000003-1_all.deb ... Unpacking libconfig-inifiles-perl (3.000003-1) ... Selecting previously unselected package libmariadb3:amd64. Preparing to unpack .../06-libmariadb3_1%3a10.5.23-0+deb11u1_amd64.deb ... Unpacking libmariadb3:amd64 (1:10.5.23-0+deb11u1) ... Selecting previously unselected package mariadb-client-core-10.5. Preparing to unpack .../07-mariadb-client-core-10.5_1%3a10.5.23-0+deb11u1_amd64.deb ... Unpacking mariadb-client-core-10.5 (1:10.5.23-0+deb11u1) ... Selecting previously unselected package mariadb-client-10.5. Preparing to unpack .../08-mariadb-client-10.5_1%3a10.5.23-0+deb11u1_amd64.deb ... Unpacking mariadb-client-10.5 (1:10.5.23-0+deb11u1) ... Selecting previously unselected package libsnappy1v5:amd64. Preparing to unpack .../09-libsnappy1v5_1.1.8-1_amd64.deb ... Unpacking libsnappy1v5:amd64 (1.1.8-1) ... Selecting previously unselected package mariadb-server-core-10.5. Preparing to unpack .../10-mariadb-server-core-10.5_1%3a10.5.23-0+deb11u1_amd64.deb ... Unpacking mariadb-server-core-10.5 (1:10.5.23-0+deb11u1) ... Selecting previously unselected package psmisc. Preparing to unpack .../11-psmisc_23.4-2_amd64.deb ... Unpacking psmisc (23.4-2) ... Selecting previously unselected package socat. Preparing to unpack .../12-socat_1.7.4.1-3_amd64.deb ... Unpacking socat (1.7.4.1-3) ... Setting up mysql-common (5.8+1.0.7) ... update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode Setting up mariadb-common (1:10.5.23-0+deb11u1) ... update-alternatives: using /etc/mysql/mariadb.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode Selecting previously unselected package mariadb-server-10.5. (Reading database ... 35232 files and directories currently installed.) Preparing to unpack .../00-mariadb-server-10.5_1%3a10.5.23-0+deb11u1_amd64.deb ... Unpacking mariadb-server-10.5 (1:10.5.23-0+deb11u1) ... Selecting previously unselected package libhtml-tagset-perl. Preparing to unpack .../01-libhtml-tagset-perl_3.20-4_all.deb ... Unpacking libhtml-tagset-perl (3.20-4) ... Selecting previously unselected package liburi-perl. Preparing to unpack .../02-liburi-perl_5.08-1_all.deb ... Unpacking liburi-perl (5.08-1) ... Selecting previously unselected package libhtml-parser-perl. Preparing to unpack .../03-libhtml-parser-perl_3.75-1+b1_amd64.deb ... Unpacking libhtml-parser-perl (3.75-1+b1) ... Selecting previously unselected package libcgi-pm-perl. Preparing to unpack .../04-libcgi-pm-perl_4.51-1_all.deb ... Unpacking libcgi-pm-perl (4.51-1) ... Selecting previously unselected package libfcgi0ldbl:amd64. Preparing to unpack .../05-libfcgi0ldbl_2.4.2-2_amd64.deb ... Unpacking libfcgi0ldbl:amd64 (2.4.2-2) ... Selecting previously unselected package libfcgi-perl:amd64. Preparing to unpack .../06-libfcgi-perl_0.79+ds-2_amd64.deb ... Unpacking libfcgi-perl:amd64 (0.79+ds-2) ... Selecting previously unselected package libcgi-fast-perl. Preparing to unpack .../07-libcgi-fast-perl_1%3a2.15-1_all.deb ... Unpacking libcgi-fast-perl (1:2.15-1) ... Selecting previously unselected package libclone-perl. Preparing to unpack .../08-libclone-perl_0.45-1+b1_amd64.deb ... Unpacking libclone-perl (0.45-1+b1) ... Selecting previously unselected package libdbd-mariadb-perl. Preparing to unpack .../09-libdbd-mariadb-perl_1.21-3_amd64.deb ... Unpacking libdbd-mariadb-perl (1.21-3) ... Selecting previously unselected package libencode-locale-perl. Preparing to unpack .../10-libencode-locale-perl_1.05-1.1_all.deb ... Unpacking libencode-locale-perl (1.05-1.1) ... Selecting previously unselected package libfcgi-bin. Preparing to unpack .../11-libfcgi-bin_2.4.2-2_amd64.deb ... Unpacking libfcgi-bin (2.4.2-2) ... Selecting previously unselected package libhtml-template-perl. Preparing to unpack .../12-libhtml-template-perl_2.97-1.1_all.deb ... Unpacking libhtml-template-perl (2.97-1.1) ... Selecting previously unselected package libtimedate-perl. Preparing to unpack .../13-libtimedate-perl_2.3300-2_all.deb ... Unpacking libtimedate-perl (2.3300-2) ... Selecting previously unselected package libhttp-date-perl. Preparing to unpack .../14-libhttp-date-perl_6.05-1_all.deb ... Unpacking libhttp-date-perl (6.05-1) ... Selecting previously unselected package libio-html-perl. Preparing to unpack .../15-libio-html-perl_1.004-2_all.deb ... Unpacking libio-html-perl (1.004-2) ... Selecting previously unselected package liblwp-mediatypes-perl. Preparing to unpack .../16-liblwp-mediatypes-perl_6.04-1_all.deb ... Unpacking liblwp-mediatypes-perl (6.04-1) ... Selecting previously unselected package libhttp-message-perl. Preparing to unpack .../17-libhttp-message-perl_6.28-1_all.deb ... Unpacking libhttp-message-perl (6.28-1) ... Selecting previously unselected package libterm-readkey-perl. Preparing to unpack .../18-libterm-readkey-perl_2.38-1+b2_amd64.deb ... Unpacking libterm-readkey-perl (2.38-1+b2) ... Selecting previously unselected package mariadb-server. Preparing to unpack .../19-mariadb-server_1%3a10.5.23-0+deb11u1_all.deb ... Unpacking mariadb-server (1:10.5.23-0+deb11u1) ... Setting up libconfig-inifiles-perl (3.000003-1) ... Setting up galera-4 (26.4.18-0+deb11u1) ... Setting up libfcgi0ldbl:amd64 (2.4.2-2) ... Setting up gawk (1:5.1.0-1) ... Setting up psmisc (23.4-2) ... Setting up libclone-perl (0.45-1+b1) ... Setting up libhtml-tagset-perl (3.20-4) ... Setting up liblwp-mediatypes-perl (6.04-1) ... Setting up libfcgi-bin (2.4.2-2) ... Setting up libencode-locale-perl (1.05-1.1) ... Setting up libsnappy1v5:amd64 (1.1.8-1) ... Setting up socat (1.7.4.1-3) ... Setting up libio-html-perl (1.004-2) ... Setting up libmariadb3:amd64 (1:10.5.23-0+deb11u1) ... Setting up libtimedate-perl (2.3300-2) ... Setting up libfcgi-perl:amd64 (0.79+ds-2) ... Setting up libterm-readkey-perl (2.38-1+b2) ... Setting up liburi-perl (5.08-1) ... Setting up libdbi-perl:amd64 (1.643-3+b1) ... Setting up mariadb-server-core-10.5 (1:10.5.23-0+deb11u1) ... Setting up libhttp-date-perl (6.05-1) ... Setting up libdbd-mariadb-perl (1.21-3) ... Setting up mariadb-client-core-10.5 (1:10.5.23-0+deb11u1) ... Setting up mariadb-client-10.5 (1:10.5.23-0+deb11u1) ... Setting up libhtml-parser-perl (3.75-1+b1) ... Setting up libhttp-message-perl (6.28-1) ... Setting up libcgi-pm-perl (4.51-1) ... Setting up libhtml-template-perl (2.97-1.1) ... Setting up mariadb-server-10.5 (1:10.5.23-0+deb11u1) ... Created symlink /etc/systemd/system/multi-user.target.wants/mariadb.service → /lib/systemd/system/mariadb.service. Setting up mariadb-server (1:10.5.23-0+deb11u1) ... Setting up libcgi-fast-perl (1:2.15-1) ... Processing triggers for man-db (2.9.4-2) ... Processing triggers for libc-bin (2.31-13+deb11u11) ... vagrant@debian-11:~$
- 設定ファイルの確認
sudo cat /etc/mysql/mariadb.conf.d/50-server.cnf |grep character-set-server sudo cat /etc/mysql/mariadb.conf.d/50-server.cnf |grep collation-server
以下だったらOK character-set-server = utf8mb4 collation-server = utf8mb4_general_ci
- MySQL の再起動
sudo systemctl restart mariadb
- MySQL のセキュアインストレーション
sudo mysql_secure_installation
- Enter を押す (何も文字は入力しない)
- n を入力して Enter を押す
- y を入力して Enter を押す
New password:
と新しいパスワードを設定するように求められるので、ここではpassword
と入力して Enter キーを押すRe-enter new password:
を再度パスワードを求められるのでpassword
と入力して Enter キーを押す- n を入力して Enter を押す
- n を入力して Enter を押す
- n を入力して Enter を押す
- n を入力して Enter を押す
All done!
と表示されたら終了
vagrant@debian-11:~$ sudo mysql_secure_installation 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 haven't set the root password yet, you should just press enter here. Enter current password for root (enter for none): OK, successfully used password, moving on... Setting the root password or using the unix_socket ensures that nobody can log into the MariaDB root user without the proper authorisation. You already have your root account protected, so you can safely answer 'n'. Switch to unix_socket authentication [Y/n] n ... skipping. You already have your root account protected, so you can safely answer 'n'. Change the root password? [Y/n] y 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] n ... skipping. 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] n ... skipping. 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] n ... skipping. Reloading the privilege tables will ensure that all changes made so far will take effect immediately. Reload privilege tables now? [Y/n] n ... skipping. Cleaning up... All done! If you've completed all of the above steps, your MariaDB installation should now be secure. Thanks for using MariaDB! vagrant@debian-11:~$
sudo systemctl restart mysqld sudo systemctl enable mysqld
Zabbix プロキシのインストール
以下の公式の手順に従って Zabbix プロキシをインストール
- リポジトリの更新
wget https://repo.zabbix.com/zabbix/6.0/debian/pool/main/z/zabbix-release/zabbix-release_6.0-4+debian11_all.deb sudo dpkg -i zabbix-release_6.0-4+debian11_all.deb sudo apt update
vagrant@debian-11:~$ wget https://repo.zabbix.com/zabbix/6.0/debian/pool/main/z/zabbix-release/zabbix-release_6.0-4+debian11_all.deb --2024-09-15 13:10:56-- https://repo.zabbix.com/zabbix/6.0/debian/pool/main/z/zabbix-release/zabbix-release_6.0-4+debian11_all.deb Resolving repo.zabbix.com (repo.zabbix.com)... 178.128.6.101, 2604:a880:2:d0::2062:d001 Connecting to repo.zabbix.com (repo.zabbix.com)|178.128.6.101|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 3668 (3.6K) [application/octet-stream] Saving to: ‘zabbix-release_6.0-4+debian11_all.deb’ zabbix-release_6.0-4+debia 100%[======================================>] 3.58K --.-KB/s in 0s 2024-09-15 13:10:56 (55.8 MB/s) - ‘zabbix-release_6.0-4+debian11_all.deb’ saved [3668/3668] vagrant@debian-11:~$ vagrant@debian-11:~$ sudo dpkg -i zabbix-release_6.0-4+debian11_all.deb Selecting previously unselected package zabbix-release. (Reading database ... 35710 files and directories currently installed.) Preparing to unpack zabbix-release_6.0-4+debian11_all.deb ... Unpacking zabbix-release (1:6.0-4+debian11) ... Setting up zabbix-release (1:6.0-4+debian11) ... vagrant@debian-11:~$ vagrant@debian-11:~$ sudo apt update Hit:1 http://security.debian.org/debian-security bullseye-security InRelease Hit:2 http://httpredir.debian.org/debian bullseye InRelease Get:3 https://repo.zabbix.com/zabbix-agent2-plugins/1/debian bullseye InRelease [4,927 B] Hit:4 http://httpredir.debian.org/debian bullseye-updates InRelease Get:5 https://repo.zabbix.com/zabbix/6.0/debian bullseye InRelease [2,883 B] Get:6 https://repo.zabbix.com/zabbix-agent2-plugins/1/debian bullseye/main Sources [1,001 B] Get:7 https://repo.zabbix.com/zabbix-agent2-plugins/1/debian bullseye/main amd64 Packages [621 B] Get:8 https://repo.zabbix.com/zabbix/6.0/debian bullseye/main Sources [27.3 kB] Get:9 https://repo.zabbix.com/zabbix/6.0/debian bullseye/main all Packages [19.6 kB] Get:10 https://repo.zabbix.com/zabbix/6.0/debian bullseye/main amd64 Packages [94.9 kB] Fetched 151 kB in 1s (107 kB/s) Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. vagrant@debian-11:~$
- Zabbix プロキシのインストール
sudo apt install zabbix-proxy-mysql zabbix-sql-scripts
vagrant@debian-11:~$ sudo apt install zabbix-proxy-mysql zabbix-sql-scripts Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: fping libltdl7 libodbc1 libopenipmi0 libsensors-config libsensors5 libsnmp-base libsnmp40 libssh-4 Suggested packages: libmyodbc odbc-postgresql tdsodbc unixodbc-bin lm-sensors snmp-mibs-downloader The following NEW packages will be installed: fping libltdl7 libodbc1 libopenipmi0 libsensors-config libsensors5 libsnmp-base libsnmp40 libssh-4 zabbix-proxy-mysql zabbix-sql-scripts 0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded. Need to get 15.8 MB of archives. After this operation, 25.2 MB of additional disk space will be used. Do you want to continue? [Y/n] Get:1 https://repo.zabbix.com/zabbix/6.0/debian bullseye/main amd64 zabbix-proxy-mysql amd64 1:6.0.33-2+debian11 [1,430 kB] Get:2 http://httpredir.debian.org/debian bullseye/main amd64 fping amd64 5.0-1 [39.7 kB] Get:3 https://repo.zabbix.com/zabbix/6.0/debian bullseye/main all zabbix-sql-scripts all 1:6.0.33-2+debian11 [8,615 kB] Get:4 http://httpredir.debian.org/debian bullseye/main amd64 libltdl7 amd64 2.4.6-15 [391 kB] Get:5 http://httpredir.debian.org/debian bullseye/main amd64 libodbc1 amd64 2.3.6-0.1+b1 [224 kB] Get:6 http://httpredir.debian.org/debian bullseye/main amd64 libopenipmi0 amd64 2.0.29-0.1+b1 [550 kB] Get:7 http://httpredir.debian.org/debian bullseye/main amd64 libsensors-config all 1:3.6.0-7 [32.3 kB] Get:8 http://httpredir.debian.org/debian bullseye/main amd64 libsensors5 amd64 1:3.6.0-7 [52.3 kB] Get:9 http://httpredir.debian.org/debian bullseye/main amd64 libsnmp-base all 5.9+dfsg-4+deb11u1 [1,736 kB] Get:10 http://httpredir.debian.org/debian bullseye/main amd64 libsnmp40 amd64 5.9+dfsg-4+deb11u1 [2,551 kB] Get:11 http://httpredir.debian.org/debian bullseye/main amd64 libssh-4 amd64 0.9.8-0+deb11u1 [189 kB] Fetched 15.8 MB in 16s (1,018 kB/s) Selecting previously unselected package fping. (Reading database ... 35717 files and directories currently installed.) Preparing to unpack .../00-fping_5.0-1_amd64.deb ... Unpacking fping (5.0-1) ... Selecting previously unselected package libltdl7:amd64. Preparing to unpack .../01-libltdl7_2.4.6-15_amd64.deb ... Unpacking libltdl7:amd64 (2.4.6-15) ... Selecting previously unselected package libodbc1:amd64. Preparing to unpack .../02-libodbc1_2.3.6-0.1+b1_amd64.deb ... Unpacking libodbc1:amd64 (2.3.6-0.1+b1) ... Selecting previously unselected package libopenipmi0. Preparing to unpack .../03-libopenipmi0_2.0.29-0.1+b1_amd64.deb ... Unpacking libopenipmi0 (2.0.29-0.1+b1) ... Selecting previously unselected package libsensors-config. Preparing to unpack .../04-libsensors-config_1%3a3.6.0-7_all.deb ... Unpacking libsensors-config (1:3.6.0-7) ... Selecting previously unselected package libsensors5:amd64. Preparing to unpack .../05-libsensors5_1%3a3.6.0-7_amd64.deb ... Unpacking libsensors5:amd64 (1:3.6.0-7) ... Selecting previously unselected package libsnmp-base. Preparing to unpack .../06-libsnmp-base_5.9+dfsg-4+deb11u1_all.deb ... Unpacking libsnmp-base (5.9+dfsg-4+deb11u1) ... Selecting previously unselected package libsnmp40:amd64. Preparing to unpack .../07-libsnmp40_5.9+dfsg-4+deb11u1_amd64.deb ... Unpacking libsnmp40:amd64 (5.9+dfsg-4+deb11u1) ... Selecting previously unselected package libssh-4:amd64. Preparing to unpack .../08-libssh-4_0.9.8-0+deb11u1_amd64.deb ... Unpacking libssh-4:amd64 (0.9.8-0+deb11u1) ... Selecting previously unselected package zabbix-proxy-mysql. Preparing to unpack .../09-zabbix-proxy-mysql_1%3a6.0.33-2+debian11_amd64.deb ... Unpacking zabbix-proxy-mysql (1:6.0.33-2+debian11) ... Selecting previously unselected package zabbix-sql-scripts. Preparing to unpack .../10-zabbix-sql-scripts_1%3a6.0.33-2+debian11_all.deb ... Unpacking zabbix-sql-scripts (1:6.0.33-2+debian11) ... Setting up zabbix-sql-scripts (1:6.0.33-2+debian11) ... Setting up libsnmp-base (5.9+dfsg-4+deb11u1) ... Setting up libsensors-config (1:3.6.0-7) ... Setting up libsensors5:amd64 (1:3.6.0-7) ... Setting up libltdl7:amd64 (2.4.6-15) ... Setting up libssh-4:amd64 (0.9.8-0+deb11u1) ... Setting up libopenipmi0 (2.0.29-0.1+b1) ... Setting up fping (5.0-1) ... Setting up libsnmp40:amd64 (5.9+dfsg-4+deb11u1) ... Setting up libodbc1:amd64 (2.3.6-0.1+b1) ... Setting up zabbix-proxy-mysql (1:6.0.33-2+debian11) ... Processing triggers for man-db (2.9.4-2) ... Processing triggers for libc-bin (2.31-13+deb11u11) ... vagrant@debian-11:~$
- DB の作成
mysql -uroot -p password mysql> create database zabbix_proxy character set utf8mb4 collate utf8mb4_bin; mysql> create user zabbix@localhost identified by 'password'; mysql> grant all privileges on zabbix_proxy.* to zabbix@localhost; mysql> set global log_bin_trust_function_creators = 1; mysql> quit;
vagrant@debian-11:~$ mysql -uroot -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 30 Server version: 10.5.23-MariaDB-0+deb11u1 Debian 11 Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> MariaDB [(none)]> create database zabbix_proxy character set utf8mb4 collate utf8mb4_bin; Query OK, 1 row affected (0.000 sec) MariaDB [(none)]> MariaDB [(none)]> create user zabbix@localhost identified by 'password'; Query OK, 0 rows affected (0.006 sec) MariaDB [(none)]> MariaDB [(none)]> grant all privileges on zabbix_proxy.* to zabbix@localhost; Query OK, 0 rows affected (0.003 sec) MariaDB [(none)]> MariaDB [(none)]> set global log_bin_trust_function_creators = 1; Query OK, 0 rows affected (0.000 sec) MariaDB [(none)]> MariaDB [(none)]> quit; Bye vagrant@debian-11:~$
- スキーマの作成
- コマンド入力後の password は DB にログインするユーザーのパスワード
sudo cat /usr/share/zabbix-sql-scripts/mysql/proxy.sql | mysql --default-character-set=utf8mb4 -uzabbix -p zabbix_proxy password
vagrant@debian-11:~$ sudo cat /usr/share/zabbix-sql-scripts/mysql/proxy.sql | mysql --default-character-set=utf8mb4 -uzabbix -p zabbix_proxy Enter password: vagrant@debian-11:~$
- DB 設定
mysql -uroot -p password mysql> set global log_bin_trust_function_creators = 0; mysql> quit;
vagrant@debian-11:~$ mysql -uroot -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 32 Server version: 10.5.23-MariaDB-0+deb11u1 Debian 11 Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> MariaDB [(none)]> set global log_bin_trust_function_creators = 0; Query OK, 0 rows affected (0.000 sec) MariaDB [(none)]> MariaDB [(none)]> quit; Bye vagrant@debian-11:~$
- Zabbix プロキシ設定ファイルの設定
- Zabbix サーバーの IP アドレスに 192.168.0.100 を設定
- Hostname に PROXY01 を設定
- DBPassword に DB ログイン用のパスワードを設定 (今回は password)
sudo vi /etc/zabbix/zabbix_proxy.conf Server=192.168.0.100 Hostname=PROXY01 DBPassword=password
vagrant@debian-11:~$ sudo cat /etc/zabbix/zabbix_proxy.conf # This is a configuration file for Zabbix proxy daemon # To get more information about Zabbix, visit http://www.zabbix.com ############ GENERAL PARAMETERS ################# ### Option: ProxyMode # Proxy operating mode. # 0 - proxy in the active mode # 1 - proxy in the passive mode # # Mandatory: no # Default: # ProxyMode=0 ### Option: Server # If ProxyMode is set to active mode: # IP address or DNS name (address:port) or cluster (address:port;address2:port) of Zabbix server to get configuration data from and send data to. # If port is not specified, default port is used. # Cluster nodes need to be separated by semicolon. # If ProxyMode is set to passive mode: # List of comma delimited IP addresses, optionally in CIDR notation, or DNS names of Zabbix server. # Incoming connections will be accepted only from the addresses listed here. # If IPv6 support is enabled then '127.0.0.1', '::127.0.0.1', '::ffff:127.0.0.1' are treated equally # and '::/0' will allow any IPv4 or IPv6 address. # '0.0.0.0/0' can be used to allow any IPv4 address. # Example: Server=127.0.0.1,192.168.1.0/24,::1,2001:db8::/32,zabbix.example.com # # Mandatory: yes # Default: # Server= # Server=127.0.0.1 Server=192.168.0.100 ### Option: Hostname # Unique, case sensitive Proxy name. Make sure the Proxy name is known to the server! # Value is acquired from HostnameItem if undefined. # # Mandatory: no # Default: # Hostname= # Hostname=Zabbix proxy Hostname=PROXY01 ### Option: HostnameItem # Item used for generating Hostname if it is undefined. # Ignored if Hostname is defined. # # Mandatory: no # Default: # HostnameItem=system.hostname ### 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. # # Mandatory: yes, if LogType is set to file, otherwise no # Default: # LogFile= LogFile=/var/log/zabbix/zabbix_proxy.log ### Option: LogFileSize # Maximum size of log file in MB. # 0 - disable automatic log rotation. # # Mandatory: no # Range: 0-1024 # Default: # LogFileSize=1 LogFileSize=0 ### Option: DebugLevel # Specifies debug level: # 0 - basic information about starting and stopping of Zabbix processes # 1 - critical information # 2 - error information # 3 - warnings # 4 - for debugging (produces lots of information) # 5 - extended debugging (produces even more information) # # Mandatory: no # Range: 0-5 # Default: # DebugLevel=3 ### Option: EnableRemoteCommands # Whether remote commands from Zabbix server are allowed. # 0 - not allowed # 1 - allowed # # Mandatory: no # Default: # EnableRemoteCommands=0 ### Option: LogRemoteCommands # Enable logging of executed shell commands as warnings. # 0 - disabled # 1 - enabled # # Mandatory: no # Default: # LogRemoteCommands=0 ### Option: PidFile # Name of PID file. # # Mandatory: no # Default: # PidFile=/tmp/zabbix_proxy.pid PidFile=/run/zabbix/zabbix_proxy.pid ### Option: SocketDir # IPC socket directory. # Directory to store IPC sockets used by internal Zabbix services. # # Mandatory: no # Default: # SocketDir=/tmp SocketDir=/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. # If set to empty string, the Net Service Name connection method is used to connect to Oracle database; also see # the TNS_ADMIN environment variable to specify the directory where the tnsnames.ora file is located. # # Mandatory: no # Default: # DBHost=localhost ### Option: DBName # Database name. # For SQLite3 path to database file must be provided. DBUser and DBPassword are ignored. # If the Net Service Name connection method is used to connect to Oracle database, specify the service name from # the tnsnames.ora file or set to empty string; also see the TWO_TASK environment variable if DBName is set to # empty string. # Warning: do not attempt to use the same database Zabbix server is using. # # Mandatory: yes # Default: # DBName= DBName=zabbix_proxy ### Option: DBSchema # Schema name. Used for PostgreSQL. # # Mandatory: no # Default: # DBSchema= ### Option: DBUser # Database user. Ignored for SQLite. # # Default: # DBUser= DBUser=zabbix ### Option: DBPassword # Database password. Ignored for SQLite. # Comment this line if no password is used. # # Mandatory: no # Default: # DBPassword= DBPassword=password ### Option: DBSocket # Path to MySQL socket. # # Mandatory: no # Default: # DBSocket= # Option: DBPort # Database port when not using local socket. Ignored for SQLite. # If the Net Service Name connection method is used to connect to Oracle database, the port number from the # tnsnames.ora file will be used. The port number set here will be ignored. # # Mandatory: no # Default: # DBPort= ### Option: AllowUnsupportedDBVersions # Allow proxy to work with unsupported database versions. # 0 - do not allow # 1 - allow # # Mandatory: no # Default: # AllowUnsupportedDBVersions=0 ######### PROXY SPECIFIC PARAMETERS ############# ### Option: ProxyLocalBuffer # Proxy will keep data locally for N hours, even if the data have already been synced with the server. # This parameter may be used if local data will be used by third party applications. # # Mandatory: no # Range: 0-720 # Default: # ProxyLocalBuffer=0 ### Option: ProxyOfflineBuffer # Proxy will keep data for N hours in case if no connectivity with Zabbix Server. # Older data will be lost. # # Mandatory: no # Range: 1-720 # Default: # ProxyOfflineBuffer=1 ### Option: HeartbeatFrequency # Frequency of heartbeat messages in seconds. # Used for monitoring availability of Proxy on server side. # 0 - heartbeat messages disabled. # For a proxy in the passive mode this parameter will be ignored. # # Mandatory: no # Range: 0-3600 # Default: # HeartbeatFrequency=60 ### Option: ConfigFrequency # How often proxy retrieves configuration data from Zabbix Server in seconds. # For a proxy in the passive mode this parameter will be ignored. # # Mandatory: no # Range: 1-3600*24*7 # Default: # ConfigFrequency=3600 ### Option: DataSenderFrequency # Proxy will send collected data to the Server every N seconds. # For a proxy in the passive mode this parameter will be ignored. # # Mandatory: no # Range: 1-3600 # Default: # DataSenderFrequency=1 ############ ADVANCED PARAMETERS ################ ### Option: StartPollers # Number of pre-forked instances of pollers. # # Mandatory: no # Range: 0-1000 # Default: # StartPollers=5 ### Option: StartIPMIPollers # Number of pre-forked instances of IPMI pollers. # The IPMI manager process is automatically started when at least one IPMI poller is started. # # Mandatory: no # Range: 0-1000 # Default: # StartIPMIPollers=0 ### Option: StartPreprocessors # Number of pre-forked instances of preprocessing workers. # The preprocessing manager process is automatically started when preprocessor worker is started. # # Mandatory: no # Range: 1-1000 # Default: # StartPreprocessors=3 ### Option: StartPollersUnreachable # Number of pre-forked instances of pollers for unreachable hosts (including IPMI and Java). # At least one poller for unreachable hosts must be running if regular, IPMI or Java pollers # are started. # # Mandatory: no # Range: 0-1000 # Default: # StartPollersUnreachable=1 ### Option: StartHistoryPollers # Number of pre-forked instances of history pollers. # Only required for internal checks. # A database connection is required for each history poller instance. # # Mandatory: no # Range: 0-1000 # Default: # StartHistoryPollers=1 ### Option: StartTrappers # Number of pre-forked instances of trappers. # Trappers accept incoming connections from Zabbix sender and active agents. # # Mandatory: no # Range: 0-1000 # Default: # StartTrappers=5 ### Option: StartPingers # Number of pre-forked instances of ICMP pingers. # # Mandatory: no # Range: 0-1000 # Default: # StartPingers=1 ### Option: StartDiscoverers # Number of pre-forked instances of discoverers. # # Mandatory: no # Range: 0-250 # Default: # StartDiscoverers=1 ### Option: StartHTTPPollers # Number of pre-forked instances of HTTP pollers. # # Mandatory: no # Range: 0-1000 # Default: # StartHTTPPollers=1 ### Option: JavaGateway # IP address (or hostname) of Zabbix Java gateway. # Only required if Java pollers are started. # # Mandatory: no # Default: # JavaGateway= ### Option: JavaGatewayPort # Port that Zabbix Java gateway listens on. # # Mandatory: no # Range: 1024-32767 # Default: # JavaGatewayPort=10052 ### Option: StartJavaPollers # Number of pre-forked instances of Java pollers. # # Mandatory: no # Range: 0-1000 # Default: # StartJavaPollers=0 ### Option: StartVMwareCollectors # Number of pre-forked vmware collector instances. # # Mandatory: no # Range: 0-250 # Default: # StartVMwareCollectors=0 ### Option: VMwareFrequency # How often Zabbix will connect to VMware service to obtain a new data. # # Mandatory: no # Range: 10-86400 # Default: # VMwareFrequency=60 ### Option: VMwarePerfFrequency # How often Zabbix will connect to VMware service to obtain performance data. # # Mandatory: no # Range: 10-86400 # Default: # VMwarePerfFrequency=60 ### Option: VMwareCacheSize # Size of VMware cache, in bytes. # Shared memory size for storing VMware data. # Only used if VMware collectors are started. # # Mandatory: no # Range: 256K-2G # Default: # VMwareCacheSize=8M ### Option: VMwareTimeout # Specifies how many seconds vmware collector waits for response from VMware service. # # Mandatory: no # Range: 1-300 # Default: # VMwareTimeout=10 ### Option: SNMPTrapperFile # Temporary file used for passing data from SNMP trap daemon to the proxy. # Must be the same as in zabbix_trap_receiver.pl or SNMPTT configuration file. # # Mandatory: no # Default: # SNMPTrapperFile=/tmp/zabbix_traps.tmp SNMPTrapperFile=/var/log/snmptrap/snmptrap.log ### Option: StartSNMPTrapper # If 1, SNMP trapper process is started. # # Mandatory: no # Range: 0-1 # Default: # StartSNMPTrapper=0 ### Option: ListenIP # List of comma delimited IP addresses that the trapper should listen on. # Trapper will listen on all network interfaces if this parameter is missing. # # Mandatory: no # Default: # ListenIP=0.0.0.0 ### Option: HousekeepingFrequency # How often Zabbix will perform housekeeping procedure (in hours). # Housekeeping is removing outdated information from the database. # To prevent Housekeeper from being overloaded, no more than 4 times HousekeepingFrequency # hours of outdated information are deleted in one housekeeping cycle. # To lower load on proxy startup housekeeping is postponed for 30 minutes after proxy start. # With HousekeepingFrequency=0 the housekeeper can be only executed using the runtime control option. # In this case the period of outdated information deleted in one housekeeping cycle is 4 times the # period since the last housekeeping cycle, but not less than 4 hours and not greater than 4 days. # # Mandatory: no # Range: 0-24 # Default: # HousekeepingFrequency=1 ### Option: CacheSize # Size of configuration cache, in bytes. # Shared memory size, for storing hosts and items data. # # Mandatory: no # Range: 128K-64G # Default: # CacheSize=8M ### Option: StartDBSyncers # Number of pre-forked instances of DB Syncers. # # Mandatory: no # Range: 1-100 # Default: # StartDBSyncers=4 ### Option: HistoryCacheSize # Size of history cache, in bytes. # Shared memory size for storing history data. # # Mandatory: no # Range: 128K-2G # Default: # HistoryCacheSize=16M ### Option: HistoryIndexCacheSize # Size of history index cache, in bytes. # Shared memory size for indexing history cache. # # Mandatory: no # Range: 128K-2G # Default: # HistoryIndexCacheSize=4M ### Option: Timeout # Specifies how long we wait for agent, SNMP device or external check (in seconds). # # Mandatory: no # Range: 1-30 # Default: # Timeout=3 Timeout=4 ### Option: TrapperTimeout # Specifies how many seconds trapper may spend processing new data. # # Mandatory: no # Range: 1-300 # Default: # TrapperTimeout=300 ### Option: UnreachablePeriod # After how many seconds of unreachability treat a host as unavailable. # # Mandatory: no # Range: 1-3600 # Default: # UnreachablePeriod=45 ### Option: UnavailableDelay # How often host is checked for availability during the unavailability period, in seconds. # # Mandatory: no # Range: 1-3600 # Default: # UnavailableDelay=60 ### Option: UnreachableDelay # How often host is checked for availability during the unreachability period, in seconds. # # Mandatory: no # Range: 1-3600 # Default: # UnreachableDelay=15 ## Option: StartODBCPollers # Number of pre-forked ODBC poller instances. # # Mandatory: no # Range: 0-1000 # Default: # StartODBCPollers=1 ### Option: ExternalScripts # Full path to location of external scripts. # Default depends on compilation options. # To see the default path run command "zabbix_proxy --help". # # Mandatory: no # Default: # ExternalScripts=/usr/lib/zabbix/externalscripts ### Option: FpingLocation # Location of fping. # Make sure that fping binary has root ownership and SUID flag set. # # Mandatory: no # Default: # FpingLocation=/usr/sbin/fping FpingLocation=/usr/bin/fping ### Option: Fping6Location # Location of fping6. # Make sure that fping6 binary has root ownership and SUID flag set. # Make empty if your fping utility is capable to process IPv6 addresses. # # Mandatory: no # Default: # Fping6Location=/usr/sbin/fping6 Fping6Location=/usr/bin/fping6 ### Option: SSHKeyLocation # Location of public and private keys for SSH checks and actions. # # Mandatory: no # Default: # SSHKeyLocation= ### Option: LogSlowQueries # How long a database query may take before being logged (in milliseconds). # Only works if DebugLevel set to 3 or 4. # 0 - don't log slow queries. # # Mandatory: no # Range: 1-3600000 # Default: # LogSlowQueries=0 LogSlowQueries=3000 ### Option: TmpDir # Temporary directory. # # Mandatory: no # Default: # TmpDir=/tmp ### Option: AllowRoot # Allow the proxy to run as 'root'. If disabled and the proxy is started by 'root', the proxy # will try to switch to the user specified by the User configuration option instead. # Has no effect if started under a regular user. # 0 - do not allow # 1 - allow # # Mandatory: no # Default: # AllowRoot=0 ### Option: User # Drop privileges to a specific, existing user on the system. # Only has effect if run as 'root' and AllowRoot is disabled. # # Mandatory: no # Default: # User=zabbix ### Option: Include # You may include individual files or all files in a directory in the configuration file. # Installing Zabbix will create include directory in /usr/local/etc, unless modified during the compile time. # # Mandatory: no # Default: # Include= # Include=/usr/local/etc/zabbix_proxy.general.conf # Include=/usr/local/etc/zabbix_proxy.conf.d/ # Include=/usr/local/etc/zabbix_proxy.conf.d/*.conf ### Option: SSLCertLocation # Location of SSL client certificates. # This parameter is used only in web monitoring. # Default depends on compilation options. # To see the default path run command "zabbix_proxy --help". # # Mandatory: no # Default: # SSLCertLocation=${datadir}/zabbix/ssl/certs ### Option: SSLKeyLocation # Location of private keys for SSL client certificates. # This parameter is used only in web monitoring. # Default depends on compilation options. # To see the default path run command "zabbix_proxy --help". # # Mandatory: no # Default: # SSLKeyLocation=${datadir}/zabbix/ssl/keys ### Option: SSLCALocation # Location of certificate authority (CA) files for SSL server certificate verification. # If not set, system-wide directory will be used. # This parameter is used in web monitoring, HTTP agent items and for communication with Vault. # # Mandatory: no # Default: # SSLCALocation= ####### LOADABLE MODULES ####### ### Option: LoadModulePath # Full path to location of proxy modules. # Default depends on compilation options. # To see the default path run command "zabbix_proxy --help". # # Mandatory: no # Default: # LoadModulePath=${libdir}/modules ### Option: LoadModule # Module to load at proxy startup. Modules are used to extend functionality of the proxy. # Formats: # LoadModule=<module.so> # LoadModule=<path/module.so> # LoadModule=</abs_path/module.so> # Either the module must be located in directory specified by LoadModulePath or the path must precede the module name. # If the preceding path is absolute (starts with '/') then LoadModulePath is ignored. # It is allowed to include multiple LoadModule parameters. # # Mandatory: no # Default: # LoadModule= ### Option: StatsAllowedIP # List of comma delimited IP addresses, optionally in CIDR notation, or DNS names of external Zabbix instances. # Stats request will be accepted only from the addresses listed here. If this parameter is not set no stats requests # will be accepted. # If IPv6 support is enabled then '127.0.0.1', '::127.0.0.1', '::ffff:127.0.0.1' are treated equally # and '::/0' will allow any IPv4 or IPv6 address. # '0.0.0.0/0' can be used to allow any IPv4 address. # Example: StatsAllowedIP=127.0.0.1,192.168.1.0/24,::1,2001:db8::/32,zabbix.example.com # # Mandatory: no # Default: # StatsAllowedIP= StatsAllowedIP=127.0.0.1 ####### TLS-RELATED PARAMETERS ####### ### Option: TLSConnect # How the proxy should connect to Zabbix server. Used for an active proxy, ignored on a passive proxy. # Only one value can be specified: # unencrypted - connect without encryption # psk - connect using TLS and a pre-shared key # cert - connect using TLS and a certificate # # Mandatory: yes, if TLS certificate or PSK parameters are defined (even for 'unencrypted' connection) # Default: # TLSConnect=unencrypted ### Option: TLSAccept # What incoming connections to accept from Zabbix server. Used for a passive proxy, ignored on an active proxy. # Multiple values can be specified, separated by comma: # unencrypted - accept connections without encryption # psk - accept connections secured with TLS and a pre-shared key # cert - accept connections secured with TLS and a certificate # # Mandatory: yes, if TLS certificate or PSK parameters are defined (even for 'unencrypted' connection) # Default: # TLSAccept=unencrypted ### Option: TLSCAFile # Full pathname of a file containing the top-level CA(s) certificates for # peer certificate verification. # # Mandatory: no # Default: # TLSCAFile= ### Option: TLSCRLFile # Full pathname of a file containing revoked certificates. # # Mandatory: no # Default: # TLSCRLFile= ### Option: TLSServerCertIssuer # Allowed server certificate issuer. # # Mandatory: no # Default: # TLSServerCertIssuer= ### Option: TLSServerCertSubject # Allowed server certificate subject. # # Mandatory: no # Default: # TLSServerCertSubject= ### Option: TLSCertFile # Full pathname of a file containing the proxy certificate or certificate chain. # # Mandatory: no # Default: # TLSCertFile= ### Option: TLSKeyFile # Full pathname of a file containing the proxy private key. # # Mandatory: no # Default: # TLSKeyFile= ### Option: TLSPSKIdentity # Unique, case sensitive string used to identify the pre-shared key. # # Mandatory: no # Default: # TLSPSKIdentity= ### Option: TLSPSKFile # Full pathname of a file containing the pre-shared key. # # Mandatory: no # Default: # TLSPSKFile= ####### For advanced users - TLS ciphersuite selection criteria ####### ### Option: TLSCipherCert13 # Cipher string for OpenSSL 1.1.1 or newer in TLS 1.3. # Override the default ciphersuite selection criteria for certificate-based encryption. # # Mandatory: no # Default: # TLSCipherCert13= ### Option: TLSCipherCert # GnuTLS priority string or OpenSSL (TLS 1.2) cipher string. # Override the default ciphersuite selection criteria for certificate-based encryption. # Example for GnuTLS: # NONE:+VERS-TLS1.2:+ECDHE-RSA:+RSA:+AES-128-GCM:+AES-128-CBC:+AEAD:+SHA256:+SHA1:+CURVE-ALL:+COMP-NULL:+SIGN-ALL:+CTYPE-X.509 # Example for OpenSSL: # EECDH+aRSA+AES128:RSA+aRSA+AES128 # # Mandatory: no # Default: # TLSCipherCert= ### Option: TLSCipherPSK13 # Cipher string for OpenSSL 1.1.1 or newer in TLS 1.3. # Override the default ciphersuite selection criteria for PSK-based encryption. # Example: # TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256 # # Mandatory: no # Default: # TLSCipherPSK13= ### Option: TLSCipherPSK # GnuTLS priority string or OpenSSL (TLS 1.2) cipher string. # Override the default ciphersuite selection criteria for PSK-based encryption. # Example for GnuTLS: # NONE:+VERS-TLS1.2:+ECDHE-PSK:+PSK:+AES-128-GCM:+AES-128-CBC:+AEAD:+SHA256:+SHA1:+CURVE-ALL:+COMP-NULL:+SIGN-ALL # Example for OpenSSL: # kECDHEPSK+AES128:kPSK+AES128 # # Mandatory: no # Default: # TLSCipherPSK= ### Option: TLSCipherAll13 # Cipher string for OpenSSL 1.1.1 or newer in TLS 1.3. # Override the default ciphersuite selection criteria for certificate- and PSK-based encryption. # Example: # TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256 # # Mandatory: no # Default: # TLSCipherAll13= ### Option: TLSCipherAll # GnuTLS priority string or OpenSSL (TLS 1.2) cipher string. # Override the default ciphersuite selection criteria for certificate- and PSK-based encryption. # Example for GnuTLS: # NONE:+VERS-TLS1.2:+ECDHE-RSA:+RSA:+ECDHE-PSK:+PSK:+AES-128-GCM:+AES-128-CBC:+AEAD:+SHA256:+SHA1:+CURVE-ALL:+COMP-NULL:+SIGN-ALL:+CTYPE-X.509 # Example for OpenSSL: # EECDH+aRSA+AES128:RSA+aRSA+AES128:kECDHEPSK+AES128:kPSK+AES128 # # Mandatory: no # Default: # TLSCipherAll= ### Option: DBTLSConnect # Setting this option enforces to use TLS connection to database. # required - connect using TLS # verify_ca - connect using TLS and verify certificate # verify_full - connect using TLS, verify certificate and verify that database identity specified by DBHost # matches its certificate # On MySQL starting from 5.7.11 and PostgreSQL following values are supported: "required", "verify_ca" and # "verify_full". # On MariaDB starting from version 10.2.6 "required" and "verify_full" values are supported. # Default is not to set any option and behavior depends on database configuration # # Mandatory: no # Default: # DBTLSConnect= ### Option: DBTLSCAFile # Full pathname of a file containing the top-level CA(s) certificates for database certificate verification. # Supported only for MySQL and PostgreSQL # # Mandatory: no # (yes, if DBTLSConnect set to one of: verify_ca, verify_full) # Default: # DBTLSCAFile= ### Option: DBTLSCertFile # Full pathname of file containing Zabbix proxy certificate for authenticating to database. # Supported only for MySQL and PostgreSQL # # Mandatory: no # Default: # DBTLSCertFile= ### Option: DBTLSKeyFile # Full pathname of file containing the private key for authenticating to database. # Supported only for MySQL and PostgreSQL # # Mandatory: no # Default: # DBTLSKeyFile= ### Option: DBTLSCipher # The list of encryption ciphers that Zabbix proxy permits for TLS protocols up through TLSv1.2 # Supported only for MySQL # # Mandatory no # Default: # DBTLSCipher= ### Option: DBTLSCipher13 # The list of encryption ciphersuites that Zabbix proxy permits for TLSv1.3 protocol # Supported only for MySQL, starting from version 8.0.16 # # Mandatory no # Default: # DBTLSCipher13= ### Option: VaultToken # Vault authentication token that should have been generated exclusively for Zabbix proxy with read only permission to path # specified in optional VaultDBPath configuration parameter. # It is an error if VaultToken and VAULT_TOKEN environment variable are defined at the same time. # # Mandatory: no # Default: # VaultToken= ### Option: VaultURL # Vault server HTTP[S] URL. System-wide CA certificates directory will be used if SSLCALocation is not specified. # # Mandatory: no # Default: # VaultURL=https://127.0.0.1:8200 ### Option: VaultDBPath # Vault path from where credentials for database will be retrieved by keys 'password' and 'username'. # Example: secret/zabbix/database # This option can only be used if DBUser and DBPassword are not specified. # # Mandatory: no # Default: # VaultDBPath= ####### For advanced users - TCP-related fine-tuning parameters ####### ## Option: ListenBacklog # The maximum number of pending connections in the queue. This parameter is passed to # listen() function as argument 'backlog' (see "man listen"). # # Mandatory: no # Range: 0 - INT_MAX (depends on system, too large values may be silently truncated to implementation-specified maximum) # Default: SOMAXCONN (hard-coded constant, depends on system) # ListenBacklog= vagrant@debian-11:~$
- Zabbix プロキシの再起動と自動起動設定
sudo systemctl restart zabbix-proxy sudo systemctl enable zabbix-proxy
Zabbix プロキシと Zabbix サーバーの疎通確認
Zabbix サーバーにプロキシ PROXY01 を登録し、データの受信がされていることを確認することで通信できているかどうかを確認する。
プロキシの作成
- 管理 → プロキシ → プロキシの作成 を選択
- プロキシ名に
PROXY01
を入力して 追加 を選択
最新データ受信時刻(経過時間) を確認
- はじめは未受信になっているが...
- しばらくすると数字になる。
- はじめは未受信になっているが...
数字になったということは Zabbix プロキシからのデータを Zabbix サーバーが受信したということなので、設定は成功と判断できる。
作業完了
お疲れさまでした。