could not fetch information from server

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
ofadl
Posts: 201
Joined: Mon Jun 03, 2013 8:57 am

could not fetch information from server

Post by ofadl »

Hello everyone

I was setting up a couple servers on nagios, and after i was done, i got the error "could not fetch information from server". Anyone know how to resolve this?

Thanks
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: could not fetch information from server

Post by abrist »

Are these windows servers running nsclient?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
ofadl
Posts: 201
Joined: Mon Jun 03, 2013 8:57 am

Re: could not fetch information from server

Post by ofadl »

yes two of them are running it, but one give that error of "could not fetch information from server" and the other gives a " no data was received from host"
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: could not fetch information from server

Post by lmiltchev »

I assume you are trying to monitor windows servers - did you add nagios IP to the "allowed_hosts=" line in the NSC.ini (or nsclient.ini) file on the client?
Be sure to check out our Knowledgebase for helpful articles and solutions!
ofadl
Posts: 201
Joined: Mon Jun 03, 2013 8:57 am

Re: could not fetch information from server

Post by ofadl »

what do u mean by the nagios IP, dont u mean the server ip?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: could not fetch information from server

Post by abrist »

ofadl wrote:what do u mean by the nagios IP, dont u mean the server ip?
IP as in the ip address of the nagios server.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
ofadl
Posts: 201
Joined: Mon Jun 03, 2013 8:57 am

Re: could not fetch information from server

Post by ofadl »

there are two allowed_hosts lines, which one do i add the nagios ip adress to, or do i add the nagios ip to both?
ofadl
Posts: 201
Joined: Mon Jun 03, 2013 8:57 am

Re: could not fetch information from server

Post by ofadl »

i got it working, thanks alot for your help guys.... I had one more question, i have the same problem for the "could not fetch information from server" for two other services, which are not NSClient, both are CPU load processes
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: could not fetch information from server

Post by slansing »

We're moving to your other thread to take care of this issue.. in the future, please keep similar issues in the same thread, thanks!
Locked