Ever since I updated to nagios 3.2.1 from 3.0.6 I can no longer refresh any status pages. When I refresh, it just goes back to the "home" page of nagios, forcing me to drill back down to whatever I was looking at. With 3.0.6 I was able to refresh pages just fine to see updated statuses.
Obviously this is related to the way nagios uses a frame to display all the different pages and keep the navigation on the left, and it probably has to do with how nagios hides the full url in the address bar and just shows http://hostname/nagios no matter what page you're on. The change in behavior from 3.0.6 to 3.2 probably has everything to do with the change from html to php files for the left-hand side navigation.
All of these things I know, the question is how do I get it to work how I want it to. Is there some option somewhere that I'm not finding to show the full URL in the address bar or to refresh only the frame?
Rightclick the frame, reload frame
modify your template and put
You can fix this by adding
to the beginning of the PHP code section of share/index.php (NOT in the if-clause!).
Your browser does not know if it should cache the current frame, so defaults to not doing so. This causes it to reload to main.php instead. (Appreciated Source in German: https://checkmk.de/lw_nagios_frameset_f5.html)
You can bypass the left side frame and open a status only window.
Try right clicking on the status link you want to refresh and open just that frame in a new window. (that's what I normally do)
I know this may be a little late, but...
It has to do with the frameset page itself now being a php file (instead of html). There is a little bit of php code in that file to handle the "corewindow" parameter/feature. If you do not use that feature, you could remove the block of php code from index.php, change the second frame src attribute to main.php and rename index.php to index.html.
I solved it by deleting all php code from index.php and placing instead of
this
and then move index.php to index.html
Here is my index.html
@Karmawhore's accepted answer didn't actually force the refresh it just kept me on the cached page. So I just added a Nagios CGI Custom Header by creating a
common-header.ssi
file under/usr/share/nagios3/htdocs/ssi/
containing:Which adds a little refresh link to the upper right hand corner of every cgi page like so:
Arcadius's answer is a good solution that could get adopted by nagios itself. don't know why it's been voted down, apart from missing where reload.png comes from.
for reload.png. cp /usr/share/icons/gnome/32x32/actions/reload.png /usr/share/nagios/images/ reload.png (at this location) comes from gnome-icon-theme (rpm -qf /usr/share/icons/gnome/32x32/actions/reload.png)
there are other sizes available, if you like.
Hiney
.. by