Hi,
I am using Nagios XI 1.8 and hve installed the NRPE agent on a Solaris server to be monitored. However, I get the "Connection refused by host" message in Nagios. The nagios account and password has been setup on the remote host.
What are the additional configuration steps required to get this working both on the Nagios Server and the remote host.
Any assistance is appreciated.
NRPE - Connection refused by host
Re: NRPE - Connection refused by host
Run the following command on your client machine and post the output:
From your nagios server:
also
Did you check if you have any firewall issues?
Are you using xinetd? If you do, make sure you have your nagios xi server's IP address added to the "only_from = " line.
Code: Select all
# /usr/local/nagios/libexec/check_nrpe -H localhostCode: Select all
# /usr/local/nagios/libexec/check_nrpe -H <your_client_IP_address>Code: Select all
# telnet <your_client_IP_address> 5666Are you using xinetd? If you do, make sure you have your nagios xi server's IP address added to the "only_from = " line.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: NRPE - Connection refused by host
Hi, Thanks for the feedback. I have ran the command on the Nagios servers and the result I get is "Connection refused".
My unix support guy assures me that he cannot fine the nrpe command hence cannot run the commands you posted. I previously supplied the nrpe 2.13 installation and he assures me that this has already been installed.
Please can you advise the options I have in monitoring a Solaris 10 machine and what I will need to install on the host to be monitored.
I appreciate your assistance.
My unix support guy assures me that he cannot fine the nrpe command hence cannot run the commands you posted. I previously supplied the nrpe 2.13 installation and he assures me that this has already been installed.
Please can you advise the options I have in monitoring a Solaris 10 machine and what I will need to install on the host to be monitored.
I appreciate your assistance.
Re: NRPE - Connection refused by host
Now working ok. Missed out the plugins. This is now installed and working fine.
However any ideas how I get it to check_disk and check_cpu_stats?
Thanks.
However any ideas how I get it to check_disk and check_cpu_stats?
Thanks.
Re: NRPE - Connection refused by host
If you can run the following command successfully from the command line on your Nagios server, you should be able to start running some checks.
I am not sure how it will work with Solaris, but you can try running from the command line on your Nagios server, something like this:
Make sure you use proper syntax. You can check the usage by running:
and
It will be similar for the check_cpu_stats.
Code: Select all
# /usr/local/nagios/libexec/check_nrpe -H <your_client_IP_address>Code: Select all
/usr/local/nagios/libexec/check_nrpe -H <IP_of_the_target_machine> -t 30 -c check_disk -a '-w 20% -c 10% -p /'Code: Select all
/usr/local/nagios/libexec/check_nrpe -hCode: Select all
/usr/local/nagios/libexec/check_disk -hCode: Select all
/usr/local/nagios/libexec/check_nrpe -H <IP_of_the_target_machine> -t 30 -c check_cpu_stats -a '-w 85 -c 95'Be sure to check out our Knowledgebase for helpful articles and solutions!