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
rlevick
Posts: 49
Joined: Tue Jan 07, 2014 4:20 pm

could not fetch information from server

Post by rlevick »

Our Hyper-V environment rebooted the guests early this morning. Nagios was one of the VMs. Now Nagios is sending hundreds of could not fetch information from server alerts. The config verified, but I can't login to the web interface or via putty (ssh).
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 »

Are sshd and apache running?:

Code: Select all

service sshd status

Code: Select all

service httpd status
Are you using firewall rules that may have been re-set during the reboot? Or selinux definitions? Without more info on your installation, nagios version, changes like the aforementioned, it's hard to troubleshoot. Can you also provide the output of the following:

Code: Select all

tail -50 /var/log/messages

tail -50 /var/log/httpd/error_log

tail -50 /usr/local/nagios/var/nagios.log
Please wrap the output of the above in code tags that are available when you are writing your reply, next to the Bold, italics, underscore, and Quote buttons.
rlevick
Posts: 49
Joined: Tue Jan 07, 2014 4:20 pm

Re: could not fetch information from server

Post by rlevick »

Well I got Nagios connecting to the monitored servers again. Hyper-V had changed the ethernet connection to a different adapter with a different mac address. Once I gave the new eth1 a static IP, the services recovered. I can connect with ssh, but still no web interface.
rlevick
Posts: 49
Joined: Tue Jan 07, 2014 4:20 pm

Re: could not fetch information from server

Post by rlevick »

# service httpd status
httpd (pid 7875) is running...
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: could not fetch information from server

Post by abrist »

rlevick wrote:but still no web interface.
Since the adapter/ip change, have you restarted httpd?

Code: Select all

service httpd restart
Are you connecting to the right ip (the new one)?
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.
rlevick
Posts: 49
Joined: Tue Jan 07, 2014 4:20 pm

Re: could not fetch information from server

Post by rlevick »

I have restarted httpd. I'm connecting to the same IP. I configured the new eth manually with the same settings.
rlevick
Posts: 49
Joined: Tue Jan 07, 2014 4:20 pm

Re: could not fetch information from server

Post by rlevick »

Fixed it. Had to add the new eth1 to accept http traffic.

iptables -I INPUT 5 -i eth1 -p tcp --dport 80 -m state --state NEW,ESTABLISHED -j ACCEPT
Locked