Page 1 of 1

check_nrpe error

Posted: Fri Jan 25, 2013 3:45 am
by Bogdan_B
Hi,

Could you please explain me why it happened this NRPE error ?
poza1.jpg
Thank you !

bb

Re: check_nrpe error

Posted: Fri Jan 25, 2013 9:17 am
by scottwilkerson
Is NRPE running on the External IP?

Is there any firewall between the XI server and the External IP?

On the External IP, can you run

Code: Select all

iptables -L

Re: check_nrpe error

Posted: Mon Jan 28, 2013 10:54 am
by Bogdan_B
Hi,
Is NRPE running on the External IP?
NRPE is running on the external IP only for Windows OS. When I try it for Linux I received : CHECK_NRPE: Socket timeout after 10 seconds.
Is there any firewall between the XI server and the External IP?
Yes but it is working fine between the XI server and Win OS.
On the External IP, can you run: iptables -L
There is vmware ESXi 4.1 and it doesnt have iptables.
firewall.png

On Xi server :
[root@SERVER ~]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTAB LISHED
ACCEPT icmp -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:s mtp
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:h ttps
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:s sh
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:s nmp
ACCEPT udp -- anywhere anywhere state NEW udp dpt:s nmp
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:s nmptrap
ACCEPT udp -- anywhere anywhere state NEW udp dpt:s nmptrap
ACCEPT tcp -- anywhere anywhere state NEW tcp dpts: nrpe:nsca
REJECT all -- anywhere anywhere reject-with icmp-ho st-prohibited

Chain FORWARD (policy ACCEPT)
target prot opt source destination
REJECT all -- anywhere anywhere reject-with icmp-ho st-prohibited

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Re: check_nrpe error

Posted: Mon Jan 28, 2013 11:09 am
by slansing
Your configuration will be different between Linux and Windows NRPE agents, are you attempting to install and monitor an ESX server with NRPE?

Re: check_nrpe error

Posted: Tue Jan 29, 2013 2:27 am
by Bogdan_B
slansing wrote:Your configuration will be different between Linux and Windows NRPE agents, are you attempting to install and monitor an ESX server with NRPE?
Yes. Is it possible ?

Re: check_nrpe error

Posted: Tue Jan 29, 2013 7:48 am
by scottwilkerson
Bogdan_B wrote:Yes. Is it possible ?
Theoretically yes, you would need to compile it on the underlying OS, the procedure would depend on the OS

Re: check_nrpe error

Posted: Tue Jan 29, 2013 8:00 am
by lmiltchev
Did you follow our documentation for installing the linux agent (nrpe) on the client machine?

Can you telnet to your client from your Nagios XI server?

Code: Select all

telnet <client_IP> 5666
If you have nc installed on the Nagios XI server, you can also run:

Code: Select all

nc -zv <client_IP> 5666