The NCPA agent on SLES 11.4 64bit is not working properly for us. When attempting to install NCPA, the agent installs, but gives an error when we attempt to use it. This is occurring across all our SLES systems when using the RPM available from the NCPA site (https://assets.nagios.com/downloads/ncp ... x86_64.rpm). The problem occurs before editing the ncpa.cfg file for the first time.
$ /etc/init.d/ncpa_listener restart
Stopped NCPA Listener
zipimport.ZipImportError: can't decompress data; zlib not available
Fatal Python error: unable to locate initialization module
/etc/init.d/ncpa_listener: line 37: 5835 Aborted $BASEDIR/ncpa_listener --stop
Started NCPA Listener
another instance seems to be running (pid 5761), exiting
We have Python 2.6.9 installed though the SLES SUSE repo. The following modules are installed for Python: gzip, gzipstream, zlib (full list available if needed).
Has anyone run into this before? Any assistance would be appreciated.
NCPA agent on SLES 11.4
Re: NCPA agent on SLES 11.4
Has zlib-devel been installed via zypper? Give that a try if it's not currently installed. It would be interesting for zipimport to build without having dependent C libraries available, though. Package managers can't handle every possible race condition, of course.
Alternatively, the Python package you installed is one that was built without zip support. I'm not 100% sure which package you installed so I can't say for sure. If zlib-devel wasn't present when you installed the Python package, you could try re-installing the Python package with zlib-devel available.
More info:
https://github.com/pypa/pip/issues/1919
Alternatively, the Python package you installed is one that was built without zip support. I'm not 100% sure which package you installed so I can't say for sure. If zlib-devel wasn't present when you installed the Python package, you could try re-installing the Python package with zlib-devel available.
More info:
https://github.com/pypa/pip/issues/1919
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: NCPA agent on SLES 11.4
Yes, zlib-devel is installed.
We are using the Python provided by SUSE.
Repository: *****************
Name: python
Version: 2.6.9-40.3.1
Arch: x86_64
Vendor: SUSE LINUX Products GmbH, Nuernberg, Germany
Support Level: unknown
Installed: Yes
Status: up-to-date
Installed Size: 1.1 MiB
Summary: Python Interpreter
Description:
Python is an interpreted, object-oriented programming language, and is
often compared to Tcl, Perl, Scheme, or Java. You can find an overview
of Python in the documentation and tutorials included in the python-doc
(HTML) or python-doc-pdf (PDF) packages.
We are using the Python provided by SUSE.
Repository: *****************
Name: python
Version: 2.6.9-40.3.1
Arch: x86_64
Vendor: SUSE LINUX Products GmbH, Nuernberg, Germany
Support Level: unknown
Installed: Yes
Status: up-to-date
Installed Size: 1.1 MiB
Summary: Python Interpreter
Description:
Python is an interpreted, object-oriented programming language, and is
often compared to Tcl, Perl, Scheme, or Java. You can find an overview
of Python in the documentation and tutorials included in the python-doc
(HTML) or python-doc-pdf (PDF) packages.
Re: NCPA agent on SLES 11.4
I was able to recreate the issue on OpenSUSE 11.4 64-bit, and reported it on GitHub:
https://github.com/NagiosEnterprises/ncpa/issues/464
https://github.com/NagiosEnterprises/ncpa/issues/464
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: NCPA agent on SLES 11.4
Thank you. This topic may be closed.
Re: NCPA agent on SLES 11.4
Closing.
Be sure to check out our Knowledgebase for helpful articles and solutions!