NCPA RPM not working on SLES 11 SP3

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
tkersten
Posts: 7
Joined: Tue Jul 07, 2015 1:24 am

NCPA RPM not working on SLES 11 SP3

Post by tkersten »

Hello,

Trying to install the NCPA agent and having no luck, as follows:

=============================================
Environment
=============================================
Client OS: SUSE Linux Enterprise Server 11 (x86_64) Service Pack 3
NCPA RPM: https://assets.nagios.com/downloads/ncp ... x86_64.rpm



=============================================
Install issue #1- pre scriptlet failure
=============================================
ntp1:/tmp # rpm -ivh ncpa-1.8.1-1.os11.x86_64.rpm
Preparing... ########################################### [100%]
nagios:x:1001:100:Nagios Monitoring User:/home/nagios:/bin/bash
usermod: invalid option -- 'a'
Try `usermod --help' or `usermod --usage' for more information.
error: %pre(ncpa-1.8.1-1.x86_64) scriptlet failed, exit status 2
error: install: %pre scriptlet failed (2), skipping ncpa-1.8.1-1



=============================================
Install issue #2- ERROR:root:code for hash md5 was not found.
=============================================

Code: Select all

ntp1:/tmp # rpm -ivh --nopre ncpa-1.8.1-1.os11.x86_64.rpm
Preparing...                ########################################### [100%]
   1:ncpa                   ########################################### [100%]
insserv: Service syslog is missed in the runlevels 4 to use service ncpa_passive
ncpa_listener             0:off  1:off  2:on   3:on   4:on   5:on   6:off
insserv: Service syslog is missed in the runlevels 4 to use service ncpa_passive
ncpa_passive              0:off  1:off  2:on   3:on   4:on   5:on   6:off
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/hashlib.py", line 139, in <module>
  File "/usr/local/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/hashlib.py", line 139, in <module>
  File "/usr/local/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
ValueError: unsupported hash type sha1
ERROR:root:code for hash sha224 was not found.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/hashlib.py", line 139, in <module>
  File "/usr/local/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
ValueError: unsupported hash type sha224
ERROR:root:code for hash sha256 was not found.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/hashlib.py", line 139, in <module>
  File "/usr/local/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
ValueError: unsupported hash type sha256
ERROR:root:code for hash sha384 was not found.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/hashlib.py", line 139, in <module>
  File "/usr/local/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
ValueError: unsupported hash type sha384
ERROR:root:code for hash sha512 was not found.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/hashlib.py", line 139, in <module>
  File "/usr/local/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
ValueError: unsupported hash type sha512
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/cx_Freeze-4.3.4-py2.7-linux-x86_64.egg/cx_Freeze/initscripts/Console.py", line 27, in <module>
  File "ncpa_posix_listener.py", line 6, in <module>
  File "/root/Development/ncpa/agent/listener/server.py", line 1, in <module>
  File "/usr/local/lib/python2.7/site-packages/flask/__init__.py", line 17, in <module>
  File "/usr/local/lib/python2.7/site-packages/werkzeug/__init__.py", line 154, in <module>
  File "/usr/local/lib/python2.7/site-packages/werkzeug/exceptions.py", line 71, in <module>
  File "/usr/local/lib/python2.7/site-packages/werkzeug/wrappers.py", line 26, in <module>
  File "/usr/local/lib/python2.7/site-packages/werkzeug/http.py", line 30, in <module>
ImportError: cannot import name md5
Started listener...
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/hashlib.py", line 139, in <module>
  File "/usr/local/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/hashlib.py", line 139, in <module>
  File "/usr/local/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
ValueError: unsupported hash type sha1
ERROR:root:code for hash sha224 was not found.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/hashlib.py", line 139, in <module>
  File "/usr/local/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
ValueError: unsupported hash type sha224
ERROR:root:code for hash sha256 was not found.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/hashlib.py", line 139, in <module>
  File "/usr/local/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
ValueError: unsupported hash type sha256
ERROR:root:code for hash sha384 was not found.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/hashlib.py", line 139, in <module>
  File "/usr/local/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
ValueError: unsupported hash type sha384
ERROR:root:code for hash sha512 was not found.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/hashlib.py", line 139, in <module>
  File "/usr/local/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
ValueError: unsupported hash type sha512
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/cx_Freeze-4.3.4-py2.7-linux-x86_64.egg/cx_Freeze/initscripts/Console.py", line 27, in <module>
  File "ncpa_posix_passive.py", line 7, in <module>
  File "/root/Development/ncpa/agent/passive/nrds.py", line 4, in <module>
  File "/root/Development/ncpa/agent/passive/nagioshandler.py", line 3, in <module>
  File "/root/Development/ncpa/agent/passive/ncpacheck.py", line 5, in <module>
  File "/root/Development/ncpa/agent/listener/server.py", line 1, in <module>
  File "/usr/local/lib/python2.7/site-packages/flask/__init__.py", line 17, in <module>
  File "/usr/local/lib/python2.7/site-packages/werkzeug/__init__.py", line 154, in <module>
  File "/usr/local/lib/python2.7/site-packages/werkzeug/exceptions.py", line 71, in <module>
  File "/usr/local/lib/python2.7/site-packages/werkzeug/wrappers.py", line 26, in <module>
  File "/usr/local/lib/python2.7/site-packages/werkzeug/http.py", line 30, in <module>
ImportError: cannot import name md5
Started passive agent...
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NCPA RPM not working on SLES 11 SP3

Post by lmiltchev »

SUSE Linux Enterprise Server 11 (x86_64) Service Pack 3 is not listed as a supported platform. There is only open SUSE 13.x...

https://assets.nagios.com/downloads/ncp ... pm-packing
Be sure to check out our Knowledgebase for helpful articles and solutions!
tkersten
Posts: 7
Joined: Tue Jul 07, 2015 1:24 am

Re: NCPA RPM not working on SLES 11 SP3

Post by tkersten »

Oh, I see. Can you please update the packages available for download at https://assets.nagios.com/downloads/ncpa/download.php then, as it currently lists packages for "SLES/OpenSUSE 11.x" and "SLES/OpenSUSE 12.x" amongst others.

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

Re: NCPA RPM not working on SLES 11 SP3

Post by lmiltchev »

My bad - I checked the documentation only (which needs to be updated), and I didn't check the download page... I tested the installer on SUSE 11 and it failed for me as well. I posted a bug report here:

https://github.com/NagiosEnterprises/ncpa/issues/188

Our developers will be looking into this as soon as they can.
Be sure to check out our Knowledgebase for helpful articles and solutions!
tkersten
Posts: 7
Joined: Tue Jul 07, 2015 1:24 am

Re: NCPA RPM not working on SLES 11 SP3

Post by tkersten »

Great. I'll keep an eye on the github link for an update then. Thank you.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: NCPA RPM not working on SLES 11 SP3

Post by hsmith »

Thank you. We'll let you know when we have a fix ready.
Former Nagios Employee.
me.
Locked