NCPA RPM not working on SLES 11 SP3
Posted: Sun Aug 02, 2015 10:28 pm
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
1001
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.
=============================================
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
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...