Page 1 of 1

nrpe.cfg No such file

Posted: Fri Jul 28, 2017 8:46 am
by CLGREEN
Hello all,

I am have an issue with nrpe and I am pulling my hair out at this point. When installing nrpe the .cfg file will not install and I have no idea why and I am getting frustrated with the plugin and I have no idea why it's not working.

-- Here is what I am doing when installing --

Code: Select all

#Get The files
wget http://nagios.internal.ip/dl/nag/nrpe-3.0.1.tar.gz

#UnZipping
tar xzf nrpe-3.0.1.tar.gz

#Go to the folder
cd nrpe-3.0.1

#Setting nrpe up and installing.
./configure
make all

#Setting up NRPE plugin
make install-plugin
make install-daemon
make install-daemon-config
make install-xinetd 

#Allowing NRPE.
echo "nrpe             5666/tcp                        #Nagios" >> /etc/services

#Moving to where the config is. 
cd /usr/local/nagios/etc/
and its at this point I get the following : -bash: cd: /usr/local/nagios/etc/: No such file or directory

Now All the other files are in the directory. but the /etc/ and nrpe.cfg is not there and I have no idea why?

Does anyone have any ideas? or has anyone come across this issue before?

Re: nrpe.cfg No such file

Posted: Fri Jul 28, 2017 9:33 am
by kyang
Hi @CLGREEN,

Which documentation have you followed? Here is a link to the support kb article on installing NRPE. I have followed this, and had no issues running NRPE.

Do you have the prerequisites installed? Go through the support kb article, and reply back any other issues.

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

Re: nrpe.cfg No such file

Posted: Fri Jul 28, 2017 10:00 am
by CLGREEN
@kyang

Ah, Thank-you so much. I have 3 scripts I have custom built that installs all the stuff for me. but I forgot to port over one line :oops:

For anyone else that come across this issue I forgot the line 'make install-config'.

Thanks for all your help :)
kyang wrote:Hi @CLGREEN,

Which documentation have you followed? Here is a link to the support kb article on installing NRPE. I have followed this, and had no issues running NRPE.

Do you have the prerequisites installed? Go through the support kb article, and reply back any other issues.

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

Re: nrpe.cfg No such file

Posted: Fri Jul 28, 2017 10:15 am
by dwhitfield
Thanks @kyang!

It sounds like this issue has been resolved. Is it okay if we lock this thread? Thanks for choosing the Nagios forums!