Page 1 of 1

connection refused by host

Posted: Fri Mar 01, 2013 12:27 am
by fretagi
Hi!
Please can I Have some assistance on the configuration of my nagios
installation?
For evaluation purposes, I have installed nagios xi for virtual machine,
onto a vmware player, I have managed to use SNMP to configure some hp-ux
parameters on a server, and on solaris I have used NRPE to configure,
but I am getting the following error:
“connection refused by host”


FR

Re: connection refused by host

Posted: Fri Mar 01, 2013 2:26 am
by sathiyaraj
Hi,...

Install NRPE in client server. (which one you want monitor, install in that system NRPE)

you need to make sure that port 5666 is open.

http://assets.nagios.com/downloads/nagi ... _Agent.pdf

Re: connection refused by host

Posted: Fri Mar 01, 2013 10:00 am
by slansing
Thanks for the tips sathiyaraj,

In addition to making sure port 5666 is open on both the Remote NRPE monitored host and the Nagios XI server, be sure that you have the XI server's IP in the allowed_ section within the nrpe.cfg file on the remote host.

Re: connection refused by host

Posted: Mon Mar 04, 2013 4:29 am
by fretagi
Hi

Yes I did make port 5666 open because when I do:
# netstat -an | grep 5666
*.5666 *.* 0 0 49152 0 LISTEN
on the nrpe.cfg file I have also included the IP address of the nagios server, but on the front end I still have "connection refused by host" message

Re: connection refused by host

Posted: Mon Mar 04, 2013 10:47 am
by abrist
Make sure you can nmap/telnet the remote host on port 5666 from the nagios XI server. Also try to run NRPE from the cli on the nagios server:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H <remote host ip>