Page 1 of 2

Issue while installing NRPE

Posted: Fri Jul 22, 2016 5:06 am
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

Re: Issue while installing NRPE

Posted: Fri Jul 22, 2016 12:29 pm
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.

Re: Issue while installing NRPE

Posted: Mon Jul 25, 2016 3:03 am
by Box293
Full install documentation is here:

https://support.nagios.com/kb/article.php?id=515

Re: Issue while installing NRPE

Posted: Tue Jul 26, 2016 5:43 am
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

Re: Issue while installing NRPE

Posted: Tue Jul 26, 2016 9:03 am
by jfrickson

Re: Issue while installing NRPE

Posted: Wed Jul 27, 2016 1:01 am
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

Re: Issue while installing NRPE

Posted: Wed Jul 27, 2016 1:24 am
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.

Re: Issue while installing NRPE

Posted: Fri Jul 29, 2016 1:41 am
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

Re: Issue while installing NRPE

Posted: Fri Jul 29, 2016 1:52 am
by nysus777
Also an observation, i am able to SSH to the NRPE server from Nagios host.

Re: Issue while installing NRPE

Posted: Fri Jul 29, 2016 9:32 am
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.