LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-24-2016, 03:36 AM   #1
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Rep: Reputation: 11
Thumbs down I can't Install NRPE on CentOS


Hello.
I want to install NRPE on CentOS 7 and I did below steps :
Code:
# yum install -y gcc glibc glibc-common gd gd-devel make net-snmp openssl-devel
# yum install xinetd
After it I created a "nagios" user and installed Nagios Plugin and configure it as below :
Code:
# tar xvfz nagios-plugins-1.4.11.tar.gz
# cd nagios-plugins-1.4.11
# ./configure --with-ssl=/usr/bin/openssl --with-ssl-lib=/usr/lib/x86_64-linux-gnu
# make
# make install
# chown nagios.nagios /usr/local/nagios
# chown -R nagios.nagios /usr/local/nagios/libexec/
Then Download NRPE and compile it via below commands :
Code:
#./configure
#make all
#make install-plugin
#make install-daemon
#make install-daemon-config
but when I enter "make install-daemon-config" then I got below error :
Code:
make: *** No rule to make target `install-daemon-config'.  Stop.
How can I solve it?

Thank you.
 
Old 07-24-2016, 06:09 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Run 'make -n install-daemon-config' and see what should get installed. Alternatively just create the required configuration yourself according to Nagios / NRPE documentation. Alternatively ponder why you're so bent on doing it that way when you've got access to something like 'yum install epel-release; yum install nagios nagios-plugins-all nrpe chkconfig nrpe;'...
 
Old 07-24-2016, 06:17 AM   #3
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by unSpawn View Post
Run 'make -n install-daemon-config' and see what should get installed. Alternatively just create the required configuration yourself according to Nagios / NRPE documentation. Alternatively ponder why you're so bent on doing it that way when you've got access to something like 'yum install epel-release; yum install nagios nagios-plugins-all nrpe chkconfig nrpe;'...
Got same error :
Code:
[root@localhost nrpe-3.0]# make -n install-daemon-config
make: *** No rule to make target `install-daemon-config'.  Stop.
I know, CentOS has "nrpe" package but I want to install it from source code.
 
Old 07-24-2016, 07:55 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by hack3rcon View Post
Got same error :
Code:
[root@localhost nrpe-3.0]# make -n install-daemon-config
make: *** No rule to make target `install-daemon-config'.  Stop.
Supplying "-n" doesn't actually install: it just goes through the motions so you can see what it's up to. In this case there's no output shown that will help you so in this case I'd say it's safe to say there is no rule to "make" that target: so install the necessary configuration files yourself.


Quote:
Originally Posted by hack3rcon View Post
I know, CentOS has "nrpe" package but I want to install it from source code.
Installing software from source on any RPM-based systems makes you, regardless of reason, responsible for updating software when security or bug fixes are released. While that's OK for a home system it definitely is not a Best Practice (or efficient) so shouldn't apply to any systems used in professional environments.
 
Old 07-24-2016, 08:43 AM   #5
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by unSpawn View Post
Supplying "-n" doesn't actually install: it just goes through the motions so you can see what it's up to. In this case there's no output shown that will help you so in this case I'd say it's safe to say there is no rule to "make" that target: so install the necessary configuration files yourself.



Installing software from source on any RPM-based systems makes you, regardless of reason, responsible for updating software when security or bug fixes are released. While that's OK for a home system it definitely is not a Best Practice (or efficient) so shouldn't apply to any systems used in professional environments.
Please see "http://www.tecmint.com/how-to-add-linux-host-to-nagios-monitoring-server/"
 
Old 07-24-2016, 09:40 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,675

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by hack3rcon View Post
Please see "http://www.tecmint.com/how-to-add-linux-host-to-nagios-monitoring-server/"
Why? Again, installing from package is the better way to go...re-iterating that you WANT to build from source is pointless. Also, the link you posted does not say put the -n flag in for installing/building the NRPE plugin.

Again:
  • Don't put the -n flag in, which you could see if you read the help options on build, or the documentation
  • Install it from package, since there's no real benefit of building from source.
 
Old 07-24-2016, 09:49 AM   #7
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by TB0ne View Post
Why? Again, installing from package is the better way to go...re-iterating that you WANT to build from source is pointless. Also, the link you posted does not say put the -n flag in for installing/building the NRPE plugin.

Again:
  • Don't put the -n flag in, which you could see if you read the help options on build, or the documentation
  • Install it from package, since there's no real benefit of building from source.
If you read my posts then you can see that I never put "-n" by default and both have same result.
What is my Distro problem? I did all steps that the guidance said!!!!
 
Old 07-24-2016, 10:01 AM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,675

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by hack3rcon View Post
If you read my posts then you can see that I never put "-n" by default and both have same result.
You're right..you did NOT put the -n flag in; however, you were ADVISED TO, to see what was going on, but haven't apparently.
Quote:
What is my Distro problem? I did all steps that the guidance said!!!!
AGAIN, you do not, should not have to, install from source. Period. You were given the exact yum command to run to not only install the repository, but to install NRPE too. Why you don't just type in one command and be done is beyond me.

Again, why are you wanting to install from source?? Saying "I want to" doesn't tell us anything at all.
 
Old 07-24-2016, 10:40 PM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
are you 100% sure that configure ran and did not error ?
are there any autotools m4's or ac files ?
if so you can remake "configure" for your system
Code:
autoreconf -iv

did you install all the needed parts of gcc ?
in your first post is dose not look like it
( but those might have puled in the prerequisites )

normally you would
Code:
su -
yum groupinstall " Development Tools"
 
Old 07-25-2016, 01:26 AM   #10
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by John VV View Post
are you 100% sure that configure ran and did not error ?
are there any autotools m4's or ac files ?
if so you can remake "configure" for your system
Code:
autoreconf -iv

did you install all the needed parts of gcc ?
in your first post is dose not look like it
( but those might have puled in the prerequisites )

normally you would
Code:
su -
yum groupinstall " Development Tools"
No, I Installed all packages and problem solved via "https://support.nagios.com/kb/article.php?id=515"
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Nagios install error-NRPE install linuxandtsm Linux - Newbie 4 03-06-2012 09:18 AM
[SOLVED] Solaris 8 NRPE Install Issue d072330 Linux - Software 2 07-11-2011 12:08 PM
Nagios/NRPE oddity on similar Centos machines tobym Linux - Server 2 05-27-2010 03:57 AM
Installing Nagios agent nrpe, problems following nrpe install steps rfreiberger Linux - Newbie 3 04-19-2010 08:43 AM
Nagios and NRPE install and36y Linux - Newbie 2 11-12-2009 10:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration