could not fetch information from server

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ff4pierre
Posts: 2
Joined: Thu Jul 16, 2015 9:22 am

could not fetch information from server

Post 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.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: could not fetch information from server

Post 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.
ff4pierre
Posts: 2
Joined: Thu Jul 16, 2015 9:22 am

Re: could not fetch information from server

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: could not fetch information from server

Post 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!
Former Nagios employee
Locked