Thursday, February 3, 2011

How do I refresh nagios and stay on the current page?

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?

  • 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)

    Matt : That's already how I have our "dashboard" wall-mounted computer set up, for this question I'm more interested in it while I'm actively moving around and looking at stuff, so I still need the left bar for navigation.
    From Joel K
  • Rightclick the frame, reload frame

    modify your template and put

    <a href="#">refresh</a>
    
    splattne : @karmawhore thanks for actively participating in Serverfault! As moderator I saw that you (probably accidentally) created a lot of user accounts here with temporary open-ids. I took the liberty of merging all your accounts into this one: http://serverfault.com/users/47357 -- contact us if you have questions. Thanks!
    Matt : That does the trick. Adding the refresh link in every page is a bit too much work for my tastes, but hitting alt+f5 instead of f5 is just fine with me.
    karmawhore : it is a single template modification. common-footer.ssi in htdocs/ssi (must be executable, appends to the footer of any cgi generated page)
    From karmawhore

0 comments:

Post a Comment