Problem with upgrade in core

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Problem with upgrade in core

Post 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
Attachments
AWS NAGIOS VERSION UPGRADE.docx
(14.59 KiB) Downloaded 149 times
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Problem with upgrade in core

Post by abrist »

Are you trying to upgrade core on an XI 2012rx.x sever?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Re: Problem with upgrade in core

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Problem with upgrade in core

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

Code: Select all

make install-exfoliation
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Re: Problem with upgrade in core

Post by ravish78 »

Tried this option still it is showing old version.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Problem with upgrade in core

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Re: Problem with upgrade in core

Post 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
Attachments
nagioscheck.txt
(1.25 KiB) Downloaded 211 times
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Problem with upgrade in core

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Re: Problem with upgrade in core

Post by ravish78 »

Attached apache2 conf file.
Attachments
apache2.conf.txt
(2.7 KiB) Downloaded 204 times
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Problem with upgrade in core

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked