Page 1 of 2

NCPA Install Issue : Install Required Packages

Posted: Thu Feb 07, 2019 12:29 am
by nickanderson1982
Install Required Packages
cd /tmp/ncpa-2.1.1/build/scripts/
./linux_build_prereqs.sh
./linux_build_setup.sh

This is the issue I get:

[root@name tmp]# tar xzf ncpa.tar.gz
[root@name tmp]# cd /tmp/ncpa-2.1.1/build/scripts/
[root@name scripts]# ./linux_build_prereqs.sh
bash: ./linux_build_prereqs.sh: Permission denied
[root@name scripts]# ./linux_build_setup.sh

I tried a work around but then it wanted me to overwrite the root and I didn't know what to do from there:
mv /tmp/ncpa-2.1.1/build/scripts/ ~/
cd ~/tmp/ncpa-2.1.1/build/scripts
./linux_build_prereqs.sh
./linux_build_setup.sh

Any suggestions on how to install this?

Re: NCPA Install Issue : Install Required Packages

Posted: Thu Feb 07, 2019 12:14 pm
by scottwilkerson
Don't build from scratch unless you are trying to customize, you should use the packages available here

https://www.nagios.org/ncpa/#downloads

Re: NCPA Install Issue : Install Required Packages

Posted: Thu Feb 07, 2019 1:06 pm
by nickanderson1982
I'm following these steps on this link:
https://support.nagios.com/kb/article/n ... .html#RHEL

It is what I did before. Then I install the .exe on my windows servers.

Is there any guidance on my previous error?

Re: NCPA Install Issue : Install Required Packages

Posted: Thu Feb 07, 2019 1:12 pm
by scottwilkerson
Just download the exe from here under the Windows section:
https://www.nagios.org/ncpa/#downloads

or just
https://assets.nagios.com/downloads/ncpa/ncpa-2.1.6.exe

It's even more current than you are trying to build.

If you must build from source you would have to do the following to move them

Code: Select all

mv /tmp/ncpa-2.1.1 ~/
cd ~/ncpa-2.1.1/build/scripts
./linux_build_prereqs.sh
./linux_build_setup.sh

Re: NCPA Install Issue : Install Required Packages

Posted: Thu Feb 07, 2019 1:30 pm
by nickanderson1982
I used the commands that you gave and they worked. Now do I have to Build RPM? I already have the .exe download for the Windows Servers.

Re: NCPA Install Issue : Install Required Packages

Posted: Thu Feb 07, 2019 1:31 pm
by scottwilkerson
nickanderson1982 wrote:I used the commands that you gave and they worked. Now do I have to Build RPM? I already have the .exe download for the Windows Servers.
No, to install NCPA just install the exe on the Windows machine

Re: NCPA Install Issue : Install Required Packages

Posted: Thu Feb 07, 2019 1:54 pm
by nickanderson1982
I located the file

[root@name /]# ls /root/ncpa-2.1.1/agent/etc
ncpa.cfg ncpa.cfg.d ncpa.cfg.sample
[root@name /]# cd /root/ncpa-2.1.1/agent/etc
[root@name etc]# vi ncpa.cfg
[root@ etc]# systemctl restart ncpa_listener.service
Failed to restart ncpa_listener.service: Unit not found.
[root@name etc]# systemctl start ncpa_listener.service
Failed to start ncpa_listener.service: Unit not found.
[root@name etc]#

I'm not sure this is working.

Now I'm trying to install the NCPA package on the linux monitoring server so that I can monitor these windows servers. Am I doing this completely wrong or am I just missing something?

Re: NCPA Install Issue : Install Required Packages

Posted: Thu Feb 07, 2019 1:59 pm
by nickanderson1982
[root@name build]# /root/ncpa-2.1.1/client/check_ncpa.py -H localhost -t token -M system/agent_version
UNKNOWN: Error occurred while running the plugin. Use the verbose flag for more details .
[root@name build]#

Re: NCPA Install Issue : Install Required Packages

Posted: Thu Feb 07, 2019 2:03 pm
by scottwilkerson
you need to use the windows server IP instead of localhost

Code: Select all

/root/ncpa-2.1.1/client/check_ncpa.py -H xxx.xxx.xxx.xxx -t token -M system/agent_version
then you should move the check_ncpa.py to your /usr/local/nagios/libexec directory

Re: NCPA Install Issue : Install Required Packages

Posted: Thu Feb 07, 2019 5:51 pm
by nickanderson1982
Ticket Completed. Thank You for the guidance