LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-05-2012, 07:48 AM   #1
gurumoorthy444
LQ Newbie
 
Registered: Aug 2010
Location: Madurai
Posts: 3

Rep: Reputation: 0
Question Error: Make install-plugin step in Nrpe2.12 nagios in Ubuntu


I installed nagios3.2.3 and nagios-plugin1.14.....

i installed needed ssl packages before installing nrpe. like openssl, libssl-dev, libcurl3-openssl-dev....

Can any body pls give a solution for it, i didnt get it wat kind of problem it is...........

make install-plugin
cd ./src/ && make install-plugin
make[1]: Entering directory `/usr/local/src/nrpe-2.12/src'
/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 `/usr/local/src/nrpe-2.12/src'

when i try to install other packages it shows the same error....

root@ubuntu:/usr/local/src/nrpe-2.12# make install-daemon
cd ./src/ && make install-daemon
make[1]: Entering directory `/usr/local/src/nrpe-2.12/src'
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/bin
/usr/bin/install -c -m 775 -o nagios -g nagios nrpe /usr/local/nagios/bin
make[1]: Leaving directory `/usr/local/src/nrpe-2.12/src'


And if i try to check_nrpe it shows....

root@ubuntu:/usr/local/src/nrpe-2.12# /usr/local/nagios/libexec/check_nrpe -H localhost
Connection refused by host

Last edited by gurumoorthy444; 04-05-2012 at 07:51 AM.
 
Old 04-05-2012, 07:58 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
You are NOT supposed to post your question multiple forums. Please go read the rules.
 
Old 04-05-2012, 08:10 AM   #3
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
The make commands did NOT give you any errors - the output was informational.

The error you DID get was using check_nrpe and it clearly tells you connection was refused by local host.

The nrpe plugin has both the plugin (nrpe) which needs to be configured on the client host on which it is being installed (UNIX/Linux) and the check_nrpe command which is to be run from Nagios on the master .

Typically the configuration file is in /usr/local/nagios/etc/nrpe.cfg. Default port is 1556.

Since you tried "localhost" presumably you're attempting to test the master itself so it is both the Nagios master AND the NRPE client. First check your nrpe.cfg to see what port it specified. Then check to see if nrpe is running (ps -ef |grep -i nrpe" OR is setup in xinetd.d to run from there (this will also specify port). Run "lsof -i :<port>" to see if anything is listening (e.g. "lsof -i :1556"). If not it means it isn't running nor setup to run in xinetd.

If the port IS listening then it may be a firewall issue but this is less likely on localhost than going to remote hosts. Check iptables to be sure you're not restricting access to the port on localhost that NRPE uses.

Last edited by MensaWater; 04-05-2012 at 08:34 AM.
 
  


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
LFS 6.5 : Step 6.7 Installing Linux API headers : make headers_check/install error tsong99 Linux From Scratch 12 12-25-2012 04:26 PM
LXer: Complete Step by Step Guide to Make ISO Images in Ubuntu LXer Syndicated Linux News 0 06-09-2011 02:20 PM
LXer: Step-by-Step Guide to Install OpenQRM 4.8 in Squeeze/Ubuntu 10.04 with LXC Support LXer Syndicated Linux News 0 04-27-2011 06:20 PM
[RHEL] nagios-plugin install error - C preprocessor "/lib/cpp" fails sanity check samengr Linux - Software 5 11-02-2009 10:04 AM
Any1 please make a step by step install of RH7.1 Simsala Linux - Software 5 08-17-2001 06:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:13 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