Page 1 of 1

Could not fetch information from server

Posted: Mon Apr 19, 2010 2:48 pm
by afrias
Can you helpme!
I add the win2008 server an the client nagios see:
Could not fetch information from server
The firewall is off

Re: Could not fetch information from server

Posted: Mon Apr 19, 2010 3:09 pm
by admin
Did you specify the same password in the wizard and on the server? This can sometimes happen if the passwords are incorrect. It can also happen if the agent installation didn't start the monitoring service properly, or if you didn't specify the IP address of the Nagios XI monitoring server as the allowed host when you installed the NSClient++ agent.

Re: Could not fetch information from server

Posted: Mon Apr 19, 2010 3:15 pm
by mmestnik
We would love to help, but you will need to provide much much more information.

Did you install the Windows Agent? When running a packet trace on the windows machine does it receive packets? Does it send replies? What about tracing packets on the NagiosXI Server?

At least that's what I'd be doing in this situation if I were you.

I think what you are saying is that after adding a host to NagiosXI in the web browser(client) NagiosXI reports this error. When you say the firewall if off I take that to mean that Windows has the Firewall disabled.

One thing that I might want to look into is the topology. By your statements I understand you have one NagiosXI server and one Windows server. I assume that these are connected to the same network switch, in an office or server room.

Re: Could not fetch information from server

Posted: Mon Apr 19, 2010 4:53 pm
by afrias
Thank you!
The password in the wizard and on the server is the same (the server and the nagios interface)
THe servers (windows and nagios) is the same network and see pings
Can you helpme? Thanks in advance!

Re: Could not fetch information from server

Posted: Tue Apr 20, 2010 12:34 pm
by mmestnik
You continue to make us guess :cry:
We need a vary clear picture of why this is not working, you will need to show us. Then we can say, "Ohh you remember when you sad X? This would mean Y. so you should do Z." However unless you say something we are not going to be of any help to you and it sounds vary much like you need specific help.

Though it's true that the above are great examples of what to do in this situation, they don't reflect your situation at all so they shouldn't be of any help to you. As exemplified by your response.

I don't mean to be vary hash, but I say this for your own good... not mine.
How can we help you?

Re: Could not fetch information from server

Posted: Wed Apr 21, 2010 10:15 pm
by Box293
Some basic things to check.

You are saying the windows firewall is disabled, this is good for troubleshooting your problem, double check it is disabled.
Have you installed NSClient++ on your windows server?
If yes then here is an example of how your NSC.ini should be configured.
[modules]
NRPEListener.dll
NSClientListener.dll
NSCAAgent.dll
CheckWMI.dll
FileLogger.dll
CheckSystem.dll
CheckDisk.dll
CheckEventLog.dll
CheckHelpers.dll
Notice how none of these have a ; at the begining of the line.

further down the file
;# PASSWORD
; This is the password (-s) that is required to access NSClient remotely. If you leave this blank everyone will be able to access the daemon remotly.
password=password
Make sure that the password has been set correctly. If you are not using a password then you can ; out this line and not use the -s parameter.
;# USE THIS FILE
; Use the INI file as opposed to the registry if this is 0 and the use_reg in the registry is set to 1
; the registry will be used instead.
use_file=1
allowed_hosts=10.0.0.253
Make sure allowed_hosts is the IP address of your Nagios XI server.

Restart your NSClient++ service on your windows host.

Perform a simple test (C: drive usage, assuming 10.0.0.80 is the IP of your Windows server and password is the password):
  • Access the console or putty session of your Nagios XI server
    Type cd /usr/local/nagios/libexec/ and press Enter
    Type ./check_nt -H 10.0.0.80 -s "password" -p 12489 -v USEDDISKSPACE -l C and press Enter
    Should return something like this:
    C:\ - total: 50.00 Gb - used: 36.69 Gb (73%) - free 13.31 Gb (27%) | 'C:\ Used Space'=36.69Gb;0.00;0.00;0.00;50.00
If you have a result returned to you then your Nagios XI server is correctly talking to your Windows server and your Windows server NSC.ini file is correctly configured.

I hope this is helpfull.