Page 2 of 2
Re: CRITICAL - Socket timeout after 10 seconds
Posted: Wed Mar 07, 2018 11:23 am
by Dharan
yes, I do see errors, please find the attachment
Re: CRITICAL - Socket timeout after 10 seconds
Posted: Wed Mar 07, 2018 12:23 pm
by scottwilkerson
it must still be erroneously running and binding to socket
Lets run the following
Code: Select all
service ndo2db stop
killall -9 ndo2db
service ndo2db start
Re: CRITICAL - Socket timeout after 10 seconds
Posted: Wed Mar 07, 2018 1:34 pm
by Dharan
still the same
Re: CRITICAL - Socket timeout after 10 seconds
Posted: Wed Mar 07, 2018 1:51 pm
by scottwilkerson
did some digging and it could be a lock file
Run
Code: Select all
rm -f /usr/local/nagios/var/ndo2db.*
rm -f /usr/local/nagios/var/ndo.sock
rm -f /usr/local/nagiosxi/var/subsys/ndo2db
Then
Re: CRITICAL - Socket timeout after 10 seconds
Posted: Wed Mar 07, 2018 3:20 pm
by Dharan
Thank you so much , that worked. ndo2db is now running .
But, the test server critical socket time out errors still remain. Please suggest
Re: CRITICAL - Socket timeout after 10 seconds
Posted: Wed Mar 07, 2018 4:56 pm
by scottwilkerson
Ok, where we left off before, you had just added the IP to the nsclient.ini Can you verify the port 12489 is open on the Windows server and that the NSClient service is running.
Once you do that, can you run this?
Code: Select all
/usr/local/nagios/libexec/check_nt -H IP_ADDRESS -s "YOUR_PASSWORD" -p 12489 -v UPTIME
Re: CRITICAL - Socket timeout after 10 seconds
Posted: Wed Mar 14, 2018 12:29 pm
by Dharan
Thank you for the reply. I telnet the nagios server from with in the windows server on port 12489 and the connect failed.
The nsclient service is running fine and is set to automatic.
NSCP agent install created the inbound rules on port 12489 for Nagios montioring . Please find the attachments
Re: CRITICAL - Socket timeout after 10 seconds
Posted: Wed Mar 14, 2018 1:35 pm
by scottwilkerson
The firewall images look correct but this is backwards
Dharan wrote:I telnet the nagios server from with in the windows server on port 12489 and the connect failed.
the connection you are making is FROM nagios TO windows
What do you get running this on the nagios server (changing IP_ADDRESS and YOUR_PASSWORD)?
Code: Select all
/usr/local/nagios/libexec/check_nt -H IP_ADDRESS -s "YOUR_PASSWORD" -p 12489 -v UPTIME