[mrtg] Re: I change the report from 36 hours to 24 hours?

Paul C. Williamson pwilliamson at mandtbank.com
Mon Oct 22 16:19:34 MEST 2001


That's easy in 14all.  Just change this:

my %graphparams = (
        'daily'   => ['-2000m', 'now',  300],
        'weekly'  => ['-12000m','now', 1800],
        'monthly' => ['-800h', 'now',  7200],
        'yearly'  => ['-400d', 'now', 86400],
        'daily.s' => ['-1250m', 'now',  300],
);

and after daily.s add:

        'short'   => ['-24h', 'now',    300],

And there is someplace in the code that tells the webpages to 
display daily, weekly, monthly, yearly.  You can just change 
to to display short, weekly, monthly, yearly or something to that effect.

Paul


>>> "Perry, Duane" <PerryD at missouri.edu> 10/22/01 10:03AM >>>

I have manipulated my graphs successfully with rateup but have had no luck
with 14all.cgi.  Has anyone been able to change the size of the graphs?  The
parameters are documented but my only accomplishment so far is to severely
degrade the quality of the gif with no change in size.

Duane Perry
University of Missouri

-----Original Message-----
From: Alex van den Bogaerdt [mailto:alex at slot.hollandcasino.nl] 
 It is making reports of 400 pixels each with a width of 5 minutes
per pixel. This is 400*5 is 2000 minutes is 33 hours 20 minutes.

Only when you start hacking MRTG.  I don't think you're ready for that.
If you want to try it anyway:

24 hours at 5 minutes per pixel: graph width == 288 pixels
7 days at 30 minutes per pixel:  graph width == 336 pixels
30 days at 2 hours per pixel:    graph width == 360 pixels
365 days at 1 day per pixel:     graph width == 365 pixels

Each call to rateup should have the correct parameter, you also
need to change the resulting web page.

HTH
-- 



--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe 
Archive     http://www.ee.ethz.ch/~slist/mrtg 
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org 
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi 



--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list