Page 1 of 1

GUI issue after upgrade from NagiosXI 2014r2.7 to xi-5r1.0

Posted: Thu Aug 23, 2018 4:10 am
by nfv_nagios
Hi Support

I recently upgraded NagiosXI 2014r2.7 to NagiosXI 5r1.0. After upgrading, my GUI became distorted.
I have tried on IE, Chrome and Firefox browsers and all are having the same issue.
GUI_issue.PNG
Can you advise how to resolve this issue?

Re: GUI issue after upgrade from NagiosXI 2014r2.7 to xi-5r1

Posted: Thu Aug 23, 2018 12:49 pm
by npolovenko
Hello, @nfv_nagios. Looks like some problem with the stylesheet. Can you send in your /var/log/httpd/error_log ?

Re: GUI issue after upgrade from NagiosXI 2014r2.7 to xi-5r1

Posted: Thu Aug 23, 2018 8:49 pm
by nfv_nagios
Hi Support

After reviewing the error log, it seems to be some permission issue. I managed to fix most of it but there are still some more which i am not able to fix.

The error shows client is accessing an invalid location. Can you advise how can i fix this?

# find / -name modern.js
/usr/local/nagiosxi/html/includes/js/themes/modern.js

[Fri Aug 24 09:33:12 2018] [error] [client 10.252.6.132] (13)Permission denied: access to /nagiosxi/includes/js/themes/modern.js denied, referer: http://10.254.98.200/nagiosxi/views/
[Fri Aug 24 09:33:12 2018] [error] [client 10.252.6.132] (13)Permission denied: access to /nagiosxi/includes/js/themes/modern.js denied, referer: http://10.254.98.200/nagiosxi/views/main.php?&=
[Fri Aug 24 09:33:13 2018] [error] [client 10.252.6.132] (13)Permission denied: access to /nagiosxi/includes/js/themes/modern.js denied, referer: http://10.254.98.200/nagiosxi/
[Fri Aug 24 09:33:13 2018] [error] [client 10.252.6.132] (13)Permission denied: access to /nagiosxi/includes/js/themes/modern.js denied, referer: http://10.254.98.200/nagiosxi/
[Fri Aug 24 09:33:14 2018] [error] [client 10.252.6.132] (13)Permission denied: access to /nagiosxi/includes/js/themes/modern.js denied, referer: http://10.254.98.200/nagiosxi//includes ... splash.php
GUI_issue2.PNG

Re: GUI issue after upgrade from NagiosXI 2014r2.7 to xi-5r1

Posted: Fri Aug 24, 2018 9:19 am
by lmiltchev
Make sure apache is added to the nagios and nagcmd groups - you can check this out by running the following command from the CLI:

Code: Select all

grep nag /etc/group
Next, set ownership of all items under the html directory to nagios.nagios:

Code: Select all

chown -R nagios.nagios /usr/local/nagiosxi/html/
Check to see if this fixes your issue. It the problem is still present, run the tail on the apache error log and show us the output in code wraps:

Code: Select all

tail -100 /var/log/httpd/error_log

Re: GUI issue after upgrade from NagiosXI 2014r2.7 to xi-5r1

Posted: Sat Aug 25, 2018 12:53 am
by nfv_nagios
Hi Support

I managed to solve the issue.

I found /usr/local/nagiosxi/html/includes/js/themes was not given Group Execute. Did a "chmod g+x" and solved the issue.

Thanks for the support. You may close the ticket.

Re: GUI issue after upgrade from NagiosXI 2014r2.7 to xi-5r1

Posted: Mon Aug 27, 2018 8:59 am
by lmiltchev
I am glad your issue has been resolved!

I am closing this topic.