I receive connection refused by host for NRPE
i have installed nrpe on vmware
I have allowed the nrpe virtual server and the vmware host both added in nrpe.cfg(127.0.0.1,192.168.242.128(this is the virtual machine which nagios is running on it),192.168.25.45(it is the vmware host ip which is the virtual machine is running on it)
the netstat -an | grep 5666 result is listen
I start nrpe with /etc/init.d nrpe start
the firewall is stopped and SElinux is disabled either
I have tried all the instructions on the internet with no result!
any idea i would appreciate .
NRPE:connection refused by host
NRPE:connection refused by host
Last edited by barry1946 on Sat Aug 31, 2013 3:22 am, edited 1 time in total.
Re: NRPE:connection refused by host
Hi barry1946,
I'm not sure how you installed the NRPE, or which OS, but below are some instructions which hopefully help..
In this example, I installed from source on Ubunutu and using xinetd (I can provide a complete set of instructions from scratch if eventually required).
Edit the file /etc/xinetd.d/nrpe and add the Nagios server's IP;
Change;
To;
e.g.
Edit the file /etc/services to listen on port 5666 for Nagios;
Add the following to the end of the file;
Now you restart the xinetd service;
You can now check if NRPE is listening with the following command;
This should produce the following output;
Now finally test that it is working with the following command from the Nagios Server;
This should have output (based on version);
Hopefully the tests can help as well to pinpoint the issue.
Good luck!
Kind Regards,
Gary Shergill
I'm not sure how you installed the NRPE, or which OS, but below are some instructions which hopefully help..
In this example, I installed from source on Ubunutu and using xinetd (I can provide a complete set of instructions from scratch if eventually required).
Edit the file /etc/xinetd.d/nrpe and add the Nagios server's IP;
Code: Select all
vi /etc/xinetd.d/nrpeCode: Select all
only_from = 127.0.0.1Code: Select all
only_from = 127.0.0.1 <ip of nagios machine>Code: Select all
only_from = 127.0.0.1 192.168.3.114Code: Select all
vi /etc/servicesCode: Select all
nrpe 5666/tcp # NRPECode: Select all
service xinetd restartCode: Select all
netstat -at | grep nrpeCode: Select all
tcp 0 0 *:nrpe *:* LISTENCode: Select all
/usr/local/nagios/libexec/check_nrpe -H <remote host IP>Code: Select all
NRPE v2.13Good luck!
Kind Regards,
Gary Shergill
Re: NRPE:connection refused by host
gshergill is right on all counts. I would like to also refer you to the following document:
http://assets.nagios.com/downloads/nagi ... utions.pdf
http://assets.nagios.com/downloads/nagi ... utions.pdf
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.
"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.