could not fetch information from server
could not fetch information from server
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
Are sshd and apache running?:
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:
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.
Code: Select all
service sshd statusCode: Select all
service httpd statusCode: Select all
tail -50 /var/log/messages
tail -50 /var/log/httpd/error_log
tail -50 /usr/local/nagios/var/nagios.logRe: could not fetch information from server
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.
Re: could not fetch information from server
# service httpd status
httpd (pid 7875) is running...
httpd (pid 7875) is running...
Re: could not fetch information from server
Since the adapter/ip change, have you restarted httpd?rlevick wrote:but still no web interface.
Code: Select all
service httpd restartFormer 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.
"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.
Re: could not fetch information from server
I have restarted httpd. I'm connecting to the same IP. I configured the new eth manually with the same settings.
Re: could not fetch information from server
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
iptables -I INPUT 5 -i eth1 -p tcp --dport 80 -m state --state NEW,ESTABLISHED -j ACCEPT