Zabbix-server-mysql on docker centos:latest skips some files during installI try to setup zabbix server on...
Why is the UK still pressing on with Brexit?
What does "boys rule, girls drool" mean?
How clean are pets?
What do these two notes together mean?
Can an infinite series be thought of as adding up "infinitely many" terms?
Is there a tool to measure the "maturity" of a code in Git?
Why does the speed of sound decrease at high altitudes although the air density decreases?
Why does Kubuntu 19.04 show an update that apparently doesn't exist?
Python web-scraper to download table of transistor counts from Wikipedia
How to draw a Venn diagram for X - (Y intersect Z)?
Why are some files not movable on Windows 10?
An ES6 array of numbers - Double last number, delete the first number
How to give my students a straightedge instead of a ruler
Unable to find solution to 6 simultaneous equations
Does a feasible high thrust high specific impulse engine exist using current non space technology?
What does the Free Recovery sign (UK) actually mean?
Permutations in Disguise
Is the Dodge action perceptible to other characters?
Statistical tests for benchmark comparison
What was the ultimate objective of The Party in 1984?
Why any infinite sequence of real functions can be generated from a finite set through composition?
Impossible Scrabble Words
Test to know when to use GLM over Linear Regression?
How can I prevent my AC condensate pipe from making my soil soggy?
Zabbix-server-mysql on docker centos:latest skips some files during install
I try to setup zabbix server on CentOS 6 (close system) but can find zabbix-server binary file after run rpm install rpm packageWhere can I find the japanese interface package for zabbix server?Zabbix install PHP 7 PHP 5.6 conflict on Centos7Confused about using the Zabbix Template MySQL (800+ items)zabbix template mysql (800+item)Can't install Zabbix by apt-get - checksum error - Debian 9Copying MySQL Database via FTP (FileZilla, Ubuntu, Zabbix)Docker container is killed during performance testsHow to resolve Transaction check error while installing xrdp?Can't install docker containers on ubuntu
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I tried to install Zabbix-server-mysql on genuine centos image in docker container:
[root@desktop]# docker run --rm -ti centos:latest /bin/bash
[root@0e4f336ff674]# rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
[root@0e4f336ff674]# rpm -ivh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-9.noarch.rpm
[root@0e4f336ff674]# yum install http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-server-mysql-3.2.3-1.el7.x86_64.rpm
This manual:
https://www.zabbix.com/documentation/3.2/manual/installation/install_from_packages/server_installation_with_mysql requires a file "/usr/share/doc/zabbix-server-mysql-3.2.3/create.sql.gz" to be created during the installation due to its necessity to create zabbix DB on MySQL server. But this file appears missing:
[root@0e4f336ff674]# ls -ld /usr/share/doc/zabbix-server-mysql-3.2.3/create.sql.gz
ls: cannot access /usr/share/doc/zabbix-server-mysql-3.2.3/create.sql.gz: No such file or directory
The funny part is this file actually EXISTS in *.rpm file:
[root@0e4f336ff674]# rpm2cpio http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-server-mysql-3.2.3-1.el7.x86_64.rpm | cpio -t | grep create
./usr/share/doc/zabbix-server-mysql-3.2.3/create.sql.gz
Moreover, the package doesn't seem to have any pre- or post-install scripts that could delete the /usr/share/doc/zabbix-server-mysql-3.2.3/
directory:
[root@0e4f336ff674]# rpm -qp --scripts http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-server-mysql-3.2.3-1.el7.x86_64.rpm
preinstall scriptlet (using /bin/sh):
getent group zabbix > /dev/null || groupadd -r zabbix
getent passwd zabbix > /dev/null ||
useradd -r -g zabbix -d /var/lib/zabbix -s /sbin/nologin
-c "Zabbix Monitoring System" zabbix
:
postinstall scriptlet (using /bin/sh):
if [ $1 -eq 1 ] ; then
# Initial installation
/usr/bin/systemctl preset zabbix-server.service >/dev/null 2>&1 || :
fi
/usr/sbin/update-alternatives --install /usr/sbin/zabbix_server
zabbix-server /usr/sbin/zabbix_server_mysql 10
:
<...>
So what could be the problem with it?
P.S.: I am aware of the exising official zabbix-on-docker images: github.com/zabbix/zabbix-docker
yum docker zabbix
add a comment
|
I tried to install Zabbix-server-mysql on genuine centos image in docker container:
[root@desktop]# docker run --rm -ti centos:latest /bin/bash
[root@0e4f336ff674]# rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
[root@0e4f336ff674]# rpm -ivh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-9.noarch.rpm
[root@0e4f336ff674]# yum install http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-server-mysql-3.2.3-1.el7.x86_64.rpm
This manual:
https://www.zabbix.com/documentation/3.2/manual/installation/install_from_packages/server_installation_with_mysql requires a file "/usr/share/doc/zabbix-server-mysql-3.2.3/create.sql.gz" to be created during the installation due to its necessity to create zabbix DB on MySQL server. But this file appears missing:
[root@0e4f336ff674]# ls -ld /usr/share/doc/zabbix-server-mysql-3.2.3/create.sql.gz
ls: cannot access /usr/share/doc/zabbix-server-mysql-3.2.3/create.sql.gz: No such file or directory
The funny part is this file actually EXISTS in *.rpm file:
[root@0e4f336ff674]# rpm2cpio http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-server-mysql-3.2.3-1.el7.x86_64.rpm | cpio -t | grep create
./usr/share/doc/zabbix-server-mysql-3.2.3/create.sql.gz
Moreover, the package doesn't seem to have any pre- or post-install scripts that could delete the /usr/share/doc/zabbix-server-mysql-3.2.3/
directory:
[root@0e4f336ff674]# rpm -qp --scripts http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-server-mysql-3.2.3-1.el7.x86_64.rpm
preinstall scriptlet (using /bin/sh):
getent group zabbix > /dev/null || groupadd -r zabbix
getent passwd zabbix > /dev/null ||
useradd -r -g zabbix -d /var/lib/zabbix -s /sbin/nologin
-c "Zabbix Monitoring System" zabbix
:
postinstall scriptlet (using /bin/sh):
if [ $1 -eq 1 ] ; then
# Initial installation
/usr/bin/systemctl preset zabbix-server.service >/dev/null 2>&1 || :
fi
/usr/sbin/update-alternatives --install /usr/sbin/zabbix_server
zabbix-server /usr/sbin/zabbix_server_mysql 10
:
<...>
So what could be the problem with it?
P.S.: I am aware of the exising official zabbix-on-docker images: github.com/zabbix/zabbix-docker
yum docker zabbix
add a comment
|
I tried to install Zabbix-server-mysql on genuine centos image in docker container:
[root@desktop]# docker run --rm -ti centos:latest /bin/bash
[root@0e4f336ff674]# rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
[root@0e4f336ff674]# rpm -ivh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-9.noarch.rpm
[root@0e4f336ff674]# yum install http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-server-mysql-3.2.3-1.el7.x86_64.rpm
This manual:
https://www.zabbix.com/documentation/3.2/manual/installation/install_from_packages/server_installation_with_mysql requires a file "/usr/share/doc/zabbix-server-mysql-3.2.3/create.sql.gz" to be created during the installation due to its necessity to create zabbix DB on MySQL server. But this file appears missing:
[root@0e4f336ff674]# ls -ld /usr/share/doc/zabbix-server-mysql-3.2.3/create.sql.gz
ls: cannot access /usr/share/doc/zabbix-server-mysql-3.2.3/create.sql.gz: No such file or directory
The funny part is this file actually EXISTS in *.rpm file:
[root@0e4f336ff674]# rpm2cpio http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-server-mysql-3.2.3-1.el7.x86_64.rpm | cpio -t | grep create
./usr/share/doc/zabbix-server-mysql-3.2.3/create.sql.gz
Moreover, the package doesn't seem to have any pre- or post-install scripts that could delete the /usr/share/doc/zabbix-server-mysql-3.2.3/
directory:
[root@0e4f336ff674]# rpm -qp --scripts http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-server-mysql-3.2.3-1.el7.x86_64.rpm
preinstall scriptlet (using /bin/sh):
getent group zabbix > /dev/null || groupadd -r zabbix
getent passwd zabbix > /dev/null ||
useradd -r -g zabbix -d /var/lib/zabbix -s /sbin/nologin
-c "Zabbix Monitoring System" zabbix
:
postinstall scriptlet (using /bin/sh):
if [ $1 -eq 1 ] ; then
# Initial installation
/usr/bin/systemctl preset zabbix-server.service >/dev/null 2>&1 || :
fi
/usr/sbin/update-alternatives --install /usr/sbin/zabbix_server
zabbix-server /usr/sbin/zabbix_server_mysql 10
:
<...>
So what could be the problem with it?
P.S.: I am aware of the exising official zabbix-on-docker images: github.com/zabbix/zabbix-docker
yum docker zabbix
I tried to install Zabbix-server-mysql on genuine centos image in docker container:
[root@desktop]# docker run --rm -ti centos:latest /bin/bash
[root@0e4f336ff674]# rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
[root@0e4f336ff674]# rpm -ivh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-9.noarch.rpm
[root@0e4f336ff674]# yum install http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-server-mysql-3.2.3-1.el7.x86_64.rpm
This manual:
https://www.zabbix.com/documentation/3.2/manual/installation/install_from_packages/server_installation_with_mysql requires a file "/usr/share/doc/zabbix-server-mysql-3.2.3/create.sql.gz" to be created during the installation due to its necessity to create zabbix DB on MySQL server. But this file appears missing:
[root@0e4f336ff674]# ls -ld /usr/share/doc/zabbix-server-mysql-3.2.3/create.sql.gz
ls: cannot access /usr/share/doc/zabbix-server-mysql-3.2.3/create.sql.gz: No such file or directory
The funny part is this file actually EXISTS in *.rpm file:
[root@0e4f336ff674]# rpm2cpio http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-server-mysql-3.2.3-1.el7.x86_64.rpm | cpio -t | grep create
./usr/share/doc/zabbix-server-mysql-3.2.3/create.sql.gz
Moreover, the package doesn't seem to have any pre- or post-install scripts that could delete the /usr/share/doc/zabbix-server-mysql-3.2.3/
directory:
[root@0e4f336ff674]# rpm -qp --scripts http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-server-mysql-3.2.3-1.el7.x86_64.rpm
preinstall scriptlet (using /bin/sh):
getent group zabbix > /dev/null || groupadd -r zabbix
getent passwd zabbix > /dev/null ||
useradd -r -g zabbix -d /var/lib/zabbix -s /sbin/nologin
-c "Zabbix Monitoring System" zabbix
:
postinstall scriptlet (using /bin/sh):
if [ $1 -eq 1 ] ; then
# Initial installation
/usr/bin/systemctl preset zabbix-server.service >/dev/null 2>&1 || :
fi
/usr/sbin/update-alternatives --install /usr/sbin/zabbix_server
zabbix-server /usr/sbin/zabbix_server_mysql 10
:
<...>
So what could be the problem with it?
P.S.: I am aware of the exising official zabbix-on-docker images: github.com/zabbix/zabbix-docker
yum docker zabbix
yum docker zabbix
asked Feb 1 '17 at 17:53
Alessandro CattaneoAlessandro Cattaneo
115 bronze badges
115 bronze badges
add a comment
|
add a comment
|
3 Answers
3
active
oldest
votes
May be it blocks on "systemctl preset" because in a systemd-controlled operating system that one tries to talk to the systemd daemon to execute the command. However in a docker container there is no systemd daemon.
You could try to avoid that potential problem by using the https://github.com/gdraheim/docker-systemctl-replacement to execute the "systemctl preset".
I doubt that this is the problem sincecentos:latest
has/usr/bin/systemctl
already built in:[root@desktop]# docker run -ti --rm centos:latest /bin/bash
[root@79cfd0768438 /]# ls -la /usr/bin/systemctl
-rwxr-xr-x. 1 root root 645888 Mar 7 13:27 /usr/bin/systemctl
Moreover, the%any_command% || :
will always returnTRUE
because of|| :
, even if file doesn't exist:[root@79cfd0768438 /]# /NoSuchCommand || :
bash: /NoSuchCommand: No such file or directory
[root@79cfd0768438 /]# echo $?
0
– Alessandro Cattaneo
Jun 30 '18 at 9:10
add a comment
|
According to https://github.com/tianon/docker-brew-ubuntu-core/issues/122, you should add this to the top of the Dockerfile
:
# Do not exclude man pages & other documentation
RUN rm /etc/dpkg/dpkg.cfg.d/excludes
That’s very unlikely to help on a CentOS-based image.
– Stephen Kitt
Feb 27 at 13:49
add a comment
|
I couldn't figure out a way to get the create.sql.gz
file to install while running inside a Docker CentOS 7 container (even though I can start it with systemd running properly), but I did the following workaround:
wget https://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/4.2.6/zabbix-4.2.6.tar.gz/download
mv download download.tar.gz
tar -xzvf download.tar.gz
cd zabbix-4.2.6/database/mysql
mysql -uzabbix -p[password] zabbix < schema.sql
mysql -uzabbix -p[password] zabbix < images.sql
mysql -uzabbix -p[password] zabbix < data.sql
And then I could finish the frontend installation of Zabbix.
Annoying, but it worked and was the only way I could get this going without being able to source a create.sql.gz
file from anywhere else.
New contributor
add a comment
|
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f341799%2fzabbix-server-mysql-on-docker-centoslatest-skips-some-files-during-install%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
May be it blocks on "systemctl preset" because in a systemd-controlled operating system that one tries to talk to the systemd daemon to execute the command. However in a docker container there is no systemd daemon.
You could try to avoid that potential problem by using the https://github.com/gdraheim/docker-systemctl-replacement to execute the "systemctl preset".
I doubt that this is the problem sincecentos:latest
has/usr/bin/systemctl
already built in:[root@desktop]# docker run -ti --rm centos:latest /bin/bash
[root@79cfd0768438 /]# ls -la /usr/bin/systemctl
-rwxr-xr-x. 1 root root 645888 Mar 7 13:27 /usr/bin/systemctl
Moreover, the%any_command% || :
will always returnTRUE
because of|| :
, even if file doesn't exist:[root@79cfd0768438 /]# /NoSuchCommand || :
bash: /NoSuchCommand: No such file or directory
[root@79cfd0768438 /]# echo $?
0
– Alessandro Cattaneo
Jun 30 '18 at 9:10
add a comment
|
May be it blocks on "systemctl preset" because in a systemd-controlled operating system that one tries to talk to the systemd daemon to execute the command. However in a docker container there is no systemd daemon.
You could try to avoid that potential problem by using the https://github.com/gdraheim/docker-systemctl-replacement to execute the "systemctl preset".
I doubt that this is the problem sincecentos:latest
has/usr/bin/systemctl
already built in:[root@desktop]# docker run -ti --rm centos:latest /bin/bash
[root@79cfd0768438 /]# ls -la /usr/bin/systemctl
-rwxr-xr-x. 1 root root 645888 Mar 7 13:27 /usr/bin/systemctl
Moreover, the%any_command% || :
will always returnTRUE
because of|| :
, even if file doesn't exist:[root@79cfd0768438 /]# /NoSuchCommand || :
bash: /NoSuchCommand: No such file or directory
[root@79cfd0768438 /]# echo $?
0
– Alessandro Cattaneo
Jun 30 '18 at 9:10
add a comment
|
May be it blocks on "systemctl preset" because in a systemd-controlled operating system that one tries to talk to the systemd daemon to execute the command. However in a docker container there is no systemd daemon.
You could try to avoid that potential problem by using the https://github.com/gdraheim/docker-systemctl-replacement to execute the "systemctl preset".
May be it blocks on "systemctl preset" because in a systemd-controlled operating system that one tries to talk to the systemd daemon to execute the command. However in a docker container there is no systemd daemon.
You could try to avoid that potential problem by using the https://github.com/gdraheim/docker-systemctl-replacement to execute the "systemctl preset".
answered Nov 30 '17 at 0:03
Guido U. DraheimGuido U. Draheim
1112 bronze badges
1112 bronze badges
I doubt that this is the problem sincecentos:latest
has/usr/bin/systemctl
already built in:[root@desktop]# docker run -ti --rm centos:latest /bin/bash
[root@79cfd0768438 /]# ls -la /usr/bin/systemctl
-rwxr-xr-x. 1 root root 645888 Mar 7 13:27 /usr/bin/systemctl
Moreover, the%any_command% || :
will always returnTRUE
because of|| :
, even if file doesn't exist:[root@79cfd0768438 /]# /NoSuchCommand || :
bash: /NoSuchCommand: No such file or directory
[root@79cfd0768438 /]# echo $?
0
– Alessandro Cattaneo
Jun 30 '18 at 9:10
add a comment
|
I doubt that this is the problem sincecentos:latest
has/usr/bin/systemctl
already built in:[root@desktop]# docker run -ti --rm centos:latest /bin/bash
[root@79cfd0768438 /]# ls -la /usr/bin/systemctl
-rwxr-xr-x. 1 root root 645888 Mar 7 13:27 /usr/bin/systemctl
Moreover, the%any_command% || :
will always returnTRUE
because of|| :
, even if file doesn't exist:[root@79cfd0768438 /]# /NoSuchCommand || :
bash: /NoSuchCommand: No such file or directory
[root@79cfd0768438 /]# echo $?
0
– Alessandro Cattaneo
Jun 30 '18 at 9:10
I doubt that this is the problem since
centos:latest
has /usr/bin/systemctl
already built in: [root@desktop]# docker run -ti --rm centos:latest /bin/bash
[root@79cfd0768438 /]# ls -la /usr/bin/systemctl
-rwxr-xr-x. 1 root root 645888 Mar 7 13:27 /usr/bin/systemctl
Moreover, the %any_command% || :
will always return TRUE
because of || :
, even if file doesn't exist: [root@79cfd0768438 /]# /NoSuchCommand || :
bash: /NoSuchCommand: No such file or directory
[root@79cfd0768438 /]# echo $?
0
– Alessandro Cattaneo
Jun 30 '18 at 9:10
I doubt that this is the problem since
centos:latest
has /usr/bin/systemctl
already built in: [root@desktop]# docker run -ti --rm centos:latest /bin/bash
[root@79cfd0768438 /]# ls -la /usr/bin/systemctl
-rwxr-xr-x. 1 root root 645888 Mar 7 13:27 /usr/bin/systemctl
Moreover, the %any_command% || :
will always return TRUE
because of || :
, even if file doesn't exist: [root@79cfd0768438 /]# /NoSuchCommand || :
bash: /NoSuchCommand: No such file or directory
[root@79cfd0768438 /]# echo $?
0
– Alessandro Cattaneo
Jun 30 '18 at 9:10
add a comment
|
According to https://github.com/tianon/docker-brew-ubuntu-core/issues/122, you should add this to the top of the Dockerfile
:
# Do not exclude man pages & other documentation
RUN rm /etc/dpkg/dpkg.cfg.d/excludes
That’s very unlikely to help on a CentOS-based image.
– Stephen Kitt
Feb 27 at 13:49
add a comment
|
According to https://github.com/tianon/docker-brew-ubuntu-core/issues/122, you should add this to the top of the Dockerfile
:
# Do not exclude man pages & other documentation
RUN rm /etc/dpkg/dpkg.cfg.d/excludes
That’s very unlikely to help on a CentOS-based image.
– Stephen Kitt
Feb 27 at 13:49
add a comment
|
According to https://github.com/tianon/docker-brew-ubuntu-core/issues/122, you should add this to the top of the Dockerfile
:
# Do not exclude man pages & other documentation
RUN rm /etc/dpkg/dpkg.cfg.d/excludes
According to https://github.com/tianon/docker-brew-ubuntu-core/issues/122, you should add this to the top of the Dockerfile
:
# Do not exclude man pages & other documentation
RUN rm /etc/dpkg/dpkg.cfg.d/excludes
edited Feb 27 at 15:27
Michael Mrozek♦
65k29 gold badges198 silver badges216 bronze badges
65k29 gold badges198 silver badges216 bronze badges
answered Feb 27 at 13:17
Vitaliy BreslavskyiVitaliy Breslavskyi
1
1
That’s very unlikely to help on a CentOS-based image.
– Stephen Kitt
Feb 27 at 13:49
add a comment
|
That’s very unlikely to help on a CentOS-based image.
– Stephen Kitt
Feb 27 at 13:49
That’s very unlikely to help on a CentOS-based image.
– Stephen Kitt
Feb 27 at 13:49
That’s very unlikely to help on a CentOS-based image.
– Stephen Kitt
Feb 27 at 13:49
add a comment
|
I couldn't figure out a way to get the create.sql.gz
file to install while running inside a Docker CentOS 7 container (even though I can start it with systemd running properly), but I did the following workaround:
wget https://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/4.2.6/zabbix-4.2.6.tar.gz/download
mv download download.tar.gz
tar -xzvf download.tar.gz
cd zabbix-4.2.6/database/mysql
mysql -uzabbix -p[password] zabbix < schema.sql
mysql -uzabbix -p[password] zabbix < images.sql
mysql -uzabbix -p[password] zabbix < data.sql
And then I could finish the frontend installation of Zabbix.
Annoying, but it worked and was the only way I could get this going without being able to source a create.sql.gz
file from anywhere else.
New contributor
add a comment
|
I couldn't figure out a way to get the create.sql.gz
file to install while running inside a Docker CentOS 7 container (even though I can start it with systemd running properly), but I did the following workaround:
wget https://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/4.2.6/zabbix-4.2.6.tar.gz/download
mv download download.tar.gz
tar -xzvf download.tar.gz
cd zabbix-4.2.6/database/mysql
mysql -uzabbix -p[password] zabbix < schema.sql
mysql -uzabbix -p[password] zabbix < images.sql
mysql -uzabbix -p[password] zabbix < data.sql
And then I could finish the frontend installation of Zabbix.
Annoying, but it worked and was the only way I could get this going without being able to source a create.sql.gz
file from anywhere else.
New contributor
add a comment
|
I couldn't figure out a way to get the create.sql.gz
file to install while running inside a Docker CentOS 7 container (even though I can start it with systemd running properly), but I did the following workaround:
wget https://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/4.2.6/zabbix-4.2.6.tar.gz/download
mv download download.tar.gz
tar -xzvf download.tar.gz
cd zabbix-4.2.6/database/mysql
mysql -uzabbix -p[password] zabbix < schema.sql
mysql -uzabbix -p[password] zabbix < images.sql
mysql -uzabbix -p[password] zabbix < data.sql
And then I could finish the frontend installation of Zabbix.
Annoying, but it worked and was the only way I could get this going without being able to source a create.sql.gz
file from anywhere else.
New contributor
I couldn't figure out a way to get the create.sql.gz
file to install while running inside a Docker CentOS 7 container (even though I can start it with systemd running properly), but I did the following workaround:
wget https://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/4.2.6/zabbix-4.2.6.tar.gz/download
mv download download.tar.gz
tar -xzvf download.tar.gz
cd zabbix-4.2.6/database/mysql
mysql -uzabbix -p[password] zabbix < schema.sql
mysql -uzabbix -p[password] zabbix < images.sql
mysql -uzabbix -p[password] zabbix < data.sql
And then I could finish the frontend installation of Zabbix.
Annoying, but it worked and was the only way I could get this going without being able to source a create.sql.gz
file from anywhere else.
New contributor
New contributor
answered 37 mins ago
geerlingguygeerlingguy
1039 bronze badges
1039 bronze badges
New contributor
New contributor
add a comment
|
add a comment
|
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f341799%2fzabbix-server-mysql-on-docker-centoslatest-skips-some-files-during-install%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown