Page 1 of 2

NCPA Installtion on Centos7

Posted: Thu Jun 24, 2021 6:08 am
by sneha.irali
Hi Team,

We are trying to install the NCPA agent on centos 7 server, however we find that the service is in running state but i also see it s been failed.

Attaching snap FYR.

Our Linux SME has also said that from the ncpa logs , below is the observation, logs snap is attached

The ncpa listener service is not able to start properly as its dependent on the package and the below logs indicate the same.
Without having GLIBC_2.28 it appears ncpa listener won’t start, Kindly check with the Nagios support on how to proceed further as the SOP doesn’t cover this part.
We also want to highlight that GLIBC in turn might be dependent on some other packages for which proper set of instructions are required to fix it at the earliest

CentOS - 7
Nagios version 5.8.3

Re: NCPA Installtion on Centos7

Posted: Thu Jun 24, 2021 11:37 am
by vtrac
Hi Sneha,
How are you doing?
Please run the below commands and post all outputs to this ticket:

Code: Select all

cat /etc/centos-release

rpm -qa | grep glibc

ls -l /lib64/libc.so.6

ls -l /lib64/libc*

Best Regards,
Vinh

Re: NCPA Installtion on Centos7

Posted: Thu Jun 24, 2021 1:42 pm
by sneha.irali
Hi Vinh,

Here is the o/p as requested.
[root@gmslybf5backup ~]# cat /etc/centos-release
CentOS Linux release 7.8.2003 (Core)
[root@gmslybf5backup ~]# rpm -qa | grep glibc
glibc-2.17-307.el7.1.x86_64
glibc-common-2.17-307.el7.1.x86_64
[root@gmslybf5backup ~]# ls -l /lib64/libc.so.6
lrwxrwxrwx. 1 root root 12 May 12 16:40 /lib64/libc.so.6 -> libc-2.17.so
[root@gmslybf5backup ~]# ls -l /lib64/libc*
-rwxr-xr-x. 1 root root 2156240 Mar 31 2020 /lib64/libc-2.17.so
lrwxrwxrwx. 1 root root 18 May 12 16:41 /lib64/libcacard.so.0 -> libcacard.so.0.0.0
-rwxr-xr-x. 1 root root 81520 Mar 31 2020 /lib64/libcacard.so.0.0.0
lrwxrwxrwx. 1 root root 29 May 12 16:43 /lib64/libcairo-gobject.so.2 -> libcairo-gobject.so.2.11512.0
-rwxr-xr-x. 1 root root 35784 Aug 8 2019 /lib64/libcairo-gobject.so.2.11512.0
lrwxrwxrwx. 1 root root 23 May 12 16:43 /lib64/libcairomm-1.0.so.1 -> libcairomm-1.0.so.1.4.0
-rwxr-xr-x. 1 root root 158448 Aug 2 2017 /lib64/libcairomm-1.0.so.1.4.0
lrwxrwxrwx. 1 root root 40 May 12 16:43 /lib64/libcairo-script-interpreter.so.2 -> libcairo-script-interpreter.so.2.11512.0
-rwxr-xr-x. 1 root root 149496 Aug 8 2019 /lib64/libcairo-script-interpreter.so.2.11512.0
lrwxrwxrwx. 1 root root 21 May 12 16:43 /lib64/libcairo.so.2 -> libcairo.so.2.11512.0
-rwxr-xr-x. 1 root root 1294032 Aug 8 2019 /lib64/libcairo.so.2.11512.0
lrwxrwxrwx. 1 root root 22 May 12 16:43 /lib64/libcamel-1.2.so.61 -> libcamel-1.2.so.61.0.0
-rwxr-xr-x. 1 root root 1362312 Mar 31 2020 /lib64/libcamel-1.2.so.61.0.0
lrwxrwxrwx. 1 root root 25 May 12 16:43 /lib64/libcanberra-gtk3.so.0 -> libcanberra-gtk3.so.0.1.9
-rwxr-xr-x. 1 root root 19808 Mar 31 2020 /lib64/libcanberra-gtk3.so.0.1.9
lrwxrwxrwx. 1 root root 24 May 12 16:43 /lib64/libcanberra-gtk.so.0 -> libcanberra-gtk.so.0.1.9
-rwxr-xr-x. 1 root root 19816 Mar 31 2020 /lib64/libcanberra-gtk.so.0.1.9
lrwxrwxrwx. 1 root root 20 May 12 16:43 /lib64/libcanberra.so.0 -> libcanberra.so.0.2.5
-rwxr-xr-x. 1 root root 70472 Mar 31 2020 /lib64/libcanberra.so.0.2.5
lrwxrwxrwx. 1 root root 18 May 12 16:40 /lib64/libcap-ng.so.0 -> libcap-ng.so.0.0.0
-rwxr-xr-x. 1 root root 23968 Nov 20 2015 /lib64/libcap-ng.so.0.0.0
lrwxrwxrwx. 1 root root 14 May 12 16:40 /lib64/libcap.so.2 -> libcap.so.2.22
-rwxr-xr-x. 1 root root 20048 Mar 31 2020 /lib64/libcap.so.2.22
lrwxrwxrwx. 1 root root 27 May 12 16:41 /lib64/libcdda_interface.so.0 -> libcdda_interface.so.0.10.2
-rwxr-xr-x. 1 root root 102416 Jun 10 2014 /lib64/libcdda_interface.so.0.10.2
lrwxrwxrwx. 1 root root 26 May 12 16:41 /lib64/libcdda_paranoia.so.0 -> libcdda_paranoia.so.0.10.2
-rwxr-xr-x. 1 root root 49944 Jun 10 2014 /lib64/libcdda_paranoia.so.0.10.2
lrwxrwxrwx. 1 root root 21 May 12 16:41 /lib64/libcdio_cdda.so.1 -> libcdio_cdda.so.1.0.0
-rwxr-xr-x. 1 root root 32344 Jun 9 2014 /lib64/libcdio_cdda.so.1.0.0
lrwxrwxrwx. 1 root root 25 May 12 16:41 /lib64/libcdio_paranoia.so.1 -> libcdio_paranoia.so.1.0.0
-rwxr-xr-x. 1 root root 32584 Jun 9 2014 /lib64/libcdio_paranoia.so.1.0.0
lrwxrwxrwx. 1 root root 18 May 12 16:41 /lib64/libcdio++.so.0 -> libcdio++.so.0.0.2
-rwxr-xr-x. 1 root root 15472 Oct 30 2018 /lib64/libcdio++.so.0.0.2
lrwxrwxrwx. 1 root root 17 May 12 16:41 /lib64/libcdio.so.15 -> libcdio.so.15.0.0
-rwxr-xr-x. 1 root root 157944 Oct 30 2018 /lib64/libcdio.so.15.0.0
lrwxrwxrwx. 1 root root 19 May 12 16:41 /lib64/libcelt051.so.0 -> libcelt051.so.0.0.0
-rwxr-xr-x. 1 root root 62688 Jun 10 2014 /lib64/libcelt051.so.0.0.0
lrwxrwxrwx. 1 root root 19 May 12 16:42 /lib64/libcgroup.so.1 -> libcgroup.so.1.0.41
-rwxr-xr-x. 1 root root 104144 Aug 8 2019 /lib64/libcgroup.so.1.0.41
lrwxrwxrwx. 1 root root 27 May 12 16:43 /lib64/libchamplain-0.12.so.0 -> libchamplain-0.12.so.0.10.0
-rwxr-xr-x. 1 root root 289768 Oct 30 2018 /lib64/libchamplain-0.12.so.0.10.0
lrwxrwxrwx. 1 root root 31 May 12 16:43 /lib64/libchamplain-gtk-0.12.so.0 -> libchamplain-gtk-0.12.so.0.10.0
-rwxr-xr-x. 1 root root 15816 Oct 30 2018 /lib64/libchamplain-gtk-0.12.so.0.10.0
lrwxrwxrwx. 1 root root 24 May 12 16:43 /lib64/libcheese-gtk.so.23 -> libcheese-gtk.so.23.1.15
-rwxr-xr-x. 1 root root 58584 Aug 6 2017 /lib64/libcheese-gtk.so.23.1.15
lrwxrwxrwx. 1 root root 23 May 12 16:43 /lib64/libcheese-gtk.so.25 -> libcheese-gtk.so.25.1.0
-rwxr-xr-x. 1 root root 58664 Nov 2 2018 /lib64/libcheese-gtk.so.25.1.0
lrwxrwxrwx. 1 root root 19 May 12 16:43 /lib64/libcheese.so.7 -> libcheese.so.7.0.31
-rwxr-xr-x. 1 root root 75008 Aug 6 2017 /lib64/libcheese.so.7.0.31
lrwxrwxrwx. 1 root root 19 May 12 16:43 /lib64/libcheese.so.8 -> libcheese.so.8.0.10
-rwxr-xr-x. 1 root root 71120 Nov 2 2018 /lib64/libcheese.so.8.0.10
lrwxrwxrwx. 1 root root 19 May 12 16:41 /lib64/libchewing.so.3 -> libchewing.so.3.0.1
-rwxr-xr-x. 1 root root 118832 Jun 10 2014 /lib64/libchewing.so.3.0.1
-rwxr-xr-x. 1 root root 200992 Mar 31 2020 /lib64/libcidn-2.17.so
lrwxrwxrwx. 1 root root 15 May 12 16:40 /lib64/libcidn.so.1 -> libcidn-2.17.so
lrwxrwxrwx. 1 root root 26 May 12 16:43 /lib64/libclutter-1.0.so.0 -> libclutter-1.0.so.0.2600.2
-rwxr-xr-x. 1 root root 1452288 Apr 12 2018 /lib64/libclutter-1.0.so.0.2600.2
lrwxrwxrwx. 1 root root 26 May 12 16:43 /lib64/libclutter-glx-1.0.so.0 -> libclutter-1.0.so.0.2600.2
lrwxrwxrwx. 1 root root 28 May 12 16:43 /lib64/libclutter-gst-2.0.so.0 -> libclutter-gst-2.0.so.0.18.0
-rwxr-xr-x. 1 root root 98136 Aug 2 2017 /lib64/libclutter-gst-2.0.so.0.18.0
lrwxrwxrwx. 1 root root 28 May 12 16:43 /lib64/libclutter-gst-3.0.so.0 -> libclutter-gst-3.0.so.0.26.0
-rwxr-xr-x. 1 root root 156688 Oct 30 2018 /lib64/libclutter-gst-3.0.so.0.26.0
lrwxrwxrwx. 1 root root 29 May 12 16:43 /lib64/libclutter-gtk-1.0.so.0 -> libclutter-gtk-1.0.so.0.800.4
-rwxr-xr-x. 1 root root 54848 Apr 10 2018 /lib64/libclutter-gtk-1.0.so.0.800.4
lrwxrwxrwx. 1 root root 23 May 12 16:43 /lib64/libcogl-pango.so.20 -> libcogl-pango.so.20.4.2
-rwxr-xr-x. 1 root root 37648 Apr 12 2018 /lib64/libcogl-pango.so.20.4.2
lrwxrwxrwx. 1 root root 22 May 12 16:43 /lib64/libcogl-path.so.20 -> libcogl-path.so.20.4.2
-rwxr-xr-x. 1 root root 75040 Apr 12 2018 /lib64/libcogl-path.so.20.4.2
lrwxrwxrwx. 1 root root 17 May 12 16:43 /lib64/libcogl.so.20 -> libcogl.so.20.4.2
-rwxr-xr-x. 1 root root 782784 Apr 12 2018 /lib64/libcogl.so.20.4.2
lrwxrwxrwx. 1 root root 22 May 12 16:41 /lib64/libcollection.so.2 -> libcollection.so.2.1.1
-rwxr-xr-x. 1 root root 53456 Oct 30 2018 /lib64/libcollection.so.2.1.1
lrwxrwxrwx. 1 root root 22 May 12 16:43 /lib64/libcolord-gtk.so.1 -> libcolord-gtk.so.1.0.2
-rwxr-xr-x. 1 root root 28736 Nov 20 2015 /lib64/libcolord-gtk.so.1.0.2
lrwxrwxrwx. 1 root root 26 May 12 16:41 /lib64/libcolordprivate.so.1 -> libcolordprivate.so.1.0.21
-rwxr-xr-x. 1 root root 151520 Nov 20 2015 /lib64/libcolordprivate.so.1.0.21
lrwxrwxrwx. 1 root root 25 May 12 16:41 /lib64/libcolordprivate.so.2 -> libcolordprivate.so.2.0.5
-rwxr-xr-x. 1 root root 210592 Mar 31 2020 /lib64/libcolordprivate.so.2.0.5
lrwxrwxrwx. 1 root root 19 May 12 16:41 /lib64/libcolord.so.1 -> libcolord.so.1.0.21
-rwxr-xr-x. 1 root root 150064 Nov 20 2015 /lib64/libcolord.so.1.0.21
lrwxrwxrwx. 1 root root 18 May 12 16:41 /lib64/libcolord.so.2 -> libcolord.so.2.0.5
-rwxr-xr-x. 1 root root 154280 Mar 31 2020 /lib64/libcolord.so.2.0.5
lrwxrwxrwx. 1 root root 20 May 12 16:41 /lib64/libcolorhug.so.2 -> libcolorhug.so.2.0.5
-rwxr-xr-x. 1 root root 94960 Mar 31 2020 /lib64/libcolorhug.so.2.0.5
lrwxrwxrwx. 1 root root 17 May 12 16:40 /lib64/libcom_err.so.2 -> libcom_err.so.2.1
-rwxr-xr-x. 1 root root 15856 Mar 31 2020 /lib64/libcom_err.so.2.1
lrwxrwxrwx. 1 root root 18 May 12 16:41 /lib64/libconfig.so.9 -> libconfig.so.9.1.3
lrwxrwxrwx. 1 root root 20 May 12 16:41 /lib64/libconfig++.so.9 -> libconfig++.so.9.1.3
-rwxr-xr-x. 1 root root 49176 Jun 9 2014 /lib64/libconfig.so.9.1.3
-rwxr-xr-x. 1 root root 95288 Jun 9 2014 /lib64/libconfig++.so.9.1.3
lrwxrwxrwx. 1 root root 20 May 12 16:41 /lib64/libcpupower.so.0 -> libcpupower.so.0.0.0
-rwxr-xr-x. 1 root root 18640 Mar 31 2020 /lib64/libcpupower.so.0.0.0
lrwxrwxrwx. 1 root root 17 May 12 16:41 /lib64/libcrack.so.2 -> libcrack.so.2.9.0
-rwxr-xr-x. 1 root root 44600 Jun 10 2014 /lib64/libcrack.so.2.9.0
lrwxrwxrwx. 1 root root 21 May 12 16:41 /lib64/libcroco-0.6.so.3 -> libcroco-0.6.so.3.0.1
-rwxr-xr-x. 1 root root 243480 Oct 30 2018 /lib64/libcroco-0.6.so.3.0.1
-rwxr-xr-x. 1 root root 40600 Mar 31 2020 /lib64/libcrypt-2.17.so
lrwxrwxrwx. 1 root root 19 May 12 16:41 /lib64/libcrypto.so.10 -> libcrypto.so.1.0.2k
-rwxr-xr-x. 1 root root 2521144 Aug 8 2019 /lib64/libcrypto.so.1.0.2k
lrwxrwxrwx. 1 root root 23 May 12 16:41 /lib64/libcryptsetup.so.12 -> libcryptsetup.so.12.3.0
-rwxr-xr-x. 1 root root 355584 Mar 31 2020 /lib64/libcryptsetup.so.12.3.0
lrwxrwxrwx. 1 root root 22 May 12 16:41 /lib64/libcryptsetup.so.4 -> libcryptsetup.so.4.7.0
-rwxr-xr-x. 1 root root 166704 Mar 31 2020 /lib64/libcryptsetup.so.4.7.0
lrwxrwxrwx. 1 root root 16 May 12 16:40 /lib64/libcrypt.so.1 -> libcrypt-2.17.so
lrwxrwxrwx. 1 root root 12 May 12 16:40 /lib64/libc.so.6 -> libc-2.17.so
-rwxr-xr-x. 1 root root 62800 Mar 31 2020 /lib64/libcupscgi.so.1
lrwxrwxrwx. 1 root root 23 May 12 16:43 /lib64/libcupsfilters.so.1 -> libcupsfilters.so.1.0.0
-rwxr-xr-x. 1 root root 107368 Feb 4 2020 /lib64/libcupsfilters.so.1.0.0
-rwxr-xr-x. 1 root root 36176 Mar 31 2020 /lib64/libcupsimage.so.2
-rwxr-xr-x. 1 root root 28208 Mar 31 2020 /lib64/libcupsmime.so.1
-rwxr-xr-x. 1 root root 123616 Mar 31 2020 /lib64/libcupsppdc.so.1
-rwxr-xr-x. 1 root root 434416 Mar 31 2020 /lib64/libcups.so.2
lrwxrwxrwx. 1 root root 16 May 12 16:41 /lib64/libcurl.so.4 -> libcurl.so.4.3.0
-rwxr-xr-x. 1 root root 439320 Apr 2 2020 /lib64/libcurl.so.4.3.0

/lib64/libcanberra-0.30:
total 96
-rwxr-xr-x. 1 root root 19792 Mar 31 2020 libcanberra-alsa.so
-rwxr-xr-x. 1 root root 19888 Mar 31 2020 libcanberra-gstreamer.so
-rwxr-xr-x. 1 root root 15376 Mar 31 2020 libcanberra-multi.so
-rwxr-xr-x. 1 root root 11112 Mar 31 2020 libcanberra-null.so
-rwxr-xr-x. 1 root root 28312 Mar 31 2020 libcanberra-pulse.so

/lib64/libchewing:
total 4852
-rw-r--r--. 1 root root 5660 Jun 10 2014 ch_index_begin.dat
-rw-r--r--. 1 root root 2830 Jun 10 2014 ch_index_phone.dat
-rw-r--r--. 1 root root 1912461 Jun 10 2014 dict.dat
-rw-r--r--. 1 root root 2441664 Jun 10 2014 fonetree.dat
-rw-r--r--. 1 root root 477012 Jun 10 2014 ph_index.dat
-rw-r--r--. 1 root root 692 Jun 10 2014 pinyin.tab
-rw-r--r--. 1 root root 154 Jun 10 2014 swkb.dat
-rw-r--r--. 1 root root 967 Jun 10 2014 symbols.dat
-rw-r--r--. 1 root root 104376 Jun 10 2014 us_freq.dat
[root@gmslybf5backup ~]#

Re: NCPA Installtion on Centos7

Posted: Thu Jun 24, 2021 3:59 pm
by vtrac
Hi Sneha,
Hope you are having a good day!!
May I ask, how (what command) used to install the NCPA agent?

I looked at my CentOS 7.8 and also CentOS 7.9, both have the following "glic" RPM packages installed:
glibc-common-2.17-307.el7.1.x86_64
glibc-2.17-307.el7.1.x86_64
glibc-devel-2.17-307.el7.1.x86_64
glibc-headers-2.17-307.el7.1.x86_64


Let remove the NCPA package and try the install again.

Code: Select all

yum erase ncpa
Please run the following commands to re-install the NCPA agent again:

Code: Select all

rpm -Uvh http://repo.nagios.com/nagios/7/nagios-repo-7-4.el7.noarch.rpm

yum install glibc-devel glibc-headers ncpa -y
Configuring NCPA:

Code: Select all

sudo vi /usr/local/ncpa/etc/ncpa.cfg

Find the following line:
community_string = mytoken

Change it to your required token, for example:
community_string = Str0ngT0k3n
Restart NCPA service:

Code: Select all

systemctl restart ncpa_listener.service
Configure Firewall - Linux

Code: Select all

firewall-cmd --zone=public --add-port=5693/tcp
firewall-cmd --zone=public --add-port=5693/tcp --permanent
Test NCPA:
Please replace "x.x.x.x" with the "NCPA IP Address"

Code: Select all

https://x.x.x.x:5693/

Here's the NAPA installation Instruction:
https://assets.nagios.com/downloads/ncp ... g-NCPA.pdf


Best Regards,
Vinh

Re: NCPA Installtion on Centos7

Posted: Wed Jun 30, 2021 6:04 am
by sneha.irali
Hi Vinh,

We dont have internet on the Suse box, how do we proceed then.

Re: NCPA Installtion on Centos7

Posted: Wed Jun 30, 2021 11:42 am
by vtrac
Hi Sneha,
Hope you are having a good day!!

Were there any changes to your OS lately?

Was ncpa working before? .... or this is a new ncpa install?

I don't think it is a good idea to install "GLIBC_2.28".

What version of "ldd" do you have?

Code: Select all

ldd --version
I checked my and it is:

Code: Select all

[root@vt-nagiosxi-62 mrtg]# ldd --version
ldd (GNU libc) 2.17
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
Also, what outputs do you get for the command below:

Code: Select all

strings /lib64/ld-2.17.so | grep GLIBC
BTW, how did you install "NCPA" on your system anyway?

rpm -qa | grep -i ncpa


Best Regards,
Vinh

Re: NCPA Installtion on Centos7

Posted: Thu Jul 01, 2021 7:32 am
by sneha.irali
here is the response:

Were there any changes to your OS lately? - no

its a new installation.

[root@gmslybf5backup ~]# rpm -qa | grep glibc
glibc-2.17-307.el7.1.x86_64
glibc-common-2.17-307.el7.1.x86_64

ldd --version --> where do i check this on the NAgiosXI machine or the centos box.

NCPA was installed using rpm file, by downloading it to /tmp n then installting.

Re: NCPA Installtion on Centos7

Posted: Thu Jul 01, 2021 10:56 am
by vtrac
Hi,
Please run on the NCPA agent, since that's where your "ncpa_listener" failed to start up.

Please run the below commands on the NCPA agent, as "root" user:

Code: Select all

ldd --version

rpm -qa | grep glibc

rpm -qa | grep ncpa
Also, please run this on NCPA agent as well:

Code: Select all

rpm -ql ncpa
Also, on the NCPA agent, please run:

Code: Select all

systemctl restart ncpa_listener

systemctl status ncpa_listerner

tail -n30 /usr/local/ncpa/var/log/ncpa_listener.log
Please also upload "/usr/local/ncpa/etc/ncpa.cfg" file to this ticket.


Please post outputs or screenshots of ALL those commands above.


Best Regards,
Vinh

Re: NCPA Installtion on Centos7

Posted: Thu Jul 01, 2021 10:59 am
by sneha.irali
sure i will share the o/p

Re: NCPA Installtion on Centos7

Posted: Thu Jul 01, 2021 2:16 pm
by vtrac
Great!! ... Thanks ... :-)