Page 1 of 1

Unable to install NCPA agnt on Suse 11 SP3

Posted: Wed Mar 02, 2016 5:14 pm
by dlukinski
Hello Nagios XI support

We are having ongoing issues with installing Nagios agents on our REDHAT/Linux servers.
Latest attempt made to install NCPA (Nagios native development, downloaded from assets in hopes we'll have problems with it VS NRPE) on SuSe 11 SP3 (fresh install).

After following your manual https://assets.nagios.com/downloads/ncp ... g_NCPA.pdf
We get few screens of errors, including md5 errors

Could these manuals be trusted? We know that NRPE cannot be (learned hard way already).
Is there ANY good way to get ANY of Nagios agents (NRPE or NCPA) on our Linux Suse 11 SP3 and REDHAT EL 6.4/5?

Please point to documentation that actually works for installing agents on Linux. complete disaster to date (5 months and counting) with getting Linux-side of monitoring operational :-\

Re: Unable to install NCPA agnt on Suse 11 SP3

Posted: Wed Mar 02, 2016 5:52 pm
by lmiltchev
Could these manuals be trusted? We know that NRPE cannot be (learned hard way already).
Is there ANY good way to get ANY of Nagios agents (NRPE or NCPA) on our Linux Suse 11 SP3 and REDHAT EL 6.4/5?
I never had issues installing the Linux agent (NRPE + Nagios plugins) when I followed the official documentation... How did you try to install NRPE? Did you follow the document below?

https://assets.nagios.com/downloads/nag ... _Agent.pdf
After following your manual https://assets.nagios.com/downloads/ncp ... g_NCPA.pdf
We get few screens of errors, including md5 errors
Can you show us these errors? We will try to recreate the issue in house.

Re: Unable to install NCPA agnt on Suse 11 SP3

Posted: Thu Mar 03, 2016 10:12 am
by dlukinski
lmiltchev wrote:
Could these manuals be trusted? We know that NRPE cannot be (learned hard way already).
Is there ANY good way to get ANY of Nagios agents (NRPE or NCPA) on our Linux Suse 11 SP3 and REDHAT EL 6.4/5?
I never had issues installing the Linux agent (NRPE + Nagios plugins) when I followed the official documentation... How did you try to install NRPE? Did you follow the document below?

https://assets.nagios.com/downloads/nag ... _Agent.pdf
After following your manual https://assets.nagios.com/downloads/ncp ... g_NCPA.pdf
We get few screens of errors, including md5 errors
Can you show us these errors? We will try to recreate the issue in house.
-----------------------------------------------------------------------------------------------
fikc-sles11-test04:/tmp # rpm -ivh --nomd5 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_listener
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_listener
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...
fikc-sles11-test04:/tmp #

Re: Unable to install NCPA agnt on Suse 11 SP3

Posted: Thu Mar 03, 2016 1:40 pm
by dlukinski
Let's keep it NCPA only (this thread)
I am to open NRPE thread (appears us getting same troubles with both SuSe and Redhat VS NRPE 2.15

Re: Unable to install NCPA agnt on Suse 11 SP3

Posted: Thu Mar 03, 2016 2:43 pm
by lmiltchev
I just heard back from our developers - they said that the current version of NCPA won't install properly on SLES but this will be fixed in later releases. In addition to the Nagios support forum, I would encourage you to post your issue on GitHub (just to make sure it will get more "traction").

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

Re: Unable to install NCPA agnt on Suse 11 SP3

Posted: Thu Mar 03, 2016 3:38 pm
by dlukinski
lmiltchev wrote:I just heard back from our developers - they said that the current version of NCPA won't install properly on SLES but this will be fixed in later releases. In addition to the Nagios support forum, I would encourage you to post your issue on GitHub (just to make sure it will get more "traction").

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

Thank you. Good to know.
What about RedHat EL 6.4/5 VS NCPA ?

Re: Unable to install NCPA agnt on Suse 11 SP3

Posted: Thu Mar 03, 2016 4:25 pm
by lmiltchev
It should work out of the box. I just installed NCPA on RHEL 6, and it seems to be working fine.

Code: Select all

[root@rhel61x64 tmp]# rpm -ivh
.ICE-unix/                                yum.log
ncpa-1.8.1-1.el6.x86_64.rpm               yum_save_tx-2014-01-22-09-30YvjFpE.yumtx
[root@rhel61x64 tmp]# rpm -ivh ncpa-1.8.1-1.el6.x86_64.rpm
Preparing...                ########################################### [100%]
   1:ncpa                   ########################################### [100%]
Started listener...
Started passive agent...
[root@rhel61x64 tmp]# ps -ef | grep ncpa
root      1257     1  0 15:12 ?        00:00:00 ./ncpa_posix_listener --start
root      1265     1  0 15:12 ?        00:00:00 /usr/local/ncpa/ncpa_posix_passive --start
example01.PNG
Did you run into some issues?

Re: Unable to install NCPA agnt on Suse 11 SP3

Posted: Fri Mar 04, 2016 10:30 am
by dlukinski
lmiltchev wrote:It should work out of the box. I just installed NCPA on RHEL 6, and it seems to be working fine.

Code: Select all

[root@rhel61x64 tmp]# rpm -ivh
.ICE-unix/                                yum.log
ncpa-1.8.1-1.el6.x86_64.rpm               yum_save_tx-2014-01-22-09-30YvjFpE.yumtx
[root@rhel61x64 tmp]# rpm -ivh ncpa-1.8.1-1.el6.x86_64.rpm
Preparing...                ########################################### [100%]
   1:ncpa                   ########################################### [100%]
Started listener...
Started passive agent...
[root@rhel61x64 tmp]# ps -ef | grep ncpa
root      1257     1  0 15:12 ?        00:00:00 ./ncpa_posix_listener --start
root      1265     1  0 15:12 ?        00:00:00 /usr/local/ncpa/ncpa_posix_passive --start
example01.PNG
Did you run into some issues?
Did not try yet: have to major group of Linux servers (depending on application). Tempted to use NCPA where it wasn't done yet since this is your native development (better support in future)

Re: Unable to install NCPA agnt on Suse 11 SP3

Posted: Fri Mar 04, 2016 12:54 pm
by hsmith
Let us know what you come up with.

Re: Unable to install NCPA agnt on Suse 11 SP3

Posted: Thu Mar 10, 2016 11:58 am
by lgroschen
I've created a new rpm for NCPA to install on SLES service pack 3 and 4.

Here is the updated download page. I'm still working on the 32-bit build, but 64 is available. Please let me know if you come up with any issues or errors during install or operation.

https://assets.nagios.com/downloads/ncpa/download.php