NCPA agent on SLES 11.4

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
hbouma
Posts: 483
Joined: Tue Feb 27, 2018 9:31 am

NCPA agent on SLES 11.4

Post by hbouma »

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.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: NCPA agent on SLES 11.4

Post by mcapra »

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
Former Nagios employee
https://www.mcapra.com/
hbouma
Posts: 483
Joined: Tue Feb 27, 2018 9:31 am

Re: NCPA agent on SLES 11.4

Post by hbouma »

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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NCPA agent on SLES 11.4

Post by lmiltchev »

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
Be sure to check out our Knowledgebase for helpful articles and solutions!
hbouma
Posts: 483
Joined: Tue Feb 27, 2018 9:31 am

Re: NCPA agent on SLES 11.4

Post by hbouma »

Thank you. This topic may be closed.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NCPA agent on SLES 11.4

Post by lmiltchev »

Closing.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked