# apt install zabbix-server-mysql
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libfwupdplugin1 linux-headers-5.4.0-66 linux-headers-5.4.0-66-generic linux-image-5.4.0-66-generic linux-modules-5.4.0-66-generic
linux-modules-extra-5.4.0-66-generic
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
fping libblas3 libiksemel3 liblinear4 liblua5.3-0 libmysqlclient21 libodbc1 libopenipmi0 libsensors-config libsensors5 libsnmp-base libsnmp35 libssh2-1 lua-lpeg nmap
nmap-common snmpd traceroute
Suggested packages:
liblinear-tools liblinear-dev libmyodbc odbc-postgresql tdsodbc unixodbc-bin lm-sensors snmp-mibs-downloader ncat ndiff zenmap snmptrapd zabbix-frontend-php
The following NEW packages will be installed:
fping libblas3 libiksemel3 liblinear4 liblua5.3-0 libmysqlclient21 libodbc1 libopenipmi0 libsensors-config libsensors5 libsnmp-base libsnmp35 libssh2-1 lua-lpeg nmap
nmap-common snmpd traceroute zabbix-server-mysql
0 upgraded, 19 newly installed, 0 to remove and 0 not upgraded.
Need to get 11.1 MB of archives.
After this operation, 46.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libmysqlclient21 amd64 8.0.29-0ubuntu0.20
# apt install zabbix-server-mysql
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libfwupdplugin1 linux-headers-5.4.0-66 linux-headers-5.4.0-66-generic linux-image-5.4.0-66-generic linux-modules-5.4.0-66-generic
linux-modules-extra-5.4.0-66-generic
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
fping libblas3 libiksemel3 liblinear4 liblua5.3-0 libmysqlclient21 libodbc1 libopenipmi0 libsensors-config libsensors5 libsnmp-base libsnmp35 libssh2-1 lua-lpeg nmap
nmap-common snmpd traceroute
Suggested packages:
liblinear-tools liblinear-dev libmyodbc odbc-postgresql tdsodbc unixodbc-bin lm-sensors snmp-mibs-downloader ncat ndiff zenmap snmptrapd zabbix-frontend-php
The following NEW packages will be installed:
fping libblas3 libiksemel3 liblinear4 liblua5.3-0 libmysqlclient21 libodbc1 libopenipmi0 libsensors-config libsensors5 libsnmp-base libsnmp35 libssh2-1 lua-lpeg nmap
nmap-common snmpd traceroute zabbix-server-mysql
0 upgraded, 19 newly installed, 0 to remove and 0 not upgraded.
Need to get 11.1 MB of archives.
After this operation, 46.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libmysqlclient21 amd64 8.0.29-0ubuntu0.20
↑zabbix の mysqlタイプをインストールします。
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# systemctl start zabbix-server
# systemctl status zabbix-server
● zabbix-server.service - Zabbix Server (MySQL/MariaDB)
Created symlink /etc/systemd/system/multi-user.target.wants/zabbix-server.service → /lib/systemd/system/zabbix-server.service.
# systemctl restart zabbix-server zabbix-agent apache2
# systemctl enable zabbix-server zabbix-agent apache2
Synchronizing state of zabbix-server.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable zabbix-server
Synchronizing state of zabbix-agent.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable zabbix-agent
Synchronizing state of apache2.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable apache2
Created symlink /etc/systemd/system/multi-user.target.wants/zabbix-server.service → /lib/systemd/system/zabbix-server.service.
# systemctl restart zabbix-server zabbix-agent apache2
# systemctl enable zabbix-server zabbix-agent apache2
Synchronizing state of zabbix-server.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable zabbix-server
Synchronizing state of zabbix-agent.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable zabbix-agent
Synchronizing state of apache2.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable apache2
Created symlink /etc/systemd/system/multi-user.target.wants/zabbix-server.service → /lib/systemd/system/zabbix-server.service.
↑各サービスの起動が終わりました。自動起動も設定します。
「広告」
zabbix 6.0 初期画面
↑http://(サーバーのIP)/zabbix/
↑「You are not able to choose some of the languages, because locales for them are not installed on the web server.」
とエラーが出て、日本語が選べません
Preparing to unpack .../language-pack-ja_1%3a20.04+20220211_all.deb ...
Unpacking language-pack-ja (1:20.04+20220211) ...
Setting up language-pack-ja (1:20.04+20220211) ...
Setting up language-pack-ja-base (1:20.04+20220211) ...
Generating locales (this might take a while)...
ja_JP.UTF-8... done
Generation complete.
# apt install language-pack-ja-base language-pack-ja
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libfwupdplugin1 linux-headers-5.4.0-66 linux-headers-5.4.0-66-generic linux-image-5.4.0-66-generic linux-modules-5.4.0-66-generic
linux-modules-extra-5.4.0-66-generic
Use 'apt autoremove' to remove them.
The following NEW packages will be installed:
language-pack-ja language-pack-ja-base
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,669 kB of archives.
After this operation, 7,772 kB of additional disk space will be used.
Get:1 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 language-pack-ja-base all 1:20.04+20220211 [1,667 kB]
Get:2 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 language-pack-ja all 1:20.04+20220211 [1,896 B]
Fetched 1,669 kB in 9s (193 kB/s)
Selecting previously unselected package language-pack-ja-base.
(Reading database ... 148853 files and directories currently installed.)
Preparing to unpack .../language-pack-ja-base_1%3a20.04+20220211_all.deb ...
Unpacking language-pack-ja-base (1:20.04+20220211) ...
Selecting previously unselected package language-pack-ja.
Preparing to unpack .../language-pack-ja_1%3a20.04+20220211_all.deb ...
Unpacking language-pack-ja (1:20.04+20220211) ...
Setting up language-pack-ja (1:20.04+20220211) ...
Setting up language-pack-ja-base (1:20.04+20220211) ...
Generating locales (this might take a while)...
ja_JP.UTF-8... done
Generation complete.
# apt install language-pack-ja-base language-pack-ja
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libfwupdplugin1 linux-headers-5.4.0-66 linux-headers-5.4.0-66-generic linux-image-5.4.0-66-generic linux-modules-5.4.0-66-generic
linux-modules-extra-5.4.0-66-generic
Use 'apt autoremove' to remove them.
The following NEW packages will be installed:
language-pack-ja language-pack-ja-base
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,669 kB of archives.
After this operation, 7,772 kB of additional disk space will be used.
Get:1 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 language-pack-ja-base all 1:20.04+20220211 [1,667 kB]
Get:2 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 language-pack-ja all 1:20.04+20220211 [1,896 B]
Fetched 1,669 kB in 9s (193 kB/s)
Selecting previously unselected package language-pack-ja-base.
(Reading database ... 148853 files and directories currently installed.)
Preparing to unpack .../language-pack-ja-base_1%3a20.04+20220211_all.deb ...
Unpacking language-pack-ja-base (1:20.04+20220211) ...
Selecting previously unselected package language-pack-ja.
Preparing to unpack .../language-pack-ja_1%3a20.04+20220211_all.deb ...
Unpacking language-pack-ja (1:20.04+20220211) ...
Setting up language-pack-ja (1:20.04+20220211) ...
Setting up language-pack-ja-base (1:20.04+20220211) ...
Generating locales (this might take a while)...
ja_JP.UTF-8... done
Generation complete.
↑「ja_JP.utf8」の登録が完了しました。
http://(サーバーのIP)/zabbix/setup.php
を再読込します。
↑日本語が選べました。
↑日本語になりました。
↑なぜか、英語に戻ってしまいますが、先に進めます。
↑DBの情報を入れます。
↑「Zabbix server name」に適当な名前を入れます。
そして、タイムゾーンを東京にします。
↑確認画面です
↑インストールが完了しました。
↑ログイン画面になります。
初期のIDとパスワード「Admin」「zabbix」を入れます。
↑左メニュー、下の方「User Setting」「Profile」を選びます。
↑「Language」のところから「Japanese(ja_JP)」を選びます。
↑「Update」を選びます。
↑メニュー関係は、日本語になりましたが、エラーが出てしまいました。
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
Locale for language "ja_JP" is not found on the web server. Tried to set: ja_JP, ja_JP.utf8, ja_JP.UTF-8, ja_JP.iso885915, ja_JP.ISO8859-1, ja_JP.ISO8859-2, ja_JP.ISO8859-4, ja_JP.ISO8859-5, ja_JP.ISO8859-15, ja_JP.ISO8859-13, ja_JP.CP1131, ja_JP.CP1251, ja_JP.CP1251, ja_JP.CP949, ja_JP.KOI8-U, ja_JP.US-ASCII, ja_JP.eucKR, ja_JP.eucJP, ja_JP.SJIS, ja_JP.GB18030, ja_JP.GB2312, ja_JP.GBK, ja_JP.eucCN, ja_JP.Big5HKSCS, ja_JP.Big5, ja_JP.armscii8, ja_JP.cp1251, ja_JP.eucjp, ja_JP.euckr, ja_JP.euctw, ja_JP.gb18030, ja_JP.gbk, ja_JP.koi8r, ja_JP.tcvn. Unable to translate Zabbix interface.
Locale for language "ja_JP" is not found on the web server. Tried to set: ja_JP, ja_JP.utf8, ja_JP.UTF-8, ja_JP.iso885915, ja_JP.ISO8859-1, ja_JP.ISO8859-2, ja_JP.ISO8859-4, ja_JP.ISO8859-5, ja_JP.ISO8859-15, ja_JP.ISO8859-13, ja_JP.CP1131, ja_JP.CP1251, ja_JP.CP1251, ja_JP.CP949, ja_JP.KOI8-U, ja_JP.US-ASCII, ja_JP.eucKR, ja_JP.eucJP, ja_JP.SJIS, ja_JP.GB18030, ja_JP.GB2312, ja_JP.GBK, ja_JP.eucCN, ja_JP.Big5HKSCS, ja_JP.Big5, ja_JP.armscii8, ja_JP.cp1251, ja_JP.eucjp, ja_JP.euckr, ja_JP.euctw, ja_JP.gb18030, ja_JP.gbk, ja_JP.koi8r, ja_JP.tcvn. Unable to translate Zabbix interface.
Locale for language "ja_JP" is not found on the web server. Tried to set: ja_JP, ja_JP.utf8, ja_JP.UTF-8, ja_JP.iso885915, ja_JP.ISO8859-1, ja_JP.ISO8859-2, ja_JP.ISO8859-4, ja_JP.ISO8859-5, ja_JP.ISO8859-15, ja_JP.ISO8859-13, ja_JP.CP1131, ja_JP.CP1251, ja_JP.CP1251, ja_JP.CP949, ja_JP.KOI8-U, ja_JP.US-ASCII, ja_JP.eucKR, ja_JP.eucJP, ja_JP.SJIS, ja_JP.GB18030, ja_JP.GB2312, ja_JP.GBK, ja_JP.eucCN, ja_JP.Big5HKSCS, ja_JP.Big5, ja_JP.armscii8, ja_JP.cp1251, ja_JP.eucjp, ja_JP.euckr, ja_JP.euctw, ja_JP.gb18030, ja_JP.gbk, ja_JP.koi8r, ja_JP.tcvn. Unable to translate Zabbix interface.
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# locale -a
C
C.UTF-8
en_US.utf8
ja_JP.utf8
POSIX
# locale -a
C
C.UTF-8
en_US.utf8
ja_JP.utf8
POSIX
# locale -a
C
C.UTF-8
en_US.utf8
ja_JP.utf8
POSIX
↑ここに、「ja_JP」が入っていないのが、原因のようです。
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# localedef -f UTF-8 -i ja_JP ja_JP
# locale -a
C
C.UTF-8
en_US.utf8
ja_JP
ja_JP.utf8
POSIX
# localedef -f UTF-8 -i ja_JP ja_JP
# locale -a
C
C.UTF-8
en_US.utf8
ja_JP
ja_JP.utf8
POSIX
# localedef -f UTF-8 -i ja_JP ja_JP
# locale -a
C
C.UTF-8
en_US.utf8
ja_JP
ja_JP.utf8
POSIX