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.
could not fetch information from server
-
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: could not fetch information from server
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:
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.
Code: Select all
[/settings/log]
file name = nsclient.log
level = debug
Re: could not fetch information from server
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 !
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 !
Re: could not fetch information from server
Glad to hear!
I'll be closing this thread now, but feel free to open another if you need anything in the future!
I'll be closing this thread now, but feel free to open another if you need anything in the future!
Former Nagios employee