Page 1 of 1

NagiosXI throwing HTTP ERROR 500 after 5.6.0 upgrade

Posted: Fri Apr 26, 2019 6:16 pm
by Sampath.Basireddy
Hello There,

NagiosXI throwing HTTP ERROR 500 after 5.6.0 upgrade.

upgrade ran through fine with a successful message, but after the upgrade complete, console is throwing HTTP 500.

Did anyone faced similar issue, please suggest.

Re: NagiosXI throwing HTTP ERROR 500 after 5.6.0 upgrade

Posted: Sat Apr 27, 2019 6:56 pm
by Sampath.Basireddy
Got it figured, a bunch of files permissions changed to root which appeared to have caused the problem.

Changing the ownership to nagios:nagios fixed the issue.

Here is one of the error message I found in "/var/log/httpd/ssl_error_log. There were more than few such errors:

Code: Select all

[Fri Apr 26 21:11:59.668995 2019] [:error] [pid 13542] [client 10.10.120.143:51643] PHP Warning:  require_once(/usr/local/nagios/nagiosxi/html/includes/utils-graphs.inc.php): failed to open stream: Permission denied in /usr/local/nagios/nagiosxi/html/includes/utils.inc.php on line 25,
Here are a list of files I found to have permissions changed or new files added after upgrade to 5.6.0 which were owned by root.

Code: Select all

/usr/local/nagios/nagiosxi/html/includes/utils-graphs.inc.php
/usr/local/nagiosxi/html/images/disabled_small.png
/usr/local/nagiosxi/html/images/enabled_small.png
/usr/local/nagiosxi/html/images/control_stop.png
/usr/local/nagiosxi/html/includes/components/nagioscore/ui/images/logos/activedirectory.png
/usr/local/nagiosxi/html/images/control_restart.png
/usr/local/nagiosxi/html/images/disabled_unimportant_small.png
/usr/local/nagios/nagiosxi/html/includes/utils.inc.php
I still see this error though, but does not really help to identify what the issue is looking at the message:

Code: Select all

[Fri Apr 26 21:53:56.873756 2019] [:error] [pid 17145] [client 10.20.132.175:51890] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0

Re: NagiosXI throwing HTTP ERROR 500 after 5.6.0 upgrade

Posted: Mon Apr 29, 2019 11:04 am
by benjaminsmith
Hi @Sampath.Basireddy,

Looks like this thread is a duplicate. Closing this one. Please open one post per issue.

Thanks.