http 500 after update 5.6.x to 5.7.2

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
CBoekhuis
Posts: 220
Joined: Tue Aug 16, 2011 4:55 am

http 500 after update 5.6.x to 5.7.2

Post by CBoekhuis »

Hi
After upgrade to 5.7.2 i get blanc pages wen hitting a host or service.
This makes nagios unworkable.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: http 500 after update 5.6.x to 5.7.2

Post by tgriep »

What OS and Release is the server running?

One thing to try is to reset the processes, clean and repair the MYSQL databases to see if that fixes the issue.

Run these commands to stop the processes, clean and repair the SQL database and to restart the processes. Run them all as root. Show all of the output.

Code: Select all

service npcd stop
service nagios stop
service crond stop
pkill -9 -u nagios
echo "truncate table xi_events; truncate table xi_meta; truncate table xi_eventqueue;" | mysql -u root -pnagiosxi nagiosxi
mysqlcheck -f -r -u root -pnagiosxi --all-databases --use-frm
if grep --quiet pgsql /usr/local/nagiosxi/html/config.inc.php; then service postgresql stop; fi;
service mysqld restart
rm -f /usr/local/nagios/var/rw/nagios.cmd
rm -f /usr/local/nagios/var/nagios.lock
rm -f /var/run/nagios.lock
rm -f /var/lib/mrtg/mrtg_l
rm -f /usr/local/nagiosxi/var/*.lock
for i in `ipcs -q | grep nagios |awk '{print $2}'`; do ipcrm -q $i; done
pkill python
if grep --quiet pgsql /usr/local/nagiosxi/html/config.inc.php; then service postgresql start; fi;
service httpd restart
service nagios start
service npcd start
service crond start
If that does not fix the issue, run this as root on the XI server.

Code: Select all

tail -f /var/log/httpd/*_log
Login to the Web interface and generate the http 500 error.
Stop the tail command, copy the data from the console and post it so we can see what sort of errors are in the log files.
Be sure to check out our Knowledgebase for helpful articles and solutions!
CBoekhuis
Posts: 220
Joined: Tue Aug 16, 2011 4:55 am

Re: http 500 after update 5.6.x to 5.7.2

Post by CBoekhuis »

In this case the solutions was to remove the historytab directory:

rm -rf /usr/local/nagiosxi/html/includes/components/historytab

I had the solution through a ticket i send.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: http 500 after update 5.6.x to 5.7.2

Post by tgriep »

Thanks for reporting back. I'll lock the post for you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked