check_nrpe error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Bogdan_B
Posts: 34
Joined: Fri Aug 03, 2012 1:56 am

check_nrpe error

Post by Bogdan_B »

Hi,

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

bb
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_nrpe error

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Bogdan_B
Posts: 34
Joined: Fri Aug 03, 2012 1:56 am

Re: check_nrpe error

Post 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
You do not have the required permissions to view the files attached to this post.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check_nrpe error

Post 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?
Bogdan_B
Posts: 34
Joined: Fri Aug 03, 2012 1:56 am

Re: check_nrpe error

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

Re: check_nrpe error

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: check_nrpe error

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked