Page 1 of 2
Nagios gui in accessible after upgrade.
Posted: Fri Dec 09, 2016 5:35 pm
by netaura
Hi,
We upgraded our Nagios xi from 5.2.9 and thereafter, our Nagios web interface became inaccessible again, we had to revert back to snapshot.
Please can we get any suggestion as to what could have happened.
I also attached a snapshot of the error from the upgrade.
Thanks.
Re: Nagios gui in accessible after upgrade.
Posted: Mon Dec 12, 2016 10:55 am
by rkennedy
Could you upload the related log file for us to review? This should have some information. The next step, would be looking at all of your apache log files in /var/log/httpd/. Please post these as well.
My guess, is apache may have updated as well, and if you were using 2.2 and went to 2.4, you'd see a couple things that need to be adjusted.
Re: Nagios gui in accessible after upgrade.
Posted: Mon Dec 12, 2016 2:14 pm
by netaura
We don't have the logs because we had to revert back to snapshot.
Please can we have someone from support jump on a call with us, because we are still on Nagios xi 5.2.9.
Thanks!
Re: Nagios gui in accessible after upgrade.
Posted: Mon Dec 12, 2016 2:23 pm
by ssax
If you are receiving a
500: Internal Server Error it's likely an Apache configuration issue, please run this command and send me the resulting
/tmp/httpdfiles.zip file:
Code: Select all
zip -r /tmp/httpdfiles.zip /etc/httpd/conf/httpd.conf /etc/httpd/conf.d/*
Thank you
Re: Nagios gui in accessible after upgrade.
Posted: Mon Dec 12, 2016 2:33 pm
by netaura
Here is the requested file.
Re: Nagios gui in accessible after upgrade.
Posted: Mon Dec 12, 2016 2:59 pm
by ssax
Thank you, the files work properly on my machine during the upgrade, something else is getting broken, we would need to see your entire upgrade.log or the full output of the errors to proceed further.
When you are experiencing the issue, please run this command (and let it run):
Then try to pull up the web interface and send the entire output of the tail command.
Also, when you are experiencing the issue, please send the output of this command as well:
Re: Nagios gui in accessible after upgrade.
Posted: Mon Dec 12, 2016 7:36 pm
by netaura
Here is the requested error_log.
apachectl -t
Syntax OK
Re: Nagios gui in accessible after upgrade.
Posted: Tue Dec 13, 2016 5:25 pm
by ssax
Please edit this file:
Change this code:
To this:
Then restart the httpd service:
Then re-try the upgrade, if it still doesn't work, please post the output of these commands:
Code: Select all
sestatus
ls -ld /usr/local/nagiosxi/html/includes
ls -l /usr/local/nagiosxi/html/includes
grep nag /etc/group
Thank you
Re: Nagios gui in accessible after upgrade.
Posted: Wed Dec 14, 2016 12:44 pm
by netaura
Please what file are we editing, I didn't see any specified file?
Re: Nagios gui in accessible after upgrade.
Posted: Wed Dec 14, 2016 3:39 pm
by avandemore
/etc/httpd/conf.d/nagios.conf Please note there are 2 instances in the file.