LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Nagios always reloads home page (http://www.linuxquestions.org/questions/linux-server-73/nagios-always-reloads-home-page-764570/)

DrStrangepork 10-26-2009 11:25 AM

Nagios always reloads home page
 
Someone must be experiencing this same problem, so hopefully there is a hack out there to fix this.

I recently updated my Nagios from 3.0.6 to 3.2. Now when I reload any page, instead of getting a reloaded page, Nagios loads the home page (main.php) - VERY annoying. Anyone know of a work around?

lin*x 10-26-2009 04:45 PM

I have to agree, i had the same problem... i've not had the time to try and fix... but if you don't get any joy here i'd suggest looking at the http://www.nagios-portal.org/wbb/index.php forum... some great nagios people on there and your bound to find some help. Not saying no-one here knows the answer by any means... i've just found better answers from there regarding nagios in the past.

Its probably something to do with the fact they have gone to using main.php rather than what it used to be main.html.....

If you get an answer form the other forum... please post it here as well for all to see.

Its an annoying problem!

Ernazar 08-08-2011 02:33 AM

I solved it by deleting all php code from index.php and placing instead of
Code:

<frame src="<?php echo $corewindow;?>" name="main" frameborder="0">
this
Code:

<frame src="main.php" name="main" frameborder="0">
and then move index.php to index.html

Here is my index.html

Code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">

<html>
<head>
<meta name="ROBOTS" content="NOINDEX, NOFOLLOW">
<title>Nagios Core</title>
<link rel="shortcut icon" href="images/favicon.ico" type="image/ico">
</head>


<frameset cols="180,*">
<frame src="side.php" name="side" frameborder="0">
<frame src="main.php" name="main" frameborder="0">

<noframes>
<!-- This page requires a web browser which supports frames. -->
<h2>Nagios Core</h2>
<p align="center">
<a href="http://www.nagios.org/">www.nagios.org</a><br>
Copyright &copy; 2010-2011 Nagios Core Development Team and Community Contributors.
Copyright &copy; 1999-2010 Ethan Galstad<br>
</p>
<p>
<i>Note: These pages require a browser which supports frames</i>
</p>
</noframes>

</frameset>

</html>


angel115 08-08-2011 04:18 AM

Quote:

Originally Posted by Ernazar (Post 4436535)
I solved it by deleting all php code from index.php and placing instead of
Code:

<frame src="<?php echo $corewindow;?>" name="main" frameborder="0">
this
Code:

<frame src="main.php" name="main" frameborder="0">

Works like a charm :)

Thanks for the tips,
Angel.


All times are GMT -5. The time now is 03:56 PM.