[rrd-users] Re: mrtg-rrd page refreshing

Gerhard Ecaroh Froehlich gerhard.froehlich at produktion.gis-online.de
Mon Jul 1 09:38:21 MEST 2002


Hi Jay,

Jay Borkenhagen wrote:
> 
> Hi RRD Users,
> 
> My problem is that after loading a page, it soon refreshes with just
> one of the component PNGs.  For instance, after loading

This first depends on the caching mechanism of your browser. Web Writers do know
that problem too. You could set your preferences to "always look for new
version" in your browser cache. In Netscape you do have to "SHIFT + KLICK
RELOAD" to force Netscape to reload the entire webpage new. Unfortunately this
also does not work everytime. Return to "Home Page", do clear browser memory and
disk cache, exit Netscape and start it again. Painfull, indeed!

> Instead, I would like the PNGs to update at appropriate intervals and
> be displayed within the eth0.html context, like what plain MRTG would
> do.

The second place is apache. This behaviour is controlled by the configuration of
your webserver. For instance in httpd.conf of Apache you need:

# example of the "mrtg" part of httpd.conf
<Directory "/opt/apache/htdocs/mrtg">
  ExpiresActive On
  ExpiresByType image/gif "now"
  ExpiresDefault "access 10 seconds"

  <Files "*day.*">
         ExpiresActive On                  # enable expirations
         # five minutes
         ExpiresDefault M300
  </Files>

  <Files "*week.*">
         ExpiresActive On
         ExpiresDefault M1800
  </Files>

  <Files "*month.*">
         ExpiresActive On
         ExpiresDefault M7200
  </Files>

  <Files "*year.*">
         ExpiresActive On
         ExpiresDefault M86400
  </Files>

  <Files "*.html">
         ExpiresActive On
         ExpiresDefault M300
  </Files>

  # index.html is not automatically generated
  <Files "index.html">
         ExpiresActive Off
  </Files>

  <Files "mrtg*.gif">
         ExpiresActive Off
  </Files>
</Directory>

If your not common with apache read the docs or ask your internet team.
 
> I do sometimes need to watch my MRTG in real time, to make sure that
> changes I make result in the desired traffic adjustments, so getting
> this fixed is pretty important to me.

If you want it "real time" you have to use commands on the shell. Every update
in rrdtool needs its time to appear. Commonly if you sample in 5 minute
intervalls it could happen that you need 2 runs (10 min.) until changes come
visible. Thats far from "real time". At last rrdtool is no real time tool but a
long time graphing tool.
 
> Thanks for any help.
>                                                 Jay B.
> 
> --
>   Jay Borkenhagen     jayb at braeburn.org
> 

	Bye, Ecaroh

-- 
Gerhard Ecaroh Froehlich, Systemadministrator

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list