Problem with upgrade in core
Problem with upgrade in core
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
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
Re: Problem with upgrade in core
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.
"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.
Re: Problem with upgrade in core
This is another server which we are using core with version 3.0.6.
We are trying to upgrade it with latest core version
We are trying to upgrade it with latest core version
Re: Problem with upgrade in core
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:
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.
"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.
Re: Problem with upgrade in core
Tried this option still it is showing old version.
-
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Problem with upgrade in core
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.
Re: Problem with upgrade in core
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
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
-
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Problem with upgrade in core
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.
Re: Problem with upgrade in core
Attached apache2 conf file.
- Attachments
-
- apache2.conf.txt
- (2.7 KiB) Downloaded 204 times
Re: Problem with upgrade in core
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.
"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.