connection refused by host

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
fretagi
Posts: 14
Joined: Thu Apr 26, 2012 1:47 am

connection refused by host

Post 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
sathiyaraj
Posts: 17
Joined: Tue Feb 12, 2013 8:03 am
Location: Bangalore, INDIA

Re: connection refused by host

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: connection refused by host

Post 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.
fretagi
Posts: 14
Joined: Thu Apr 26, 2012 1:47 am

Re: connection refused by host

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: connection refused by host

Post 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>
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked