Socket Time Out error in the Amazon Ec2 Cloud Instance.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
rahul5028
Posts: 17
Joined: Mon Feb 01, 2016 10:11 pm

Re: Socket Time Out error in the Amazon Ec2 Cloud Instance.

Post by rahul5028 »

Here is the screenshot of service info from Configure -> Core Config Manager -> Click 'Services

Also following is the output when I run nmap windowsip on NagiosXI Ec2 Instance on Amazon AWS, Can You please guide where exactly the problem is and how we can rectify this issue?
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Socket Time Out error in the Amazon Ec2 Cloud Instance.

Post by rkennedy »

Perfect, looks like you're using check_nt which will use port 12489.

The nmap should have been able to ping the host, and show us that port 12489. Because the Nagios machine can't even ping the 172.25.30.41 machine though, really makes me think this is a firewall issue. Can you please verify your Amazon settings?
Former Nagios Employee
rahul5028
Posts: 17
Joined: Mon Feb 01, 2016 10:11 pm

Re: Socket Time Out error in the Amazon Ec2 Cloud Instance.

Post by rahul5028 »

On Amazon AWS we have open ports for 12489,5666 in the security Inbound rules(Refer below screenshot), Also we turned off firewall on windows server which we are trying to monitor.

Not sure where exactly the problem, It looks all configuration settings good. Could you please guide us to fix this issue.
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Socket Time Out error in the Amazon Ec2 Cloud Instance.

Post by rkennedy »

Do you have security groups in play? This will be difficult because we don't know how your network is setup.
Former Nagios Employee
rahul5028
Posts: 17
Joined: Mon Feb 01, 2016 10:11 pm

Re: Socket Time Out error in the Amazon Ec2 Cloud Instance.

Post by rahul5028 »

Security groups running on AWS Instance..I'm not sure which network setup you are talking about. Nagios Instance running on AWS and that Instance trying to communicate with our local windows server but its not happening.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Socket Time Out error in the Amazon Ec2 Cloud Instance.

Post by tgriep »

Lets see if running the nmap to port 12489 returns any information.
Login to your XI server and run the following and post the results.

Code: Select all

nmap 172.25.30.41 -p 12489
From your windows host, can you check the nsclient.log file for any errors and post them?
Can you upload your nsclient.ini or nsc.ini file from the Nsclient++ folder?
Be sure to check out our Knowledgebase for helpful articles and solutions!
rahul5028
Posts: 17
Joined: Mon Feb 01, 2016 10:11 pm

Re: Socket Time Out error in the Amazon Ec2 Cloud Instance.

Post by rahul5028 »

Please see all required information in below screenshots, Also It would be great if you guys guide us with some Instructions how we can setup nagios Instance properly on Amazon AWS Instead of spending lot of time for posting and reply.
You do not have the required permissions to view the files attached to this post.
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Socket Time Out error in the Amazon Ec2 Cloud Instance.

Post by bwallace »

You have a network issue somewhere if Nmap cannot reach the target host and we cannot help you with that unfortunately.

Once you get that cleared up, we would be happy to assist and we can start by correcting your NSCLIENT.ini file -- you'll need to add the XI IP address seen in the screenshot to the ALLOWED HOSTS line. Keep in mind this has no influence on the Nmap results however.
Be sure to check out the Knowledgebase for helpful articles and solutions!
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Socket Time Out error in the Amazon Ec2 Cloud Instance.

Post by jolson »

Code: Select all

nmap -Pn -p 12489 172.25.30.41
Give the above a try - that will let us know for certain whether or not the port is open. Thanks!
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
rahul5028
Posts: 17
Joined: Mon Feb 01, 2016 10:11 pm

Re: Socket Time Out error in the Amazon Ec2 Cloud Instance.

Post by rahul5028 »

Following is the output of nmap -Pn -p 12489 172.25.30.41, Can you please guide us if there are any customization that we need to do on AWS Amazon system.
You do not have the required permissions to view the files attached to this post.
Locked