Page 1 of 1

problem In remotehost and server communication on nagioscore

Posted: Fri Apr 26, 2013 1:17 am
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

Re: problem In remotehost and server communication on nagios

Posted: Fri Apr 26, 2013 10:07 am
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

Re: problem In remotehost and server communication on nagios

Posted: Fri Apr 26, 2013 3:23 pm
by slansing
Thank you for the guidance gshergill! Please let us know if you need further assistance nagendra kumar.

Re: problem In remotehost and server communication on nagios

Posted: Fri Apr 26, 2013 11:50 pm
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