Page 1 of 2
Problem with upgrade in core
Posted: Mon Aug 11, 2014 12:21 pm
by ravish78
Team,
We are trying to upgrade core from 3.x to 4.0.7.
We are following steps given in nagios site.We could perform all steps without any issues but after upgtade we still see old version.
We executed steps as root user.Only steps which we missed is below as we could not find them in older version.
rm /usr/local/nagios/share/{main,side,index}.html
Can you please let us know what might be the issue.Attached is the document containing steps we followed.
Thanks
Ravi
Re: Problem with upgrade in core
Posted: Mon Aug 11, 2014 2:18 pm
by abrist
Are you trying to upgrade core on an XI 2012rx.x sever?
Re: Problem with upgrade in core
Posted: Mon Aug 11, 2014 2:28 pm
by ravish78
This is another server which we are using core with version 3.0.6.
We are trying to upgrade it with latest core version
Re: Problem with upgrade in core
Posted: Mon Aug 11, 2014 3:03 pm
by abrist
So this is not an XI server is it? I will move the post to the core forums.
You should just need to run the following after make install in order to update the webfiles:
Re: Problem with upgrade in core
Posted: Tue Aug 12, 2014 9:58 am
by ravish78
Tried this option still it is showing old version.
Re: Problem with upgrade in core
Posted: Wed Aug 13, 2014 9:20 am
by sreinhardt
With the 4.x versions, these are no longer html files, but php. As far as form and function, they should be exactly the same though. You can certainly create an apache rewrite rule to change your html requests into php requests internally.
Re: Problem with upgrade in core
Posted: Thu Aug 14, 2014 10:23 am
by ravish78
I have made some changes in apache2.conf file.It is now showing home page with correct version 4.0.7.
Now we are facing different issue.All the pages seems to be blank.Left side bar is visible but when i click any host or services it is not pointing to correct pages.
it gives me below page
Whoops!
Error: Could not read host and service status information!
I tried to run manual config check it is working fine.Attached output.
In nagios logs i could see checks are happening with no issues.
In apache logs i see below error
[Thu Aug 14 14:39:28 2014] [notice] Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny16 with Suhosin-Patch configured -- resuming normal operations
[Thu Aug 14 14:39:35 2014] [error] [client 10.214.22.115] File does not exist: /var/www/nagios, referer: http://awsjmp.support.xerox.com/nagios4 ... hostdetail
[Thu Aug 14 14:39:39 2014] [error] [client 10.214.22.115] File does not exist: /var/www/nagios, referer: http://awsjmp.support.xerox.com/nagios4 ... i?host=all
Can you let me know how to proceed
Re: Problem with upgrade in core
Posted: Thu Aug 14, 2014 8:47 pm
by sreinhardt
Could you post the apache configs you are modifying, you shouldn't be pointing to /var/www/html, unless something has drastically changed on the installer for debian. Also just a note, but while you are having issues, I would HIGHLY suggest reverting to standard php instead of suhosin. It's a great set of security enhancements, but without proper configuration you will definitely have issues. Lets get the upgrade working, then work on securing it with third party tools.
Re: Problem with upgrade in core
Posted: Fri Aug 15, 2014 9:03 am
by ravish78
Attached apache2 conf file.
Re: Problem with upgrade in core
Posted: Mon Aug 18, 2014 4:54 pm
by abrist
You wouldn't by chance have a second vhost file for nagios somewhere in etc on this server would you? "/var/www" is not mentioned once in the vhost file.