NCPA Install Issue : Install Required Packages
-
- Posts: 72
- Joined: Wed Feb 06, 2019 3:22 pm
NCPA Install Issue : Install Required Packages
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?
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?
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: NCPA Install Issue : Install Required Packages
Don't build from scratch unless you are trying to customize, you should use the packages available here
https://www.nagios.org/ncpa/#downloads
https://www.nagios.org/ncpa/#downloads
-
- Posts: 72
- Joined: Wed Feb 06, 2019 3:22 pm
Re: NCPA Install Issue : Install Required Packages
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?
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?
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: NCPA Install Issue : Install Required Packages
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
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
-
- Posts: 72
- Joined: Wed Feb 06, 2019 3:22 pm
Re: NCPA Install Issue : Install Required Packages
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.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: NCPA Install Issue : Install Required Packages
No, to install NCPA just install the exe on the Windows machinenickanderson1982 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.
-
- Posts: 72
- Joined: Wed Feb 06, 2019 3:22 pm
Re: NCPA Install Issue : Install Required Packages
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?
[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?
-
- Posts: 72
- Joined: Wed Feb 06, 2019 3:22 pm
Re: NCPA Install Issue : Install Required Packages
[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]#
UNKNOWN: Error occurred while running the plugin. Use the verbose flag for more details .
[root@name build]#
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: NCPA Install Issue : Install Required Packages
you need to use the windows server IP instead of localhost
then you should move the check_ncpa.py to your /usr/local/nagios/libexec directory
Code: Select all
/root/ncpa-2.1.1/client/check_ncpa.py -H xxx.xxx.xxx.xxx -t token -M system/agent_version
-
- Posts: 72
- Joined: Wed Feb 06, 2019 3:22 pm
Re: NCPA Install Issue : Install Required Packages
Ticket Completed. Thank You for the guidance