not able to monitor linux box Connection refused by host
not able to monitor linux box Connection refused by host
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.
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
On the remote machine can you run the following to see of it is listening on 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 localhost 5666Code: Select all
nc -z <REMOTE_IP> 5666Re: not able to monitor linux box Connection refused by host
i think able to communicate to 5666 from both the machine.
return on to terminal without any error.
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
It should give return if it is listening, ie
Can you run the following and try again
Also, can you post the results of the following command
Code: Select all
Connection to localhost 5666 port [tcp/nrpe] succeeded!Code: Select all
service xinetd restartCode: Select all
ls -l /usr/local/nagios/bin/nrpeRe: not able to monitor linux box Connection refused by host
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
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
did you try running
Code: Select all
service xinetd restart-
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
After restarting xinetd on the remote machine can you run the following from your XI server
Code: Select all
nc -z <REMOTE_IP> 5666