Page 1 of 1

not able to monitor linux box Connection refused by host

Posted: Fri May 18, 2012 3:06 am
by lntinfo
i have installed linux nrpe on remote machine after installing i have added that machine in nagiosxi
but not able to monitor i do get error e.g. Connection refused by host

nagios ip is present in /etc/xinet.d/nrpe file

however i am able to monitor those server using SNMP

also, cpu parameter not able to monitor some of the linux servers below error persist:-
CPU Stats Unknown 3m 22s 4/5 2012-05-18 11:51:07 UNKNOWN: iostat not found or is not executable by the nagios user.

Re: not able to monitor linux box Connection refused by host

Posted: Fri May 18, 2012 8:56 am
by scottwilkerson
On the remote machine can you run the following to see of it is listening on 5666

Code: Select all

nc -z localhost 5666
If that comes back succeeded, then from your nagios XI server run the following to see if your XI server can reach the remote host on 5666

Code: Select all

nc -z <REMOTE_IP> 5666

Re: not able to monitor linux box Connection refused by host

Posted: Mon May 21, 2012 7:16 am
by lntinfo
i think able to communicate to 5666 from both the machine.

return on to terminal without any error.

Re: not able to monitor linux box Connection refused by host

Posted: Mon May 21, 2012 10:51 am
by scottwilkerson
It should give return if it is listening, ie

Code: Select all

Connection to localhost 5666 port [tcp/nrpe] succeeded!
Can you run the following and try again

Code: Select all

service xinetd restart
Also, can you post the results of the following command

Code: Select all

ls -l /usr/local/nagios/bin/nrpe

Re: not able to monitor linux box Connection refused by host

Posted: Wed May 23, 2012 12:14 am
by lntinfo
i am not getting message like:-
Connection to localhost 5666 port [tcp/nrpe] succeeded!

-rwxrwxr-x 1 nagios nagios 115237 May 18 12:54 /usr/local/nagios/bin/nrpe

Re: not able to monitor linux box Connection refused by host

Posted: Wed May 23, 2012 9:08 am
by scottwilkerson
did you try running

Code: Select all

service xinetd restart

Re: not able to monitor linux box Connection refused by host

Posted: Mon May 28, 2012 2:04 am
by lntinfo
yes

Re: not able to monitor linux box Connection refused by host

Posted: Tue May 29, 2012 9:11 am
by scottwilkerson
After restarting xinetd on the remote machine can you run the following from your XI server

Code: Select all

nc -z <REMOTE_IP> 5666