NCPA Install Issue : Install Required Packages

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

NCPA Install Issue : Install Required Packages

Postby nickanderson1982 » Thu Feb 07, 2019 12:29 am

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

Re: NCPA Install Issue : Install Required Packages

Postby scottwilkerson » Thu Feb 07, 2019 12:14 pm

Don't build from scratch unless you are trying to customize, you should use the packages available here

https://www.nagios.org/ncpa/#downloads
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 13475
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: NCPA Install Issue : Install Required Packages

Postby nickanderson1982 » Thu Feb 07, 2019 1:06 pm

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

Re: NCPA Install Issue : Install Required Packages

Postby scottwilkerson » Thu Feb 07, 2019 1:12 pm

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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 13475
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: NCPA Install Issue : Install Required Packages

Postby nickanderson1982 » Thu Feb 07, 2019 1:30 pm

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

Re: NCPA Install Issue : Install Required Packages

Postby scottwilkerson » Thu Feb 07, 2019 1:31 pm

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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 13475
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: NCPA Install Issue : Install Required Packages

Postby nickanderson1982 » Thu Feb 07, 2019 1:54 pm

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: 23
Joined: Wed Feb 06, 2019 3:22 pm

Re: NCPA Install Issue : Install Required Packages

Postby nickanderson1982 » Thu Feb 07, 2019 1:59 pm

[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]#
nickanderson1982
 
Posts: 23
Joined: Wed Feb 06, 2019 3:22 pm

Re: NCPA Install Issue : Install Required Packages

Postby scottwilkerson » Thu Feb 07, 2019 2:03 pm

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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 13475
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: NCPA Install Issue : Install Required Packages

Postby nickanderson1982 » Thu Feb 07, 2019 5:51 pm

Ticket Completed. Thank You for the guidance
nickanderson1982
 
Posts: 23
Joined: Wed Feb 06, 2019 3:22 pm

Next

Return to Nagios Core

Who is online

Users browsing this forum: KERCYR and 32 guests