nrpe.cfg No such file

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
CLGREEN
Posts: 2
Joined: Fri Jul 28, 2017 8:38 am

nrpe.cfg No such file

Post 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?
kyang

Re: nrpe.cfg No such file

Post 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
CLGREEN
Posts: 2
Joined: Fri Jul 28, 2017 8:38 am

Re: nrpe.cfg No such file

Post 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
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: nrpe.cfg No such file

Post 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!
Locked