Page 1 of 2

problem with services using ncpa and rhel7

Posted: Mon Apr 03, 2017 1:57 pm
by UoGLibrary
Hi there we're running nagios xi and I use the ncpa agent to monitor our servers.
We've migrated content from RHEL5-64 bit to RHEL7-64 bit these are both VM's.
When I run the NCPA configuration wizard on the RHEL 7 boxes, system level items such as cpu, memory, disk etc work fine but nothing is showing up in the list of services when I hit the drop down arrow.
Services that I have had previously setup are reporting "unknown" I removed them from the Core Config Manager and tried to reset them up but as I said when I run the ncpa configuration wizard no services show up.

Can you point me in the right direction please.
Regards
Stephen

Re: problem with services using ncpa and rhel7

Posted: Mon Apr 03, 2017 3:50 pm
by lmiltchev
What is the version of the NCPA agent that you installed on the client? What is the version of Nagios XI, NCPA wizard, and the "check_ncpa.py" plugin that you are currently using?

I was not able to recreate the issue. Here's what I have:

on the client

Code: Select all

[root@TEST_XI_RHEL_7 ~]# uname -a
Linux TEST_XI_RHEL_7 3.10.0-514.2.2.el7.x86_64 #1 SMP Wed Nov 16 13:15:13 EST 2016 x86_64 x86_64 x86_64 GNU/Linux
[root@TEST_XI_RHEL_7 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.3 (Maipo)
[root@TEST_XI_RHEL_7 ~]# rpm -qa | grep ncpa
ncpa-2.0.3-1.el7.centos.x86_64
on the Nagios XI server

Code: Select all

# /usr/local/nagios/libexec/check_ncpa.py -V
check_ncpa.py, Version 1.1.0
example02.PNG
example01.PNG

Re: problem with services using ncpa and rhel7

Posted: Tue Apr 04, 2017 10:03 am
by UoGLibrary
I definitely have older versions of ncpa
for the client

Code: Select all

[swilkins@appdev-rh7 ~]$ uname -a
Linux appdev-rh7.lib.uoguelph.ca 3.10.0-514.2.2.el7.x86_64 #1 SMP Wed Nov 16 13:15:13 EST 2016 x86_64 x86_64 x86_64 GNU/Linux
[swilkins@appdev-rh7 ~]$ uname -a
Linux appdev-rh7.lib.uoguelph.ca 3.10.0-514.2.2.el7.x86_64 #1 SMP Wed Nov 16 13:15:13 EST 2016 x86_64 x86_64 x86_64 GNU/Linux
[swilkins@appdev-rh7 ~]$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.3 (Maipo)
[swilkins@appdev-rh7 ~]$ rpm -qa | grep ncpa
ncpa-1.8.1-1.el7.centos.x86_64
for the server
[swilkins@pump ~]$

Code: Select all

 /usr/local/nagios/libexec/check_ncpa.py -V
check_ncpa.py, Version 0.3.5

Re: problem with services using ncpa and rhel7

Posted: Tue Apr 04, 2017 10:24 am
by lmiltchev
What is the version of Nagios XI and the NCPA wizard that you are currently using?

I will try to lab this in house, and find a possible workaround. Having said that, most probably your issue would get resolved if you upgraded the agent and the wizard.

Re: problem with services using ncpa and rhel7

Posted: Tue Apr 04, 2017 11:00 am
by UoGLibrary
sorry im certainly no Linux guru so I greatly appreciate you supplying code.
I'm using nagios XI 5.4.2, (looks like 5.4.3 is out now). I'm not sure how to tell what version of the ncpa wizard im using, I would have thought that gets updated when I update nagios.
Can you please tell me how to find out which version of the ncpa wizard im using.

Re: problem with services using ncpa and rhel7

Posted: Tue Apr 04, 2017 11:03 am
by cdienger
You can check the wizard version from the gui under Admin > System Extensions > Manage Config Wizards

Re: problem with services using ncpa and rhel7

Posted: Tue Apr 04, 2017 11:29 am
by UoGLibrary
the ncpa wizard is version1.3.6. I see 1.4.4 is available thanks much for pointing out this page!

Re: problem with services using ncpa and rhel7

Posted: Tue Apr 04, 2017 3:03 pm
by cdienger
No problem. Let us know once you've had a chance to test after upgrading the wizard and client.

Re: problem with services using ncpa and rhel7

Posted: Tue Apr 04, 2017 3:34 pm
by UoGLibrary
I certainly will, I've already upgraded the wizard to 1.4.4 and rebooted to be sure but that didn't help on its own.
I've just rolled back to a snapshot on the client im testing from because I removed the old version of the ncpa client, downloaded and installed the new one ncpa-2.0.3.el7.x86_64.rpm

edited /usr/local/ncpa/etc/ncpa.cfg to put in our token (copied and pasted)
restarted the listener but now the wizard cant seem to connect to the box
so I'm going to try it again but that will have to wait till the morning.

I really appreciate the assistance you've given!
More tomorrow
Stephen

Re: problem with services using ncpa and rhel7

Posted: Tue Apr 04, 2017 3:48 pm
by cdienger
Sounds good. Glad to help!