Issue while installing NRPE

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
nysus777
Posts: 40
Joined: Thu Jun 16, 2016 1:32 am

Issue while installing NRPE

Post by nysus777 »

Hi team,

I am trying to install and configure NRPE on a server. While trying toiInstall the NRPE plugin (for testing), daemon, and sample daemon config file, i am getting an error as shown below.

[root@netcool nrpe-3.0]# make install-plugin
cd ./src/; make install-plugin
make[1]: Entering directory `/tmp/Nagios-downloads/nrpe-3.0/src'
/usr/bin/install -c -m 755 -d /usr/local/nagios/bin
/usr/bin/install -c -m 755 ../uninstall /usr/local/nagios/bin/nrpe-uninstall
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/libexec
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/libexec
/usr/bin/install -c -m 775 -o nagios -g nagios check_nrpe /usr/local/nagios/libexec
make[1]: Leaving directory `/tmp/Nagios-downloads/nrpe-3.0/src'
[root@netcool nrpe-3.0]# make install-daemon
cd ./src/; make install-daemon
make[1]: Entering directory `/tmp/Nagios-downloads/nrpe-3.0/src'
/usr/bin/install -c -m 755 -d /usr/local/nagios/bin
/usr/bin/install -c -m 755 ../uninstall /usr/local/nagios/bin/nrpe-uninstall
/usr/bin/install -c -m 755 nrpe /usr/local/nagios/bin
make[1]: Leaving directory `/tmp/Nagios-downloads/nrpe-3.0/src'
[root@netcool nrpe-3.0]# make install-daemon-config
make: *** No rule to make target `install-daemon-config'. Stop.



Kindly advise.

Thanks,
Piyush Sinha
jfrickson

Re: Issue while installing NRPE

Post by jfrickson »

nysus777 wrote:Hi team,

I am trying to install and configure NRPE on a server. While trying toiInstall the NRPE plugin (for testing), daemon, and sample daemon config file, i am getting an error as shown below.

[root@netcool nrpe-3.0]# make install-daemon-config
make: *** No rule to make target `install-daemon-config'. Stop.
The new NRPE uses `make install-config` instead of `make install-daemon-config`.

You can type `make` (no targets) to get a list of available targets, some of which are new.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Issue while installing NRPE

Post by Box293 »

Full install documentation is here:

https://support.nagios.com/kb/article.php?id=515
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
nysus777
Posts: 40
Joined: Thu Jun 16, 2016 1:32 am

Re: Issue while installing NRPE

Post by nysus777 »

Hi team,

I have installed NRPE on a lab server and i am trying to install the NRPE plugin on the VM box of CentOS. I am experiencing the below error when i am trying to download autoconf as suggested in the document shared earlier by you. However, when trying the same on my lab server, i am able to download it. Kindly advise if this a problem with the VM. Can NRPE be configured using Nagios XI on CentOS VM image?




Thanks,
Piyush Sinha
You do not have the required permissions to view the files attached to this post.
jfrickson

Re: Issue while installing NRPE

Post by jfrickson »

nysus777
Posts: 40
Joined: Thu Jun 16, 2016 1:32 am

Re: Issue while installing NRPE

Post by nysus777 »

Thank you guys.

Just for more clarity, i am trying to figure out which components need to be installed on the server to be monitored and which components should be installed on host. So far, i have installed NRPE and plugins on a server and check_nrpe plugin on the Nagios host. Now, i need to configure the remote host to be monitored. According to the document, i need to run 'NRPE monitoring wizard'. I could download it successfully, but i dont see how to run it. There is a shell script which returns 'Sanity checks components not installed'. Am i doing this correctly?

I am kind of lost here. Maybe i am referring too many documents at the same time. Kindly advise.

Thanks,
Piyush Sinha
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Issue while installing NRPE

Post by Box293 »

nysus777 wrote:i have installed NRPE and plugins on a server
Correct
nysus777 wrote: check_nrpe plugin on the Nagios host
Correct, however if this is a Nagios XI server it would have already existed.
nysus777 wrote: Now, i need to configure the remote host to be monitored. According to the document, i need to run 'NRPE monitoring wizard'.
This wizard is part of Nagios XI.
Configure > Run a configuration wizard
You would select the Wizard "Linux Server" or "NRPE".
nysus777 wrote:There is a shell script which returns 'Sanity checks components not installed'.
What is the name of this script?

On the NRPE server, in the file /usr/local/nagios/etc/nrpe.cfg is the command definitions.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
nysus777
Posts: 40
Joined: Thu Jun 16, 2016 1:32 am

Re: Issue while installing NRPE

Post by nysus777 »

Hi team,

I just tried to configure monitoring of the NRPE server using monitoring wizard, but it seems there's a problem with the connection when the monitoring began. I also tried running check_nrpe from Nagios server, i get the same 'connection reset by peer'. Can you let me know the steps to check my configuration.
Kindly advise.

Thanks,
Piyush Sinha
You do not have the required permissions to view the files attached to this post.
nysus777
Posts: 40
Joined: Thu Jun 16, 2016 1:32 am

Re: Issue while installing NRPE

Post by nysus777 »

Also an observation, i am able to SSH to the NRPE server from Nagios host.
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Issue while installing NRPE

Post by rkennedy »

Can you post your /var/log/messages file for us to look at from the client machine? This should indicate why the connection was closed.
Former Nagios Employee
Locked