Socket problem with host

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
cesar.garza
Posts: 80
Joined: Mon Aug 19, 2013 3:14 pm

Socket problem with host

Post by cesar.garza »

Hey guys
I got a new problem with nagios or remote host (web server), not sure who is making a problem. So, problem is, i am getting this error CHECK_NRPE: Socket timeout after 20 seconds. I know this is common error but i tried to find the reason but not able to resolve it. I have around 100 monitors from windows side and none of them gave me this error. I have a Nagios Server(Linux) and remote host (windows-web server) which is giving me above error. I checked the logs in the windows box and couldn't find anything. i changed my -t 120 in configuration but didn't happen anything. I was wondering it may be because of windows firewall but I could ping the box from Nagios to windows and windows to nagios too. I also verify the check_nrpe -H X.X.X.X from command line got the same above error.
cd
Attachments
command.cfg
command.cfg
command.jpg (10.58 KiB) Viewed 1037 times
service.cfg
service.cfg
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Socket problem with host

Post by slansing »

Is this only occurring for that specific check? Can you attach your nsc/nsclient.ini file here in a reply so we can look over it? Please block out passwords and front facing addresses.
cesar.garza
Posts: 80
Joined: Mon Aug 19, 2013 3:14 pm

Re: Socket problem with host

Post by cesar.garza »

Thanks for you reply and i figured it out why it was happened. Host server wasn't allowed anything from port 5666. As soon as we set the firewall for port, it worked.
Locked