Comments (13)
Yup, I got caught by this one recently.
The Ubuntu packaging of automake
brings in newer versions of config.guess
and config.sub
as a dependency into /usr/share/misc.
You can copy these in to the NSCA source and it builds happily.
Lines 180-183 then look like
git clone https://github.com/NagiosEnterprises/nsca.git && \
cd nsca && \
git checkout $NSCA_TAG && \
cp /usr/share/misc/config.* . && \
./configure \
....
I went down a rabbit warren via nzbget/nzbget#418 to figure this all out.
Hope that helps.
from docker-nagios.
I got multi-branch multi-architecture matrix builds working so there is now an
amd64
,arm64
, andarm-v7
architecture variation of this image.https://sharex.tronflix.app/zORI8/LALEJEPo06.png/raw
@malcsmith & @jkoan - Please test this with the
:develop
branch and let me know.
Works on armv7
from docker-nagios.
It's possible it is due to the out of date config.guess, but it pulls from the official GitHub repo so they would need to correct this upstream.
from docker-nagios.
Yup, I got caught by this one recently.
The Ubuntu packaging of
automake
brings in newer versions ofconfig.guess
andconfig.sub
as a dependency into /usr/share/misc.You can copy these in to the NSCA source and it builds happily.
Lines 180-183 then look like
git clone https://github.com/NagiosEnterprises/nsca.git && \ cd nsca && \ git checkout $NSCA_TAG && \ cp /usr/share/misc/config.* . && \ ./configure \ ....
I went down a rabbit warren via nzbget/nzbget#418 to figure this all out.
Hope that helps.
Are you aware whether or not this would have any negative impact on other Systems? I would like to make this change so that it doesn't require anyone to build their own image, but don't want it to break for others.
from docker-nagios.
@malcsmith @run2000 - Just pushed the fix to the develop
tag. Please try it and let me know if it works for you. It seems to work fine on my Ubuntu VM.
from docker-nagios.
On ARM64 it gets past that step, but fails with the additional plugins:
Building wheels for collected packages: pymssql
Building wheel for pymssql (PEP 517): started
Building wheel for pymssql (PEP 517): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /usr/bin/python2 /usr/local/lib/python2.7/dist-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmpzov7ua
cwd: /tmp/pip-install-xHOCc9/pymssql
Complete output (21 lines):
setup.py: platform.system() => 'Linux'
setup.py: platform.architecture() => ('64bit', '')
setup.py: platform.libc_ver() => ('glibc', '2.29')
setup.py: Not using bundled FreeTDS
setup.py: include_dirs = ['/usr/local/include']
setup.py: library_dirs = ['/usr/local/lib']
running bdist_wheel
running build
running build_ext
cythoning src/_mssql.pyx to src/_mssql.c
cythoning src/pymssql.pyx to src/pymssql.c
building '_mssql' extension
creating build
creating build/temp.linux-aarch64-2.7
creating build/temp.linux-aarch64-2.7/src
aarch64-linux-gnu-gcc -pthread -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-Mlh1FU/python2.7-2.7.18=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/include -I/usr/include/python2.7 -c src/_mssql.c -o build/temp.linux-aarch64-2.7/src/_mssql.o -DMSDBLIB
src/_mssql.c:6:10: fatal error: Python.h: No such file or directory
6 | #include "Python.h"
| ^~~~~~~~~~
compilation terminated.
error: command 'aarch64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for pymssql
Failed to build pymssql
ERROR: Could not build wheels for pymssql which use PEP 517 and cannot be installed directly
The command '/bin/sh -c cd /opt && wget -q -O get-pip.py https://bootstrap.pypa.io/pip/2.7/get-pip.py && python2 get-pip.py && pip install --no-cache-dir "pymssql<2.2.0" && pip3 install --no-cache-dir pywbem && git clone https://github.com/willixix/naglio-plugins.git WL-Nagios-Plugins && git clone https://github.com/JasonRivers/nagios-plugins.git JR-Nagios-Plugins && git clone https://github.com/justintime/nagios-plugins.git JE-Nagios-Plugins && git clone https://github.com/nagiosenterprises/check_mssql_collection.git nagios-mssql && wget -q -O ${NAGIOS_HOME}/libexec/check_ncpa.py https://raw.githubusercontent.com/NagiosEnterprises/ncpa/v2.0.5/client/check_ncpa.py && chmod +x /opt/WL-Nagios-Plugins/check* && chmod +x /opt/JE-Nagios-Plugins/check_mem/check_mem.pl && chmod +x ${NAGIOS_HOME}/libexec/check_ncpa.py && cp /opt/JE-Nagios-Plugins/check_mem/check_mem.pl ${NAGIOS_HOME}/libexec/ && cp /opt/nagios-mssql/check_mssql_database.py ${NAGIOS_HOME}/libexec/ && cp /opt/nagios-mssql/check_mssql_server.py ${NAGIOS_HOME}/libexec/' returned a non-zero code: 1
Likely this is unrelated to the change above.
from docker-nagios.
On ARM64 it gets past that step, but fails with the additional plugins:
Building wheels for collected packages: pymssql Building wheel for pymssql (PEP 517): started Building wheel for pymssql (PEP 517): finished with status 'error' ERROR: Command errored out with exit status 1: command: /usr/bin/python2 /usr/local/lib/python2.7/dist-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmpzov7ua cwd: /tmp/pip-install-xHOCc9/pymssql Complete output (21 lines): setup.py: platform.system() => 'Linux' setup.py: platform.architecture() => ('64bit', '') setup.py: platform.libc_ver() => ('glibc', '2.29') setup.py: Not using bundled FreeTDS setup.py: include_dirs = ['/usr/local/include'] setup.py: library_dirs = ['/usr/local/lib'] running bdist_wheel running build running build_ext cythoning src/_mssql.pyx to src/_mssql.c cythoning src/pymssql.pyx to src/pymssql.c building '_mssql' extension creating build creating build/temp.linux-aarch64-2.7 creating build/temp.linux-aarch64-2.7/src aarch64-linux-gnu-gcc -pthread -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-Mlh1FU/python2.7-2.7.18=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/include -I/usr/include/python2.7 -c src/_mssql.c -o build/temp.linux-aarch64-2.7/src/_mssql.o -DMSDBLIB src/_mssql.c:6:10: fatal error: Python.h: No such file or directory 6 | #include "Python.h" | ^~~~~~~~~~ compilation terminated. error: command 'aarch64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- ERROR: Failed building wheel for pymssql Failed to build pymssql ERROR: Could not build wheels for pymssql which use PEP 517 and cannot be installed directly The command '/bin/sh -c cd /opt && wget -q -O get-pip.py https://bootstrap.pypa.io/pip/2.7/get-pip.py && python2 get-pip.py && pip install --no-cache-dir "pymssql<2.2.0" && pip3 install --no-cache-dir pywbem && git clone https://github.com/willixix/naglio-plugins.git WL-Nagios-Plugins && git clone https://github.com/JasonRivers/nagios-plugins.git JR-Nagios-Plugins && git clone https://github.com/justintime/nagios-plugins.git JE-Nagios-Plugins && git clone https://github.com/nagiosenterprises/check_mssql_collection.git nagios-mssql && wget -q -O ${NAGIOS_HOME}/libexec/check_ncpa.py https://raw.githubusercontent.com/NagiosEnterprises/ncpa/v2.0.5/client/check_ncpa.py && chmod +x /opt/WL-Nagios-Plugins/check* && chmod +x /opt/JE-Nagios-Plugins/check_mem/check_mem.pl && chmod +x ${NAGIOS_HOME}/libexec/check_ncpa.py && cp /opt/JE-Nagios-Plugins/check_mem/check_mem.pl ${NAGIOS_HOME}/libexec/ && cp /opt/nagios-mssql/check_mssql_database.py ${NAGIOS_HOME}/libexec/ && cp /opt/nagios-mssql/check_mssql_server.py ${NAGIOS_HOME}/libexec/' returned a non-zero code: 1
Likely this is unrelated to the change above.
I had the same issue when building for arm which I fixed here: c4fb3ae
Currently I am working on #15 Which is the branch here: https://github.com/jkoan/Docker-Nagios/commits/docker-build
With my branch it's already working well.
from docker-nagios.
On ARM64 it gets past that step, but fails with the additional plugins:
Building wheels for collected packages: pymssql Building wheel for pymssql (PEP 517): started Building wheel for pymssql (PEP 517): finished with status 'error' ERROR: Command errored out with exit status 1: command: /usr/bin/python2 /usr/local/lib/python2.7/dist-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmpzov7ua cwd: /tmp/pip-install-xHOCc9/pymssql Complete output (21 lines): setup.py: platform.system() => 'Linux' setup.py: platform.architecture() => ('64bit', '') setup.py: platform.libc_ver() => ('glibc', '2.29') setup.py: Not using bundled FreeTDS setup.py: include_dirs = ['/usr/local/include'] setup.py: library_dirs = ['/usr/local/lib'] running bdist_wheel running build running build_ext cythoning src/_mssql.pyx to src/_mssql.c cythoning src/pymssql.pyx to src/pymssql.c building '_mssql' extension creating build creating build/temp.linux-aarch64-2.7 creating build/temp.linux-aarch64-2.7/src aarch64-linux-gnu-gcc -pthread -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-Mlh1FU/python2.7-2.7.18=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/include -I/usr/include/python2.7 -c src/_mssql.c -o build/temp.linux-aarch64-2.7/src/_mssql.o -DMSDBLIB src/_mssql.c:6:10: fatal error: Python.h: No such file or directory 6 | #include "Python.h" | ^~~~~~~~~~ compilation terminated. error: command 'aarch64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- ERROR: Failed building wheel for pymssql Failed to build pymssql ERROR: Could not build wheels for pymssql which use PEP 517 and cannot be installed directly The command '/bin/sh -c cd /opt && wget -q -O get-pip.py https://bootstrap.pypa.io/pip/2.7/get-pip.py && python2 get-pip.py && pip install --no-cache-dir "pymssql<2.2.0" && pip3 install --no-cache-dir pywbem && git clone https://github.com/willixix/naglio-plugins.git WL-Nagios-Plugins && git clone https://github.com/JasonRivers/nagios-plugins.git JR-Nagios-Plugins && git clone https://github.com/justintime/nagios-plugins.git JE-Nagios-Plugins && git clone https://github.com/nagiosenterprises/check_mssql_collection.git nagios-mssql && wget -q -O ${NAGIOS_HOME}/libexec/check_ncpa.py https://raw.githubusercontent.com/NagiosEnterprises/ncpa/v2.0.5/client/check_ncpa.py && chmod +x /opt/WL-Nagios-Plugins/check* && chmod +x /opt/JE-Nagios-Plugins/check_mem/check_mem.pl && chmod +x ${NAGIOS_HOME}/libexec/check_ncpa.py && cp /opt/JE-Nagios-Plugins/check_mem/check_mem.pl ${NAGIOS_HOME}/libexec/ && cp /opt/nagios-mssql/check_mssql_database.py ${NAGIOS_HOME}/libexec/ && cp /opt/nagios-mssql/check_mssql_server.py ${NAGIOS_HOME}/libexec/' returned a non-zero code: 1
Likely this is unrelated to the change above.
Does it just not run on ARM64 as-is without trying to build it?
from docker-nagios.
Actually no. Probably on pypi thers no package prebuild?
from docker-nagios.
Actually no. Probably on pypi thers no package prebuild?
So the existing image does or does not work? I would assume there's no package pre-build given the error. Would have to do some research on it though.
from docker-nagios.
Here you can see binary packages for i686 and x86_64 for everything else the package will be built on installation https://pypi.org/project/pymssql/#files
As a alternative we could use the Debian packages. I can look into this
from docker-nagios.
I got multi-branch multi-architecture matrix builds working so there is now an amd64
, arm64
, and arm-v7
architecture variation of this image.
https://sharex.tronflix.app/zORI8/LALEJEPo06.png/raw
@malcsmith & @jkoan - Please test this with the :develop
branch and let me know.
from docker-nagios.
Confirmed it is working on arm64
so I am closing this and will be merging to master
soon.
from docker-nagios.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-nagios.