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.
# cd /tmp
# wget http://www.nagios-plugins.org/download/nagios-plugins-2.1.4.tar.gz
# apt-get install build-essential libssl-dev
# tar xzf nagios-plugins-2.1.4.tar.gz
# cd nagios-plugins-2.1.4
# ./configure
# make
# make install
# cd ..
# wget https://superb-sea2.dl.sourceforge.net/project/nagios/nrpe-3.x/nrpe-3.0.1.tar.gz
# tar xzf nrpe-3.0.1.tar.gz
# cd nrpe-3.0.1
# ./configure
# make all
# make install-groups-users
# make install
# make install-config
# make install-init
# service nrpe start
# service nrpe status
avandemore wrote:Like @mcapra, this also works for me. I have attached a script file generated during the install. Here is a stripped out set of commands used:
# cd /tmp
# wget http://www.nagios-plugins.org/download/nagios-plugins-2.1.4.tar.gz
# apt-get install build-essential libssl-dev
# tar xzf nagios-plugins-2.1.4.tar.gz
# cd nagios-plugins-2.1.4
# ./configure
# make
# make install
# cd ..
# wget https://superb-sea2.dl.sourceforge.net/project/nagios/nrpe-3.x/nrpe-3.0.1.tar.gz
# tar xzf nrpe-3.0.1.tar.gz
# cd nrpe-3.0.1
# ./configure
# make all
# make install-groups-users
# make install
# make install-config
# make install-init
# service nrpe start
# service nrpe status
I tried the same steps and the result is the same:
ubuntu@ip-xx-xx-xx-xx:~/nrpe-downloads/nrpe-3.0.1$ sudo make install-init
No init file to install
Makefile:93: recipe for target 'install-init' failed
make: *** [install-init] Error 1
ubuntu@ip-xxx-xx-xx-xx:~/nrpe-downloads/nrpe-3.0.1$ service nrpe start
nrpe: unrecognized service
ubuntu@ip-xxx-xx-xx-xx:~/nrpe-downloads/nrpe-3.0.1$
So there where a few things different in your method.
* Your script file is not very readable. This can happen when you enter into other mode changing applications like vi. There is enough interpolation and other issues that I'm not confident in what I'm reading.
* Your use of sudo. Please be root for this exercise.
* Your installation of additional packages.
* Your command line specs passed to configure may be causing issues.
Please remove these differences or use the commands I posted above exactly to do the install on a clean Ubuntu 16.04.
avandemore wrote:So there where a few things different in your method.
* Your script file is not very readable. This can happen when you enter into other mode changing applications like vi. There is enough interpolation and other issues that I'm not confident in what I'm reading.
* Your use of sudo. Please be root for this exercise.
* Your installation of additional packages.
* Your command line specs passed to configure may be causing issues.
Please remove these differences or use the commands I posted above exactly to do the install on a clean Ubuntu 16.04.
I ran your step as root and still got the same errors:
root@ip-172-31-36-73:/tmp/nrpe-3.0.1# make install-init
No init file to install
Makefile:93: recipe for target 'install-init' failed
make: *** [install-init] Error 1
root@ip-172-31-36-73:/tmp/nrpe-3.0.1# service nrpe start
nrpe: unrecognized service
root@ip-172-31-36-73:/tmp/nrpe-3.0.1# service nrpe status
nrpe: unrecognized service
The nrpe install file is the same as before with all those characters.
I thing the error is when the configure script was ran on your system, it could not detect the init and the inetd type on your server.
Try running the configure like the example below and then run the make all and make install-init and see if that works for you.
tgriep wrote:I thing the error is when the configure script was ran on your system, it could not detect the init and the inetd type on your server.
Try running the configure like the example below and then run the make all and make install-init and see if that works for you.
/usr/local/nagios/libexec/check_nrpe -H localhost
connect to address 127.0.0.1 port 5666: Connection refused
connect to host localhost port 5666: Connection refused