Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-30-2009, 12:42 AM   #1
LQ Newbie
Registered: Dec 2009
Posts: 21

Rep: Reputation: 15
Connection Refused or time out error in Nagios

I have installed nagios in one virtual machine having centOS 5.3, i need to monitor another VM which also works in centOS. I have installed Nagios plugins and Nrpe in both the machines.

To check the connectivity, in the nagiosserver if i give
/usr/local/nagios/libexec/check_nrpe -H <local host ip add>

its showing

NRPE v 2.12

if i give
/usr/local/nagios/libexec/check_nrpe -H <Remote host ip add>

its showing the error like

Connection refused or timed out

I am able to monitor a windows server in nagios using nsclient++

but when i try to monitor a linux server, i got stopped with this problem.

Hope some of u came across this problem. can anyone help me out for this?
Old 12-30-2009, 05:11 AM   #2
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297

Is the remote server accepting connections from your Nagios server on the NRPE port? Is the /usr/local/nagios/etc/nrpe.cfg file setup correctly? Do you have firewall or SELinux active on the remote server and if so did you allow the NRPE traffic?

Type in a terminal on the remote machine:
netstat -alp | grep nrpe
and post output here.

Also post your nrpe.cfg please.

Kind regards,



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Putty fatal error: Network error: connection refused (ubunty server 6.06.1) gerardnijboer Ubuntu 2 03-18-2010 04:46 PM
Telnet: error connection refused v1nc3nt Linux - Newbie 3 03-24-2006 06:11 AM
Connection refused error for port 25 jgnasser Linux - Networking 3 08-25-2004 08:09 AM
Connection refused error sweetyedwin Linux - Networking 1 07-15-2004 04:11 AM
Connection refused error robs4linux Linux - Networking 2 03-19-2002 03:09 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:15 AM.

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