NCPA Install Issue : Install Required Packages

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
nickanderson1982
Posts: 72
Joined: Wed Feb 06, 2019 3:22 pm

NCPA Install Issue : Install Required Packages

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NCPA Install Issue : Install Required Packages

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
nickanderson1982
Posts: 72
Joined: Wed Feb 06, 2019 3:22 pm

Re: NCPA Install Issue : Install Required Packages

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NCPA Install Issue : Install Required Packages

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
nickanderson1982
Posts: 72
Joined: Wed Feb 06, 2019 3:22 pm

Re: NCPA Install Issue : Install Required Packages

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NCPA Install Issue : Install Required Packages

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
nickanderson1982
Posts: 72
Joined: Wed Feb 06, 2019 3:22 pm

Re: NCPA Install Issue : Install Required Packages

Post 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?
nickanderson1982
Posts: 72
Joined: Wed Feb 06, 2019 3:22 pm

Re: NCPA Install Issue : Install Required Packages

Post 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]#
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NCPA Install Issue : Install Required Packages

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
nickanderson1982
Posts: 72
Joined: Wed Feb 06, 2019 3:22 pm

Re: NCPA Install Issue : Install Required Packages

Post by nickanderson1982 »

Ticket Completed. Thank You for the guidance
Locked