not able to monitor linux box Connection refused by host

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
lntinfo
Posts: 136
Joined: Tue Mar 01, 2011 10:17 am

not able to monitor linux box Connection refused by host

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
lntinfo
Posts: 136
Joined: Tue Mar 01, 2011 10:17 am

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

Post by lntinfo »

i think able to communicate to 5666 from both the machine.

return on to terminal without any error.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
lntinfo
Posts: 136
Joined: Tue Mar 01, 2011 10:17 am

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

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post by scottwilkerson »

did you try running

Code: Select all

service xinetd restart
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
lntinfo
Posts: 136
Joined: Tue Mar 01, 2011 10:17 am

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

Post by lntinfo »

yes
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked