Nagios gui in accessible after upgrade.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
netaura
Posts: 31
Joined: Tue Feb 16, 2016 5:52 pm

Nagios gui in accessible after upgrade.

Post 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.
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios gui in accessible after upgrade.

Post 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.
Former Nagios Employee
netaura
Posts: 31
Joined: Tue Feb 16, 2016 5:52 pm

Re: Nagios gui in accessible after upgrade.

Post 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!
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios gui in accessible after upgrade.

Post 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
netaura
Posts: 31
Joined: Tue Feb 16, 2016 5:52 pm

Re: Nagios gui in accessible after upgrade.

Post by netaura »

Here is the requested file.
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios gui in accessible after upgrade.

Post 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):

Code: Select all

tail -fn0 /var/log/httpd/*
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:

Code: Select all

apachectl -t
netaura
Posts: 31
Joined: Tue Feb 16, 2016 5:52 pm

Re: Nagios gui in accessible after upgrade.

Post by netaura »

Here is the requested error_log.

apachectl -t
Syntax OK
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios gui in accessible after upgrade.

Post by ssax »

Please edit this file:

Change this code:

Code: Select all

Order allow,deny
Allow from all
To this:

Code: Select all

Require all granted
Then restart the httpd service:

Code: Select all

service httpd restart
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
netaura
Posts: 31
Joined: Tue Feb 16, 2016 5:52 pm

Re: Nagios gui in accessible after upgrade.

Post by netaura »

Please what file are we editing, I didn't see any specified file?
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Nagios gui in accessible after upgrade.

Post by avandemore »

/etc/httpd/conf.d/nagios.conf Please note there are 2 instances in the file.
Previous Nagios employee
Locked