problem In remotehost and server communication on nagioscore

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
nagendra kumar
Posts: 2
Joined: Fri Apr 26, 2013 1:12 am

problem In remotehost and server communication on nagioscore

Post by nagendra kumar »

Dear Sir,


I am using RHEL-5.1 on server I have installed Nagios-3.2.3(core) , nagios-plugins-1.4.16
and nrpe-2.13.
and on client machine fedora 2.6.32.16-150.fc12.i686.PAE , nagios-plugins-1.4.16 and nrpe-2.13.

when I am checking in web inetrface its showing in status information for remotehost
connection refuged by host.

I have checked these things.

on server

/usr/local/nagios/libexec/check_nrpe -H client-ip

giving NRPE v2.13

/usr/local/nagios/libexec/check_nrpe -H localhost

giving Connection refused by host


on client

/usr/local/nagios/libexec/check_nrpe -H localhost

giving NRPE v2.13

/usr/local/nagios/libexec/check_nrpe -H 10.180.5.84

giving Connection refused by host

also I have gone through NRPE Troubleshooting_and_comman_solution.pdf
and checked
allowed_hosts=127.0.0.1,<nagios server ip>
only_from = 127.0.0.1 <Nagios server ip>

nmap <remote host ip> -p 5666 from server
giving ----
PORT STATE SERVICE
5666/tcp open nrpe

I am running NRPE through xinetd.

please help me I am not getting what I need to do.

Thanks
nagendra kumar
User avatar
gshergill
Posts: 231
Joined: Tue Aug 07, 2012 5:08 am

Re: problem In remotehost and server communication on nagios

Post by gshergill »

Hi nagendra kumar,

The command below:

Code: Select all

./check_nrpe -H <nagios machine ip>
giving the result connection refused is no problem.

However, the command:

Code: Select all

./check_nrpe -H <remote client>
should return the NRPE version, which yours does.

Could you post the nrpe command you are using? (from services.cfg and commands.cfg)
Also, the nrpe.cfg from your remote server.

Thank you.

Kind Regards,

Gary Shergill
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: problem In remotehost and server communication on nagios

Post by slansing »

Thank you for the guidance gshergill! Please let us know if you need further assistance nagendra kumar.
nagendra kumar
Posts: 2
Joined: Fri Apr 26, 2013 1:12 am

Re: problem In remotehost and server communication on nagios

Post by nagendra kumar »

Dear sir ,

Thanks for your reply .
problem has been solved It was a mistake done by me.
actually I had put Ip-address of server(machine running nagios) here for address but it should be address of machine on which NRPE deamon is running.

define host {
use linux-box ; Inherit default values from a template
host_name remotehost ; The name we're giving to this server
alias Fedora Core 6 ; A longer name for the server
address 192.168.0.1 ; IP address of the server
}

Thanks
nagendra
Locked