Page 1 of 1

could not fetch information from server

Posted: Thu Jul 16, 2015 9:43 am
by ff4pierre
Hi,

I use Nagios with Centreon. I make my command on centreon and I test these directly in nagios in prompt with the user nagios.
I have several windows's servers and I check them with this command :
$USER1$/check_nt -H $HOSTADDRESS$ -v MEMUSE -w $ARG1$ -c $ARG2$ -p 12489

It's ok for all my servers exept one.
I have this message : could not fetch information from server.

I have check my nsclient.ini and it's ok.

It's a webserver behind a firewall. I authorized the port 12489 on my firewall.

Thanks for your help and excuse me for my english I'm French.

Re: could not fetch information from server

Posted: Thu Jul 16, 2015 2:47 pm
by jdalrymple
Is it safe to assume that you're using nsclient++ on the Windows host? If so, make sure it's running of course. Check it's logfile. If logging isn't enabled add these lines to your nsclient.ini and restart:

Code: Select all

[/settings/log]
file name = nsclient.log
level = debug
The other troubleshooting technique would be to NMAP -p 12489 <hostIP> from your monitoring server just to make absolutely certain you don't have any firewall issues.

Re: could not fetch information from server

Posted: Fri Jul 17, 2015 2:23 am
by ff4pierre
Thanks for your answer I resolved my problem.
I check my logs and there was this line :
error:D:\source\nscp\include\check_nt/server/protocol.hpp:67: : rejected connection from 192.168.0.253

So, I look this web page : http://docs.nsclient.org/faq/ and I add 192.168.0.253 in hosts allowed in nsclient.ini

Thank you very much ! :D

Re: could not fetch information from server

Posted: Fri Jul 17, 2015 9:29 am
by tmcdonald
Glad to hear!

I'll be closing this thread now, but feel free to open another if you need anything in the future!